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 String[] |
_ALL_FIELDS |
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Host() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key) |
Object |
get(int field$) |
int |
getFieldsCount()
Gets the total field count.
|
Map<CharSequence,CharSequence> |
getInlinks()
Gets the value of the 'inlinks' field.
|
int |
getInt(String key,
int defaultValue) |
long |
getLong(String key,
long defaultValue) |
Map<CharSequence,ByteBuffer> |
getMetadata()
Gets the value of the 'metadata' field.
|
Map<CharSequence,CharSequence> |
getOutlinks()
Gets the value of the 'outlinks' field.
|
org.apache.avro.Schema |
getSchema() |
Host.Tombstone |
getTombstone() |
String |
getValue(String key,
String defaultValue) |
boolean |
isInlinksDirty(Map<CharSequence,CharSequence> value)
Checks the dirty status of the 'inlinks' field.
|
boolean |
isMetadataDirty(Map<CharSequence,ByteBuffer> value)
Checks the dirty status of the 'metadata' field.
|
boolean |
isOutlinksDirty(Map<CharSequence,CharSequence> value)
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$,
Object value) |
void |
setInlinks(Map<CharSequence,CharSequence> value)
Sets the value of the 'inlinks' field.
|
void |
setMetadata(Map<CharSequence,ByteBuffer> value)
Sets the value of the 'metadata' field.
|
void |
setOutlinks(Map<CharSequence,CharSequence> value)
Sets the value of the 'outlinks' field.
|
clear, clearDirty, clearDirty, clearDirty, equals, getUnmanagedFields, isDirty, isDirty, isDirty, setDirty, setDirty, setDirtycompareTo, get, hashCode, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final org.apache.avro.Schema SCHEMA$
public static final 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 Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic Map<CharSequence,ByteBuffer> getMetadata()
public void setMetadata(Map<CharSequence,ByteBuffer> value)
public boolean isMetadataDirty(Map<CharSequence,ByteBuffer> value)
public Map<CharSequence,CharSequence> getOutlinks()
public void setOutlinks(Map<CharSequence,CharSequence> value)
public boolean isOutlinksDirty(Map<CharSequence,CharSequence> value)
public Map<CharSequence,CharSequence> getInlinks()
public void setInlinks(Map<CharSequence,CharSequence> value)
public boolean isInlinksDirty(Map<CharSequence,CharSequence> value)
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(String key)
public int getInt(String key, int defaultValue)
public long getLong(String key, long defaultValue)
Copyright © 2015 The Apache Software Foundation