public class Host
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 |
Host.Builder
RecordBuilder for Host instances.
|
static class |
Host.Field
Enum containing all data bean's fields.
|
static class |
Host.Tombstone |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
_ALL_FIELDS |
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Host() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String key) |
java.lang.Object |
get(int field$) |
int |
getFieldsCount()
Gets the total field count.
|
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> |
getInlinks()
Gets the value of the 'inlinks' field.
|
int |
getInt(java.lang.String key,
int defaultValue) |
long |
getLong(java.lang.String key,
long defaultValue) |
java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> |
getMetadata()
Gets the value of the 'metadata' field.
|
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> |
getOutlinks()
Gets the value of the 'outlinks' field.
|
org.apache.avro.Schema |
getSchema() |
Host.Tombstone |
getTombstone() |
java.lang.String |
getValue(java.lang.String key,
java.lang.String defaultValue) |
boolean |
isInlinksDirty()
Checks the dirty status of the 'inlinks' field.
|
boolean |
isMetadataDirty()
Checks the dirty status of the 'metadata' field.
|
boolean |
isOutlinksDirty()
Checks the dirty status of the 'outlinks' field.
|
static Host.Builder |
newBuilder()
Creates a new Host RecordBuilder
|
static Host.Builder |
newBuilder(Host.Builder other)
Creates a new Host RecordBuilder by copying an existing Builder
|
static Host.Builder |
newBuilder(Host other)
Creates a new Host RecordBuilder by copying an existing Host instance
|
Host |
newInstance() |
void |
put(int field$,
java.lang.Object value) |
void |
readExternal(java.io.ObjectInput in)
Reads AVRO data bean from input stream in it s AVRO Binary encoding format to Java object format.
|
void |
setInlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
Sets the value of the 'inlinks' field.
|
void |
setMetadata(java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> value)
Sets the value of the 'metadata' field.
|
void |
setOutlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
Sets the value of the 'outlinks' field.
|
void |
writeExternal(java.io.ObjectOutput out)
Writes AVRO data bean to output stream in the form of AVRO Binary encoding format.
|
clear, clearDirty, clearDirty, clearDirty, equals, getDirtyBytes, getUnmanagedFields, isDirty, isDirty, isDirty, setDirty, setDirty, setDirty, setDirtyBytescompareTo, get, getConverion, getConversion, hashCode, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final org.apache.avro.Schema SCHEMA$
public static final java.lang.String[] _ALL_FIELDS
public int getFieldsCount()
getFieldsCount in class org.apache.gora.persistency.impl.PersistentBasepublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic java.lang.Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
java.lang.Object value)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> getMetadata()
public void setMetadata(java.util.Map<java.lang.CharSequence,java.nio.ByteBuffer> value)
public boolean isMetadataDirty()
public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getOutlinks()
public void setOutlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
public boolean isOutlinksDirty()
public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getInlinks()
public void setInlinks(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
public boolean isInlinksDirty()
public static Host.Builder newBuilder()
public static Host.Builder newBuilder(Host.Builder other)
public static Host.Builder newBuilder(Host other)
public Host.Tombstone getTombstone()
getTombstone in interface org.apache.gora.persistency.Persistentpublic Host newInstance()
newInstance in interface org.apache.gora.persistency.Persistentpublic boolean contains(java.lang.String key)
public java.lang.String getValue(java.lang.String key,
java.lang.String defaultValue)
public int getInt(java.lang.String key,
int defaultValue)
public long getLong(java.lang.String key,
long defaultValue)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseout - java.io.ObjectOutput output stream to write data bean in serializable formjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBasein - java.io.ObjectOutput input stream to read data bean in serializable formjava.io.IOExceptionCopyright © 2019 The Apache Software Foundation