public class RawGetRecordsResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsRaw.| Constructor and Description |
|---|
RawGetRecordsResponse()
Constructs a RawGetRecordsResponse object with default 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.
|
boolean |
getHasMoreRecords()
Too many records.
|
Map<String,String> |
getInfo()
Additional information.
|
List<ByteBuffer> |
getRecordsBinary()
If the
encoding was 'binary', then this list contains the binary encoded
records retrieved from the table, otherwise not populated. |
List<String> |
getRecordsJson()
If the
encoding was 'json', then this list contains the JSON encoded records
retrieved from the table. |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName()
Value of
tableName. |
long |
getTotalNumberOfRecords()
Total/Filtered number of records.
|
String |
getTypeName() |
String |
getTypeSchema()
Avro schema of
recordsBinary or recordsJson |
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.
|
RawGetRecordsResponse |
setHasMoreRecords(boolean hasMoreRecords)
Too many records.
|
RawGetRecordsResponse |
setInfo(Map<String,String> info)
Additional information.
|
RawGetRecordsResponse |
setRecordsBinary(List<ByteBuffer> recordsBinary)
If the
encoding was 'binary', then this list contains the binary encoded
records retrieved from the table, otherwise not populated. |
RawGetRecordsResponse |
setRecordsJson(List<String> recordsJson)
If the
encoding was 'json', then this list contains the JSON encoded records
retrieved from the table. |
RawGetRecordsResponse |
setTableName(String tableName)
Value of
tableName. |
RawGetRecordsResponse |
setTotalNumberOfRecords(long totalNumberOfRecords)
Total/Filtered number of records.
|
RawGetRecordsResponse |
setTypeName(String typeName) |
RawGetRecordsResponse |
setTypeSchema(String typeSchema)
Avro schema of
recordsBinary or recordsJson |
String |
toString() |
public RawGetRecordsResponse()
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName.tableName.public RawGetRecordsResponse setTableName(String tableName)
tableName.tableName - The new value for tableName.this to mimic the builder pattern.public String getTypeName()
typeName.public RawGetRecordsResponse setTypeName(String typeName)
typeName - The new value for typeName.this to mimic the builder pattern.public String getTypeSchema()
recordsBinary or recordsJsontypeSchema.public RawGetRecordsResponse setTypeSchema(String typeSchema)
recordsBinary or recordsJsontypeSchema - The new value for typeSchema.this to mimic the builder pattern.public List<ByteBuffer> getRecordsBinary()
encoding was 'binary', then this list contains the binary encoded
records retrieved from the table, otherwise not populated.recordsBinary.public RawGetRecordsResponse setRecordsBinary(List<ByteBuffer> recordsBinary)
encoding was 'binary', then this list contains the binary encoded
records retrieved from the table, otherwise not populated.recordsBinary - The new value for recordsBinary.this to mimic the builder pattern.public List<String> getRecordsJson()
encoding was 'json', then this list contains the JSON encoded records
retrieved from the table. If the encoding was
'geojson' this list contains a single entry consisting of a GeoJSON
FeatureCollection containing a feature per record. Otherwise not
populated.recordsJson.public RawGetRecordsResponse setRecordsJson(List<String> recordsJson)
encoding was 'json', then this list contains the JSON encoded records
retrieved from the table. If the encoding was
'geojson' this list contains a single entry consisting of a GeoJSON
FeatureCollection containing a feature per record. Otherwise not
populated.recordsJson - The new value for recordsJson.this to mimic the builder pattern.public long getTotalNumberOfRecords()
totalNumberOfRecords.public RawGetRecordsResponse setTotalNumberOfRecords(long totalNumberOfRecords)
totalNumberOfRecords - The new value for totalNumberOfRecords.this to mimic the builder pattern.public boolean getHasMoreRecords()
hasMoreRecords.public RawGetRecordsResponse setHasMoreRecords(boolean hasMoreRecords)
hasMoreRecords - The new value for hasMoreRecords.this to mimic the builder pattern.public Map<String,String> getInfo()
info.public RawGetRecordsResponse setInfo(Map<String,String> info)
info - The new value for info.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 © 2025. All rights reserved.