Package com.gpudb.protocol
Class RawGetRecordsFromCollectionResponse
- java.lang.Object
-
- com.gpudb.protocol.RawGetRecordsFromCollectionResponse
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class RawGetRecordsFromCollectionResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.getRecordsFromCollectionRaw.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRawGetRecordsFromCollectionResponse.InfoA set of string constants for theRawGetRecordsFromCollectionResponseparameterinfo.
-
Constructor Summary
Constructors Constructor Description RawGetRecordsFromCollectionResponse()Constructs a RawGetRecordsFromCollectionResponse object with default parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Map<String,String>getInfo()Additional information.List<String>getRecordIds()If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object.List<ByteBuffer>getRecordsBinary()If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection.List<String>getRecordsJson()If the encoding parameter of the request was 'json', then this list contains the JSON encoded records retrieved from the table/collection.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.StringgetTableName()Value oftableName.List<String>getTypeNames()The type IDs of the corresponding records inrecordsBinaryorrecordsJson.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.RawGetRecordsFromCollectionResponsesetInfo(Map<String,String> info)Additional information.RawGetRecordsFromCollectionResponsesetRecordIds(List<String> recordIds)If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object.RawGetRecordsFromCollectionResponsesetRecordsBinary(List<ByteBuffer> recordsBinary)If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection.RawGetRecordsFromCollectionResponsesetRecordsJson(List<String> recordsJson)If the encoding parameter of the request was 'json', then this list contains the JSON encoded records retrieved from the table/collection.RawGetRecordsFromCollectionResponsesetTableName(String tableName)Value oftableName.RawGetRecordsFromCollectionResponsesetTypeNames(List<String> typeNames)The type IDs of the corresponding records inrecordsBinaryorrecordsJson.StringtoString()
-
-
-
Method Detail
-
getClassSchema
public static org.apache.avro.Schema getClassSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Returns:
- The schema for the class.
-
getTableName
public String getTableName()
Value oftableName.- Returns:
- The current value of
tableName.
-
setTableName
public RawGetRecordsFromCollectionResponse setTableName(String tableName)
Value oftableName.- Parameters:
tableName- The new value fortableName.- Returns:
thisto mimic the builder pattern.
-
getTypeNames
public List<String> getTypeNames()
The type IDs of the corresponding records inrecordsBinaryorrecordsJson. This is useful whentableNameis a heterogeneous collection (collections containing tables of different types).- Returns:
- The current value of
typeNames.
-
setTypeNames
public RawGetRecordsFromCollectionResponse setTypeNames(List<String> typeNames)
The type IDs of the corresponding records inrecordsBinaryorrecordsJson. This is useful whentableNameis a heterogeneous collection (collections containing tables of different types).- Parameters:
typeNames- The new value fortypeNames.- Returns:
thisto mimic the builder pattern.
-
getRecordsBinary
public List<ByteBuffer> getRecordsBinary()
If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection. Otherwise, empty list.- Returns:
- The current value of
recordsBinary.
-
setRecordsBinary
public RawGetRecordsFromCollectionResponse setRecordsBinary(List<ByteBuffer> recordsBinary)
If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection. Otherwise, empty list.- Parameters:
recordsBinary- The new value forrecordsBinary.- Returns:
thisto mimic the builder pattern.
-
getRecordsJson
public List<String> getRecordsJson()
If the encoding parameter of the request was 'json', then this list contains the JSON encoded records retrieved from the table/collection. Otherwise, empty list.- Returns:
- The current value of
recordsJson.
-
setRecordsJson
public RawGetRecordsFromCollectionResponse setRecordsJson(List<String> recordsJson)
If the encoding parameter of the request was 'json', then this list contains the JSON encoded records retrieved from the table/collection. Otherwise, empty list.- Parameters:
recordsJson- The new value forrecordsJson.- Returns:
thisto mimic the builder pattern.
-
getRecordIds
public List<String> getRecordIds()
If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object. Otherwise it will be empty.- Returns:
- The current value of
recordIds.
-
setRecordIds
public RawGetRecordsFromCollectionResponse setRecordIds(List<String> recordIds)
If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object. Otherwise it will be empty.- Parameters:
recordIds- The new value forrecordIds.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.TOTAL_NUMBER_OF_RECORDS: Total number of records.HAS_MORE_RECORDS: Too many records. Returned a partial set. Supported values:
Map.- Returns:
- The current value of
info.
-
setInfo
public RawGetRecordsFromCollectionResponse setInfo(Map<String,String> info)
Additional information.TOTAL_NUMBER_OF_RECORDS: Total number of records.HAS_MORE_RECORDS: Too many records. Returned a partial set. Supported values:
Map.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
getSchema
public org.apache.avro.Schema getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-