public class GetRecordsBySeriesRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsBySeriesRaw(GetRecordsBySeriesRequest).
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.getRecordsRaw(GetRecordsRequest) 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
Specifies the encoding for returned records; either 'binary' or 'json'.
|
| 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() |
int |
getOffset() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName() |
String |
getWorldTableName() |
int |
hashCode() |
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) |
GetRecordsBySeriesRequest |
setOffset(int offset) |
GetRecordsBySeriesRequest |
setOptions(Map<String,String> options) |
GetRecordsBySeriesRequest |
setTableName(String tableName) |
GetRecordsBySeriesRequest |
setWorldTableName(String worldTableName) |
String |
toString() |
public GetRecordsBySeriesRequest()
public GetRecordsBySeriesRequest(String tableName, String worldTableName, int offset, int limit, Map<String,String> options)
tableName - Name of the collection/table/view for which
series/tracks will be fetched.worldTableName - Name of the table containing the complete
series/track information to be returned for the
tracks present in the tableName.
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 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.options - Optional parameters.public GetRecordsBySeriesRequest(String tableName, String worldTableName, int offset, int limit, String encoding, Map<String,String> options)
tableName - Name of the collection/table/view for which
series/tracks will be fetched.worldTableName - Name of the table containing the complete
series/track information to be returned for the
tracks present in the tableName.
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 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.encoding - Specifies the encoding for returned records; either
'binary' or 'json'.
Supported values:
The default value is BINARY.options - Optional parameters.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public GetRecordsBySeriesRequest setTableName(String tableName)
tableName - Name of the collection/table/view for which
series/tracks will be fetched.this to mimic the builder pattern.public String getWorldTableName()
tableName. 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.public GetRecordsBySeriesRequest setWorldTableName(String worldTableName)
worldTableName - Name of the table containing the complete
series/track information to be returned for the
tracks present in the tableName.
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.this to mimic the builder pattern.public int getOffset()
public GetRecordsBySeriesRequest setOffset(int offset)
offset - A positive integer indicating the number of initial
series/tracks to skip (useful for paging through the
results). The minimum allowed value is 0. The maximum
allowed value is MAX_INT.this to mimic the builder pattern.public int getLimit()
public GetRecordsBySeriesRequest setLimit(int limit)
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.this to mimic the builder pattern.public String getEncoding()
public GetRecordsBySeriesRequest setEncoding(String encoding)
public GetRecordsBySeriesRequest setOptions(Map<String,String> options)
options - Optional parameters.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 © 2017. All rights reserved.