public class GetRecordsBySeriesRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsBySeries.
Retrieves the complete series/track records from the given worldTableName based on the partial track information
contained in the tableName.
This operation supports paging through the data via the offset and limit parameters.
In contrast to GPUdb.getRecords this returns records grouped by series/track. So if offset is 0 and limit is 5 this operation
would return the first 5 series/tracks in tableName.
Each series/track will be returned sorted by their TIMESTAMP column.
| Modifier and Type | Class and Description |
|---|---|
static class |
GetRecordsBySeriesRequest.Encoding
A set of string constants for the
GetRecordsBySeriesRequest
parameter encoding. |
| Constructor and Description |
|---|
GetRecordsBySeriesRequest()
Constructs a GetRecordsBySeriesRequest object with default parameters.
|
GetRecordsBySeriesRequest(String tableName,
String worldTableName,
int offset,
int limit,
Map<String,String> options)
Constructs a GetRecordsBySeriesRequest object with the specified
parameters.
|
GetRecordsBySeriesRequest(String tableName,
String worldTableName,
int offset,
int limit,
String encoding,
Map<String,String> options)
Constructs a GetRecordsBySeriesRequest object with the specified
parameters.
|
| Modifier and Type | Method and Description | ||
|---|---|---|---|
boolean |
equals(Object obj) |
||
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
String |
getEncoding()
|
||
int |
getLimit()
A positive integer indicating the maximum number of series/tracks to be
returned.
|
||
int |
getOffset()
A positive integer indicating the number of initial series/tracks to
skip (useful for paging through the results).
|
||
Map<String,String> |
getOptions()
Optional parameters.
|
||
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
String |
getTableName()
Name of the table or view for which series/tracks will be fetched, in
[schema_name.]table_name format, using standard
StringgetWorldTableName()
| ||
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||
GetRecordsBySeriesRequest |
setEncoding(String encoding)
|
||
GetRecordsBySeriesRequest |
setLimit(int limit)
A positive integer indicating the maximum number of series/tracks to be
returned.
|
||
GetRecordsBySeriesRequest |
setOffset(int offset)
A positive integer indicating the number of initial series/tracks to
skip (useful for paging through the results).
|
||
GetRecordsBySeriesRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
||
GetRecordsBySeriesRequest |
setTableName(String tableName)
Name of the table or view for which series/tracks will be fetched, in
[schema_name.]table_name format, using standard
GetRecordsBySeriesRequestsetWorldTableName(String worldTableName)
|
public GetRecordsBySeriesRequest()
public GetRecordsBySeriesRequest(String tableName, String worldTableName, int offset, int limit, Map<String,String> options)
tableName - Name of the table or view for which series/tracks will
be fetched, in [schema_name.]table_name format, using
standard name resolution rules.worldTableName - Name of the table containing the complete
series/track information to be returned for the
tracks present in the tableName, in
[schema_name.]table_name format, using standard
name resolution rules.
Typically this is used when retrieving
series/tracks from a view (which contains partial
series/tracks) but the user wants to retrieve the
entire original series/tracks. Can be blank.offset - A positive integer indicating the number of initial
series/tracks to skip (useful for paging through the
results). The default value is 0. The minimum allowed
value is 0. The maximum allowed value is MAX_INT.limit - A positive integer indicating the maximum number of
series/tracks to be returned. Or END_OF_SET (-9999) to
indicate that the max number of results should be
returned. The default value is 250.options - Optional parameters. The default value is an empty
Map.public GetRecordsBySeriesRequest(String tableName, String worldTableName, int offset, int limit, String encoding, Map<String,String> options)
tableName - Name of the table or view for which series/tracks will
be fetched, in [schema_name.]table_name format, using
standard name resolution rules.worldTableName - Name of the table containing the complete
series/track information to be returned for the
tracks present in the tableName, in
[schema_name.]table_name format, using standard
name resolution rules.
Typically this is used when retrieving
series/tracks from a view (which contains partial
series/tracks) but the user wants to retrieve the
entire original series/tracks. Can be blank.offset - A positive integer indicating the number of initial
series/tracks to skip (useful for paging through the
results). The default value is 0. The minimum allowed
value is 0. The maximum allowed value is MAX_INT.limit - A positive integer indicating the maximum number of
series/tracks to be returned. Or END_OF_SET (-9999) to
indicate that the max number of results should be
returned. The default value is 250.encoding - Specifies the encoding for returned records; either
BINARY or JSON.
Supported values:
The default value is BINARY.options - Optional parameters. The default value is an empty
Map.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName.public GetRecordsBySeriesRequest setTableName(String tableName)
tableName - The new value for tableName.this to mimic the builder pattern.public String getWorldTableName()
tableName, in [schema_name.]table_name format, using standard name resolution rules. Typically this is used when
retrieving series/tracks from a view (which contains partial
series/tracks) but the user wants to retrieve the entire original
series/tracks. Can be blank.worldTableName.public GetRecordsBySeriesRequest setWorldTableName(String worldTableName)
tableName, in [schema_name.]table_name format, using standard name resolution rules. Typically this is used when
retrieving series/tracks from a view (which contains partial
series/tracks) but the user wants to retrieve the entire original
series/tracks. Can be blank.worldTableName - The new value for worldTableName.this to mimic the builder pattern.public int getOffset()
offset.public GetRecordsBySeriesRequest setOffset(int offset)
offset - The new value for offset.this to mimic the builder pattern.public int getLimit()
limit.public GetRecordsBySeriesRequest setLimit(int limit)
limit - The new value for limit.this to mimic the builder pattern.public String getEncoding()
BINARY or JSON.
Supported values:
The default value is BINARY.encoding.public GetRecordsBySeriesRequest setEncoding(String encoding)
BINARY or JSON.
Supported values:
The default value is BINARY.encoding - The new value for encoding.this to mimic the builder pattern.public Map<String,String> getOptions()
Map.options.public GetRecordsBySeriesRequest setOptions(Map<String,String> options)
Map.options - The new value for options.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.