public class RawGetRecordsResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getRecordsRaw(GetRecordsRequest)
.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() |
Map<String,String> |
getInfo() |
List<ByteBuffer> |
getRecordsBinary() |
List<String> |
getRecordsJson() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName() |
long |
getTotalNumberOfRecords() |
String |
getTypeName() |
String |
getTypeSchema() |
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) |
RawGetRecordsResponse |
setInfo(Map<String,String> info) |
RawGetRecordsResponse |
setRecordsBinary(List<ByteBuffer> recordsBinary) |
RawGetRecordsResponse |
setRecordsJson(List<String> recordsJson) |
RawGetRecordsResponse |
setTableName(String tableName) |
RawGetRecordsResponse |
setTotalNumberOfRecords(long totalNumberOfRecords) |
RawGetRecordsResponse |
setTypeName(String typeName) |
RawGetRecordsResponse |
setTypeSchema(String typeSchema) |
String |
toString() |
public RawGetRecordsResponse()
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName
.public RawGetRecordsResponse setTableName(String tableName)
tableName
- Value of tableName
.this
to mimic the builder pattern.public String getTypeName()
public RawGetRecordsResponse setTypeName(String typeName)
typeName
- this
to mimic the builder pattern.public String getTypeSchema()
recordsBinary
or recordsJson
public RawGetRecordsResponse setTypeSchema(String typeSchema)
typeSchema
- Avro schema of recordsBinary
or recordsJson
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.public RawGetRecordsResponse setRecordsBinary(List<ByteBuffer> recordsBinary)
recordsBinary
- If the encoding
was 'binary', then this
list contains the binary encoded records retrieved
from the table, otherwise not populated.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.public RawGetRecordsResponse setRecordsJson(List<String> recordsJson)
recordsJson
- If the 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.this
to mimic the builder pattern.public long getTotalNumberOfRecords()
public RawGetRecordsResponse setTotalNumberOfRecords(long totalNumberOfRecords)
totalNumberOfRecords
- Total/Filtered number of records.this
to mimic the builder pattern.public boolean getHasMoreRecords()
public RawGetRecordsResponse setHasMoreRecords(boolean hasMoreRecords)
hasMoreRecords
- Too many records. Returned a partial set.this
to mimic the builder pattern.public RawGetRecordsResponse setInfo(Map<String,String> info)
info
- Additional information.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
Copyright © 2020. All rights reserved.