Package org.apache.iceberg.data
Class GenericRecord
- java.lang.Object
-
- org.apache.iceberg.data.GenericRecord
-
- All Implemented Interfaces:
Record
,StructLike
public class GenericRecord extends java.lang.Object implements Record, StructLike
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericRecord
copy()
GenericRecord
copy(java.util.Map<java.lang.String,java.lang.Object> overwriteValues)
static GenericRecord
create(Schema schema)
static GenericRecord
create(Types.StructType struct)
boolean
equals(java.lang.Object other)
java.lang.Object
get(int pos)
<T> T
get(int pos, java.lang.Class<T> javaClass)
java.lang.Object
getField(java.lang.String name)
int
hashCode()
<T> void
set(int pos, T value)
void
setField(java.lang.String name, java.lang.Object value)
int
size()
Types.StructType
struct()
java.lang.String
toString()
-
-
-
Method Detail
-
create
public static GenericRecord create(Schema schema)
-
create
public static GenericRecord create(Types.StructType struct)
-
struct
public Types.StructType struct()
-
getField
public java.lang.Object getField(java.lang.String name)
-
setField
public void setField(java.lang.String name, java.lang.Object value)
-
size
public int size()
- Specified by:
size
in interfaceStructLike
-
get
public <T> T get(int pos, java.lang.Class<T> javaClass)
- Specified by:
get
in interfaceStructLike
-
set
public <T> void set(int pos, T value)
- Specified by:
set
in interfaceStructLike
-
copy
public GenericRecord copy()
-
copy
public GenericRecord copy(java.util.Map<java.lang.String,java.lang.Object> overwriteValues)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-