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.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
setTableName
Value oftableName.Parameters:tableName- The new value fortableName.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.