Package com.gpudb.protocol
Class RawGetRecordsResponse
java.lang.Object
com.gpudb.protocol.RawGetRecordsResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.getRecordsRaw.Constructor Summary
ConstructorsConstructorDescriptionConstructs a RawGetRecordsResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.booleanToo many records.getInfo()Additional information.If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.If theencodingwas ‘json’, then this list contains the JSON encoded records retrieved from the table.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Value oftableName.longTotal/Filtered number of records.The name of the type of the returned records.Avro schema ofrecordsBinaryorrecordsJson.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setHasMoreRecords(boolean hasMoreRecords) Too many records.Additional information.setRecordsBinary(List<ByteBuffer> recordsBinary) If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.setRecordsJson(List<String> recordsJson) If theencodingwas ‘json’, then this list contains the JSON encoded records retrieved from the table.setTableName(String tableName) Value oftableName.setTotalNumberOfRecords(long totalNumberOfRecords) Total/Filtered number of records.setTypeName(String typeName) The name of the type of the returned records.setTypeSchema(String typeSchema) Avro schema ofrecordsBinaryorrecordsJson.toString()
Method Details
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.setTableName
Value oftableName.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.setTypeName
The name of the type of the returned records.Parameters:typeName- The new value fortypeName.Returns:thisto mimic the builder pattern.setTypeSchema
Avro schema ofrecordsBinaryorrecordsJson.Parameters:typeSchema- The new value fortypeSchema.Returns:thisto mimic the builder pattern.getRecordsBinary
If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.Returns:The current value ofrecordsBinary.setRecordsBinary
If theencodingwas ‘binary’, then this list contains the binary encoded records retrieved from the table, otherwise not populated.Parameters:recordsBinary- The new value forrecordsBinary.Returns:thisto mimic the builder pattern.getRecordsJson
If theencodingwas ‘json’, then this list contains the JSON encoded records retrieved from the table. If theencodingwas ‘geojson’ this list contains a single entry consisting of a GeoJSON FeatureCollection containing a feature per record. Otherwise not populated.Returns:The current value ofrecordsJson.setRecordsJson
If theencodingwas ‘json’, then this list contains the JSON encoded records retrieved from the table. If theencodingwas ‘geojson’ this list contains a single entry consisting of a GeoJSON FeatureCollection containing a feature per record. Otherwise not populated.Parameters:recordsJson- The new value forrecordsJson.Returns:thisto mimic the builder pattern.getTotalNumberOfRecords
public long getTotalNumberOfRecords()Total/Filtered number of records.Returns:The current value oftotalNumberOfRecords.setTotalNumberOfRecords
Total/Filtered number of records.Parameters:totalNumberOfRecords- The new value fortotalNumberOfRecords.Returns:thisto mimic the builder pattern.getHasMoreRecords
public boolean getHasMoreRecords()Too many records. Returned a partial set.Returns:The current value ofhasMoreRecords.setHasMoreRecords
Too many records. Returned a partial set.Parameters:hasMoreRecords- The new value forhasMoreRecords.Returns:thisto mimic the builder pattern.setInfo
Additional information.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.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: