Package com.gpudb
Class GenericRecord
- java.lang.Object
-
- com.gpudb.RecordBase
-
- com.gpudb.GenericRecord
-
- All Implemented Interfaces:
Record,Serializable,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public final class GenericRecord extends RecordBase implements Serializable
An object that containsRecorddata based on a GPUdbTypespecified at runtime. GPUdb functions that return non-dynamic data will use generic records by default in the absence of a specified type descriptor or known type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericRecord(Type type)Creates a new generic record based on the specified GPUdbType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(int index)Returns the value of the specified field.TypegetType()Returns the GPUdbTypeof the record.voidput(int index, Object value)Sets the value of the specified field.-
Methods inherited from class com.gpudb.RecordBase
equals, get, getArray, getArray, getBytes, getBytes, getDataMap, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getJson, getJson, getLong, getLong, getSchema, getString, getString, getVector, getVector, hashCode, put, putArray, putArray, putBytes, putBytes, putDateTime, putDateTime, putDateTime, putDateTime, putDecimal, putJson, putJson, putVector, putVector, toString
-
-
-
-
Constructor Detail
-
GenericRecord
public GenericRecord(Type type)
Creates a new generic record based on the specified GPUdbType. Note that generic records can also be created usingType.newInstance().- Parameters:
type- the GPUdb type
-
-