public class DatalogRecord extends java.lang.Object implements org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DatalogRecord>
| Modifier and Type | Class and Description |
|---|---|
static class |
DatalogRecord._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<DatalogRecord._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
DatalogRecord() |
DatalogRecord(DatalogRecord other)
Performs a deep copy on other.
|
DatalogRecord(DatalogRecordType type,
java.lang.String id,
long timestamp,
long storeTimestamp,
Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForEncoder() |
void |
clear() |
int |
compareTo(DatalogRecord other) |
DatalogRecord |
deepCopy() |
boolean |
equals(DatalogRecord that) |
boolean |
equals(java.lang.Object that) |
DatalogRecord._Fields |
fieldForId(int fieldId) |
long |
getBaseTimestamp()
Optional encode base timestamp (for UPDATE messages)
|
byte[] |
getEncoder()
Optional encoder (for UPDATE messages)
|
java.lang.Object |
getFieldValue(DatalogRecord._Fields field) |
GTSWrapper |
getForward()
Optional wrapper containing the data to forward.
|
java.lang.String |
getId()
Id of the instance which created the record
|
Metadata |
getMetadata()
Associated Metadata
|
long |
getStart()
Optional start timestamp (for DELETE messages)
|
long |
getStop()
Optional end timestamp (for DELETE messages)
|
long |
getStoreTimestamp()
Timestamp at which the record was added to the DatalogFile.
|
long |
getTimestamp()
Timestamp of initial record creation, in ms since the Epoch
|
WriteToken |
getToken()
Write token associated with the request.
|
DatalogRecordType |
getType()
Type of the Datalog Record
|
int |
hashCode() |
boolean |
isSet(DatalogRecord._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBaseTimestamp()
Returns true if field baseTimestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetEncoder()
Returns true if field encoder is set (has been assigned a value) and false otherwise
|
boolean |
isSetForward()
Returns true if field forward is set (has been assigned a value) and false otherwise
|
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetadata()
Returns true if field metadata is set (has been assigned a value) and false otherwise
|
boolean |
isSetStart()
Returns true if field start is set (has been assigned a value) and false otherwise
|
boolean |
isSetStop()
Returns true if field stop is set (has been assigned a value) and false otherwise
|
boolean |
isSetStoreTimestamp()
Returns true if field storeTimestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
DatalogRecord |
setBaseTimestamp(long baseTimestamp)
Optional encode base timestamp (for UPDATE messages)
|
void |
setBaseTimestampIsSet(boolean value) |
DatalogRecord |
setEncoder(byte[] encoder)
Optional encoder (for UPDATE messages)
|
DatalogRecord |
setEncoder(java.nio.ByteBuffer encoder) |
void |
setEncoderIsSet(boolean value) |
void |
setFieldValue(DatalogRecord._Fields field,
java.lang.Object value) |
DatalogRecord |
setForward(GTSWrapper forward)
Optional wrapper containing the data to forward.
|
void |
setForwardIsSet(boolean value) |
DatalogRecord |
setId(java.lang.String id)
Id of the instance which created the record
|
void |
setIdIsSet(boolean value) |
DatalogRecord |
setMetadata(Metadata metadata)
Associated Metadata
|
void |
setMetadataIsSet(boolean value) |
DatalogRecord |
setStart(long start)
Optional start timestamp (for DELETE messages)
|
void |
setStartIsSet(boolean value) |
DatalogRecord |
setStop(long stop)
Optional end timestamp (for DELETE messages)
|
void |
setStopIsSet(boolean value) |
DatalogRecord |
setStoreTimestamp(long storeTimestamp)
Timestamp at which the record was added to the DatalogFile.
|
void |
setStoreTimestampIsSet(boolean value) |
DatalogRecord |
setTimestamp(long timestamp)
Timestamp of initial record creation, in ms since the Epoch
|
void |
setTimestampIsSet(boolean value) |
DatalogRecord |
setToken(WriteToken token)
Write token associated with the request.
|
void |
setTokenIsSet(boolean value) |
DatalogRecord |
setType(DatalogRecordType type)
Type of the Datalog Record
|
void |
setTypeIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetBaseTimestamp() |
void |
unsetEncoder() |
void |
unsetForward() |
void |
unsetId() |
void |
unsetMetadata() |
void |
unsetStart() |
void |
unsetStop() |
void |
unsetStoreTimestamp() |
void |
unsetTimestamp() |
void |
unsetToken() |
void |
unsetType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<DatalogRecord._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public DatalogRecord()
public DatalogRecord(DatalogRecordType type, java.lang.String id, long timestamp, long storeTimestamp, Metadata metadata)
public DatalogRecord(DatalogRecord other)
public DatalogRecord deepCopy()
deepCopy in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public void clear()
clear in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public DatalogRecordType getType()
DatalogRecordTypepublic DatalogRecord setType(DatalogRecordType type)
DatalogRecordTypepublic void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public java.lang.String getId()
public DatalogRecord setId(java.lang.String id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public long getTimestamp()
public DatalogRecord setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public long getStoreTimestamp()
public DatalogRecord setStoreTimestamp(long storeTimestamp)
public void unsetStoreTimestamp()
public boolean isSetStoreTimestamp()
public void setStoreTimestampIsSet(boolean value)
public Metadata getMetadata()
public DatalogRecord setMetadata(Metadata metadata)
public void unsetMetadata()
public boolean isSetMetadata()
public void setMetadataIsSet(boolean value)
public long getBaseTimestamp()
public DatalogRecord setBaseTimestamp(long baseTimestamp)
public void unsetBaseTimestamp()
public boolean isSetBaseTimestamp()
public void setBaseTimestampIsSet(boolean value)
public byte[] getEncoder()
public java.nio.ByteBuffer bufferForEncoder()
public DatalogRecord setEncoder(byte[] encoder)
public DatalogRecord setEncoder(java.nio.ByteBuffer encoder)
public void unsetEncoder()
public boolean isSetEncoder()
public void setEncoderIsSet(boolean value)
public long getStart()
public DatalogRecord setStart(long start)
public void unsetStart()
public boolean isSetStart()
public void setStartIsSet(boolean value)
public long getStop()
public DatalogRecord setStop(long stop)
public void unsetStop()
public boolean isSetStop()
public void setStopIsSet(boolean value)
public GTSWrapper getForward()
public DatalogRecord setForward(GTSWrapper forward)
public void unsetForward()
public boolean isSetForward()
public void setForwardIsSet(boolean value)
public WriteToken getToken()
public DatalogRecord setToken(WriteToken token)
public void unsetToken()
public boolean isSetToken()
public void setTokenIsSet(boolean value)
public void setFieldValue(DatalogRecord._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public java.lang.Object getFieldValue(DatalogRecord._Fields field)
getFieldValue in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public boolean isSet(DatalogRecord._Fields field)
isSet in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(DatalogRecord that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(DatalogRecord other)
compareTo in interface java.lang.Comparable<DatalogRecord>public DatalogRecord._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<DatalogRecord,DatalogRecord._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException