T
- The type of object being processed.public class GetRecordsResponse<T> extends Object
GPUdb.getRecords(Object,
GetRecordsRequest)
.Constructor and Description |
---|
GetRecordsResponse()
Constructs a GetRecordsResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<T> |
getData() |
boolean |
getHasMoreRecords() |
String |
getTableName() |
long |
getTotalNumberOfRecords() |
String |
getTypeName() |
String |
getTypeSchema() |
int |
hashCode() |
GetRecordsResponse<T> |
setData(List<T> data) |
GetRecordsResponse<T> |
setHasMoreRecords(boolean hasMoreRecords) |
GetRecordsResponse<T> |
setTableName(String tableName) |
GetRecordsResponse<T> |
setTotalNumberOfRecords(long totalNumberOfRecords) |
GetRecordsResponse<T> |
setTypeName(String typeName) |
GetRecordsResponse<T> |
setTypeSchema(String typeSchema) |
String |
toString() |
public GetRecordsResponse()
public String getTableName()
tableName
.public GetRecordsResponse<T> setTableName(String tableName)
tableName
- Value of tableName
.this
to mimic the builder pattern.public String getTypeName()
public GetRecordsResponse<T> setTypeName(String typeName)
typeName
- this
to mimic the builder pattern.public String getTypeSchema()
recordsBinary
or recordsJson
public GetRecordsResponse<T> setTypeSchema(String typeSchema)
typeSchema
- Avro schema of recordsBinary
or recordsJson
this
to mimic the builder pattern.public List<T> getData()
encoding
was 'binary', then this list contains
the binary encoded records retrieved from the table, otherwise
not populated.public GetRecordsResponse<T> setData(List<T> data)
data
- 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 long getTotalNumberOfRecords()
public GetRecordsResponse<T> setTotalNumberOfRecords(long totalNumberOfRecords)
totalNumberOfRecords
- Total/Filtered number of records.this
to mimic the builder pattern.public boolean getHasMoreRecords()
public GetRecordsResponse<T> setHasMoreRecords(boolean hasMoreRecords)
hasMoreRecords
- Too many records. Returned a partial set.this
to mimic the builder pattern.Copyright © 2019. All rights reserved.