public class ProtocolStatus
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 |
ProtocolStatus.Builder
RecordBuilder for ProtocolStatus instances.
|
static class |
ProtocolStatus.Field
Enum containing all data bean's fields.
|
static class |
ProtocolStatus.Tombstone |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
_ALL_FIELDS |
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
ProtocolStatus() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int field$) |
java.util.List<java.lang.CharSequence> |
getArgs()
Gets the value of the 'args' field.
|
java.lang.Integer |
getCode()
Gets the value of the 'code' field.
|
int |
getFieldsCount()
Gets the total field count.
|
java.lang.Long |
getLastModified()
Gets the value of the 'lastModified' field.
|
org.apache.avro.Schema |
getSchema() |
ProtocolStatus.Tombstone |
getTombstone() |
boolean |
isArgsDirty()
Checks the dirty status of the 'args' field.
|
boolean |
isCodeDirty()
Checks the dirty status of the 'code' field.
|
boolean |
isLastModifiedDirty()
Checks the dirty status of the 'lastModified' field.
|
boolean |
isSuccess()
A convenience method which returns a successful
ProtocolStatus . |
static ProtocolStatus.Builder |
newBuilder()
Creates a new ProtocolStatus RecordBuilder
|
static ProtocolStatus.Builder |
newBuilder(ProtocolStatus.Builder other)
Creates a new ProtocolStatus RecordBuilder by copying an existing Builder
|
static ProtocolStatus.Builder |
newBuilder(ProtocolStatus other)
Creates a new ProtocolStatus RecordBuilder by copying an existing ProtocolStatus instance
|
ProtocolStatus |
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 |
setArgs(java.util.List<java.lang.CharSequence> value)
Sets the value of the 'args' field.
|
void |
setCode(java.lang.Integer value)
Sets the value of the 'code' field.
|
void |
setLastModified(java.lang.Long value)
Sets the value of the 'lastModified' 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, setDirtyBytes
compareTo, get, getConverion, getConversion, hashCode, put, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.PersistentBase
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public java.lang.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$, java.lang.Object value)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public java.lang.Integer getCode()
public void setCode(java.lang.Integer value)
public boolean isCodeDirty()
public java.util.List<java.lang.CharSequence> getArgs()
public void setArgs(java.util.List<java.lang.CharSequence> value)
public boolean isArgsDirty()
public java.lang.Long getLastModified()
public void setLastModified(java.lang.Long value)
public boolean isLastModifiedDirty()
public static ProtocolStatus.Builder newBuilder()
public static ProtocolStatus.Builder newBuilder(ProtocolStatus.Builder other)
public static ProtocolStatus.Builder newBuilder(ProtocolStatus other)
public boolean isSuccess()
ProtocolStatus
.ProtocolStatus
value for 200 (success).public ProtocolStatus.Tombstone getTombstone()
getTombstone
in interface org.apache.gora.persistency.Persistent
public ProtocolStatus newInstance()
newInstance
in interface org.apache.gora.persistency.Persistent
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
out
- java.io.ObjectOutput output stream to write data bean in serializable formjava.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
in
- java.io.ObjectOutput input stream to read data bean in serializable formjava.io.IOException
Copyright © 2019 The Apache Software Foundation