public class GetRecordsBySeriesRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsBySeriesRaw(GetRecordsBySeriesRequest)
.
worldTableName
based on the partial track information
contained in the tableName
.
offset
and limit
parameters.
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.
The Raw version of this method can be used to specify the encoding scheme of the response.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)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
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()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
int |
getLimit()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
int |
getOffset()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
Map<String,String> |
getOptions()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getTableName()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
String |
getWorldTableName()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
int |
hashCode()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
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)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
GetRecordsBySeriesRequest |
setLimit(int limit)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
GetRecordsBySeriesRequest |
setOffset(int offset)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
GetRecordsBySeriesRequest |
setOptions(Map<String,String> options)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
GetRecordsBySeriesRequest |
setTableName(String tableName)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
GetRecordsBySeriesRequest |
setWorldTableName(String worldTableName)
The Raw version of this method can be used to specify the encoding scheme of the response.
|
String |
toString()
The Raw version of this method can be used to specify the encoding scheme of the response.
|
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'. Values: binary, json.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)
encoding
- Specifies the encoding for returned records; either 'binary' or 'json'. Values: binary, json.this
to mimic the builder pattern.public Map<String,String> getOptions()
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.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
public boolean equals(Object obj)
public String toString()
Copyright © 2016. All rights reserved.