public class GenericRecord extends java.lang.Object implements Record, StructLike
Modifier and Type | Method and 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() |
public static GenericRecord create(Schema schema)
public static GenericRecord create(Types.StructType struct)
public Types.StructType struct()
public java.lang.Object getField(java.lang.String name)
public void setField(java.lang.String name, java.lang.Object value)
public int size()
size
in interface StructLike
public <T> T get(int pos, java.lang.Class<T> javaClass)
get
in interface StructLike
public <T> void set(int pos, T value)
set
in interface StructLike
public GenericRecord copy()
public GenericRecord copy(java.util.Map<java.lang.String,java.lang.Object> overwriteValues)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object