public class ChukwaChunk
extends org.apache.gora.persistency.impl.PersistentBase
implements org.apache.avro.specific.SpecificRecord, org.apache.gora.persistency.Persistent
Modifier and Type | Class and Description |
---|---|
static class |
ChukwaChunk.Builder
RecordBuilder for ChukwaChunk instances.
|
static class |
ChukwaChunk.Field
Enum containing all data bean's fields.
|
static class |
ChukwaChunk.Tombstone |
Modifier and Type | Field and Description |
---|---|
static String[] |
_ALL_FIELDS |
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
ChukwaChunk() |
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
ByteBuffer |
getData()
Gets the value of the 'data' field.
|
CharSequence |
getDatatype()
Gets the value of the 'datatype' field.
|
int |
getFieldsCount()
Gets the total field count.
|
CharSequence |
getName()
Gets the value of the 'name' field.
|
org.apache.avro.Schema |
getSchema() |
Long |
getSequenceID()
Gets the value of the 'sequenceID' field.
|
CharSequence |
getSource()
Gets the value of the 'source' field.
|
CharSequence |
getTags()
Gets the value of the 'tags' field.
|
ChukwaChunk.Tombstone |
getTombstone() |
boolean |
isDataDirty()
Checks the dirty status of the 'data' field.
|
boolean |
isDatatypeDirty()
Checks the dirty status of the 'datatype' field.
|
boolean |
isNameDirty()
Checks the dirty status of the 'name' field.
|
boolean |
isSequenceIDDirty()
Checks the dirty status of the 'sequenceID' field.
|
boolean |
isSourceDirty()
Checks the dirty status of the 'source' field.
|
boolean |
isTagsDirty()
Checks the dirty status of the 'tags' field.
|
static ChukwaChunk.Builder |
newBuilder()
Creates a new ChukwaChunk RecordBuilder
|
static ChukwaChunk.Builder |
newBuilder(ChukwaChunk.Builder other)
Creates a new ChukwaChunk RecordBuilder by copying an existing Builder
|
static ChukwaChunk.Builder |
newBuilder(ChukwaChunk other)
Creates a new ChukwaChunk RecordBuilder by copying an existing ChukwaChunk
instance
|
ChukwaChunk |
newInstance() |
void |
put(int field$,
Object value) |
void |
setData(ByteBuffer value)
Sets the value of the 'data' field.
|
void |
setDatatype(CharSequence value)
Sets the value of the 'datatype' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setSequenceID(Long value)
Sets the value of the 'sequenceID' field.
|
void |
setSource(CharSequence value)
Sets the value of the 'source' field.
|
void |
setTags(CharSequence value)
Sets the value of the 'tags' field.
|
clear, clearDirty, clearDirty, clearDirty, equals, getUnmanagedFields, isDirty, isDirty, isDirty, setDirty, setDirty, setDirty
compareTo, get, hashCode, put, toString
public static final org.apache.avro.Schema SCHEMA$
public static final String[] _ALL_FIELDS
public int getFieldsCount()
getFieldsCount
in class org.apache.gora.persistency.impl.PersistentBase
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public CharSequence getSource()
public void setSource(CharSequence value)
value
- is the value to set.public boolean isSourceDirty()
public CharSequence getTags()
public void setTags(CharSequence value)
value
- is the value to set.public boolean isTagsDirty()
public CharSequence getDatatype()
public void setDatatype(CharSequence value)
value
- is the value to set.public boolean isDatatypeDirty()
public Long getSequenceID()
public void setSequenceID(Long value)
value
- is the value to set.public boolean isSequenceIDDirty()
public CharSequence getName()
public void setName(CharSequence value)
value
- is the value to set.public boolean isNameDirty()
public ByteBuffer getData()
public void setData(ByteBuffer value)
value
- is a string
the value to set.public boolean isDataDirty()
public static ChukwaChunk.Builder newBuilder()
public static ChukwaChunk.Builder newBuilder(ChukwaChunk.Builder other)
other
- is Chukwa chunkpublic static ChukwaChunk.Builder newBuilder(ChukwaChunk other)
other
- is Chukwa chunkpublic ChukwaChunk.Tombstone getTombstone()
getTombstone
in interface org.apache.gora.persistency.Persistent
public ChukwaChunk newInstance()
newInstance
in interface org.apache.gora.persistency.Persistent
Copyright © 2016 Apache Software Foundation. All Rights Reserved.