public final class GenericRecord extends RecordBase implements Serializable
Record
data based on a GPUdb Type
specified 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.Constructor and Description |
---|
GenericRecord(Type type)
Creates a new generic record based on the specified GPUdb
Type . |
Modifier and Type | Method and Description |
---|---|
Object |
get(int index)
Returns the value of the specified field.
|
Type |
getType()
Returns the GPUdb
Type of the record. |
void |
put(int index,
Object value)
Sets the value of the specified field.
|
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, putJson, putJson, putVector, putVector, toString
public GenericRecord(Type type)
Type
.
Note that generic records can also be created using Type.newInstance()
.type
- the GPUdb typeCopyright © 2025. All rights reserved.