Package com.gpudb.protocol
Class GetRecordsResponse<T>
- java.lang.Object
-
- com.gpudb.protocol.GetRecordsResponse<T>
-
- Type Parameters:
T- The type of object being processed.
public class GetRecordsResponse<T> extends Object
A set of results returned byGPUdb.getRecords.
-
-
Constructor Summary
Constructors Constructor Description GetRecordsResponse()Constructs a GetRecordsResponse object with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<T>getData()If theencodingwas 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.booleangetHasMoreRecords()Too many records.Map<String,String>getInfo()Additional information.StringgetTableName()Value oftableName.longgetTotalNumberOfRecords()Total/Filtered number of records.StringgetTypeName()StringgetTypeSchema()Avro schema ofdataorrecordsJsoninthashCode()GetRecordsResponse<T>setData(List<T> data)If theencodingwas 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.GetRecordsResponse<T>setHasMoreRecords(boolean hasMoreRecords)Too many records.GetRecordsResponse<T>setInfo(Map<String,String> info)Additional information.GetRecordsResponse<T>setTableName(String tableName)Value oftableName.GetRecordsResponse<T>setTotalNumberOfRecords(long totalNumberOfRecords)Total/Filtered number of records.GetRecordsResponse<T>setTypeName(String typeName)GetRecordsResponse<T>setTypeSchema(String typeSchema)Avro schema ofdataorrecordsJsonStringtoString()
-
-
-
Method Detail
-
getTableName
public String getTableName()
Value oftableName.- Returns:
- The current value of
tableName.
-
setTableName
public GetRecordsResponse<T> setTableName(String tableName)
Value oftableName.- Parameters:
tableName- The new value fortableName.- Returns:
thisto mimic the builder pattern.
-
getTypeName
public String getTypeName()
- Returns:
- The current value of
typeName.
-
setTypeName
public GetRecordsResponse<T> setTypeName(String typeName)
- Parameters:
typeName- The new value fortypeName.- Returns:
thisto mimic the builder pattern.
-
getTypeSchema
public String getTypeSchema()
Avro schema ofdataorrecordsJson- Returns:
- The current value of
typeSchema.
-
setTypeSchema
public GetRecordsResponse<T> setTypeSchema(String typeSchema)
Avro schema ofdataorrecordsJson- Parameters:
typeSchema- The new value fortypeSchema.- Returns:
thisto mimic the builder pattern.
-
getData
public List<T> getData()
If theencodingwas 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.- Returns:
- The current value of
data.
-
setData
public GetRecordsResponse<T> setData(List<T> data)
If theencodingwas 'binary', then this list contains the binary encoded records retrieved from the table, otherwise not populated.- Parameters:
data- The new value fordata.- Returns:
thisto mimic the builder pattern.
-
getTotalNumberOfRecords
public long getTotalNumberOfRecords()
Total/Filtered number of records.- Returns:
- The current value of
totalNumberOfRecords.
-
setTotalNumberOfRecords
public GetRecordsResponse<T> setTotalNumberOfRecords(long totalNumberOfRecords)
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 of
hasMoreRecords.
-
setHasMoreRecords
public GetRecordsResponse<T> setHasMoreRecords(boolean hasMoreRecords)
Too many records. Returned a partial set.- Parameters:
hasMoreRecords- The new value forhasMoreRecords.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public GetRecordsResponse<T> setInfo(Map<String,String> info)
Additional information.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
-