public final class DefaultCommonRecord extends Object implements CommonRecord
CommonRecord
implementation.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CommonValue |
getField(String field)
Retrieves the field's value by the given field name.
|
org.apache.avro.Schema |
getSchema() |
UUID |
getUuid()
Retrieves the uuid of this record.
|
boolean |
hasField(String field)
Checks if this record contains field with the given name.
|
int |
hashCode() |
void |
setField(String field,
CommonValue value)
Sets new value to the field with the given name (existing value will be replaced).
|
void |
setUuid(UUID uuid)
Sets the given uuid to the record.
|
String |
toString() |
public UUID getUuid()
CommonRecord
getUuid
in interface CommonRecord
UUID
public void setUuid(UUID uuid)
CommonRecord
setUuid
in interface CommonRecord
uuid
- uuid which is going to be set.UUID
public org.apache.avro.Schema getSchema()
getSchema
in interface SchemaDependent
Schema
public void setField(String field, CommonValue value)
CommonRecord
setField
in interface CommonRecord
field
- the field name.value
- value which is going to be set.CommonValue
public boolean hasField(String field)
CommonRecord
hasField
in interface CommonRecord
field
- the field name.public CommonValue getField(String field)
CommonRecord
getField
in interface CommonRecord
field
- the field name.CommonValue
Copyright © 2016. All rights reserved.