org.apache.accumulo.core.data.thrift
Class TCondition

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TCondition
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TCondition>, org.apache.thrift.TBase<TCondition,TCondition._Fields>

public class TCondition
extends Object
implements org.apache.thrift.TBase<TCondition,TCondition._Fields>, Serializable, Cloneable, Comparable<TCondition>

See Also:
Serialized Form

Nested Class Summary
static class TCondition._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer cf
           
 ByteBuffer cq
           
 ByteBuffer cv
           
 boolean hasTimestamp
           
 ByteBuffer iterators
           
static Map<TCondition._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long ts
           
 ByteBuffer val
           
 
Constructor Summary
TCondition()
           
TCondition(ByteBuffer cf, ByteBuffer cq, ByteBuffer cv, long ts, boolean hasTimestamp, ByteBuffer val, ByteBuffer iterators)
           
TCondition(TCondition other)
          Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForCf()
           
 ByteBuffer bufferForCq()
           
 ByteBuffer bufferForCv()
           
 ByteBuffer bufferForIterators()
           
 ByteBuffer bufferForVal()
           
 void clear()
           
 int compareTo(TCondition other)
           
 TCondition deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TCondition that)
           
 TCondition._Fields fieldForId(int fieldId)
           
 byte[] getCf()
           
 byte[] getCq()
           
 byte[] getCv()
           
 Object getFieldValue(TCondition._Fields field)
           
 byte[] getIterators()
           
 long getTs()
           
 byte[] getVal()
           
 int hashCode()
           
 boolean isHasTimestamp()
           
 boolean isSet(TCondition._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCf()
          Returns true if field cf is set (has been assigned a value) and false otherwise
 boolean isSetCq()
          Returns true if field cq is set (has been assigned a value) and false otherwise
 boolean isSetCv()
          Returns true if field cv is set (has been assigned a value) and false otherwise
 boolean isSetHasTimestamp()
          Returns true if field hasTimestamp is set (has been assigned a value) and false otherwise
 boolean isSetIterators()
          Returns true if field iterators is set (has been assigned a value) and false otherwise
 boolean isSetTs()
          Returns true if field ts is set (has been assigned a value) and false otherwise
 boolean isSetVal()
          Returns true if field val is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TCondition setCf(byte[] cf)
           
 TCondition setCf(ByteBuffer cf)
           
 void setCfIsSet(boolean value)
           
 TCondition setCq(byte[] cq)
           
 TCondition setCq(ByteBuffer cq)
           
 void setCqIsSet(boolean value)
           
 TCondition setCv(byte[] cv)
           
 TCondition setCv(ByteBuffer cv)
           
 void setCvIsSet(boolean value)
           
 void setFieldValue(TCondition._Fields field, Object value)
           
 TCondition setHasTimestamp(boolean hasTimestamp)
           
 void setHasTimestampIsSet(boolean value)
           
 TCondition setIterators(byte[] iterators)
           
 TCondition setIterators(ByteBuffer iterators)
           
 void setIteratorsIsSet(boolean value)
           
 TCondition setTs(long ts)
           
 void setTsIsSet(boolean value)
           
 TCondition setVal(byte[] val)
           
 TCondition setVal(ByteBuffer val)
           
 void setValIsSet(boolean value)
           
 String toString()
           
 void unsetCf()
           
 void unsetCq()
           
 void unsetCv()
           
 void unsetHasTimestamp()
           
 void unsetIterators()
           
 void unsetTs()
           
 void unsetVal()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cf

public ByteBuffer cf

cq

public ByteBuffer cq

cv

public ByteBuffer cv

ts

public long ts

hasTimestamp

public boolean hasTimestamp

val

public ByteBuffer val

iterators

public ByteBuffer iterators

metaDataMap

public static final Map<TCondition._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TCondition

public TCondition()

TCondition

public TCondition(ByteBuffer cf,
                  ByteBuffer cq,
                  ByteBuffer cv,
                  long ts,
                  boolean hasTimestamp,
                  ByteBuffer val,
                  ByteBuffer iterators)

TCondition

public TCondition(TCondition other)
Performs a deep copy on other.

Method Detail

deepCopy

public TCondition deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

getCf

public byte[] getCf()

bufferForCf

public ByteBuffer bufferForCf()

setCf

public TCondition setCf(byte[] cf)

setCf

public TCondition setCf(ByteBuffer cf)

unsetCf

public void unsetCf()

isSetCf

public boolean isSetCf()
Returns true if field cf is set (has been assigned a value) and false otherwise


setCfIsSet

public void setCfIsSet(boolean value)

getCq

public byte[] getCq()

bufferForCq

public ByteBuffer bufferForCq()

setCq

public TCondition setCq(byte[] cq)

setCq

public TCondition setCq(ByteBuffer cq)

unsetCq

public void unsetCq()

isSetCq

public boolean isSetCq()
Returns true if field cq is set (has been assigned a value) and false otherwise


setCqIsSet

public void setCqIsSet(boolean value)

getCv

public byte[] getCv()

bufferForCv

public ByteBuffer bufferForCv()

setCv

public TCondition setCv(byte[] cv)

setCv

public TCondition setCv(ByteBuffer cv)

unsetCv

public void unsetCv()

isSetCv

public boolean isSetCv()
Returns true if field cv is set (has been assigned a value) and false otherwise


setCvIsSet

public void setCvIsSet(boolean value)

getTs

public long getTs()

setTs

public TCondition setTs(long ts)

unsetTs

public void unsetTs()

isSetTs

public boolean isSetTs()
Returns true if field ts is set (has been assigned a value) and false otherwise


setTsIsSet

public void setTsIsSet(boolean value)

isHasTimestamp

public boolean isHasTimestamp()

setHasTimestamp

public TCondition setHasTimestamp(boolean hasTimestamp)

unsetHasTimestamp

public void unsetHasTimestamp()

isSetHasTimestamp

public boolean isSetHasTimestamp()
Returns true if field hasTimestamp is set (has been assigned a value) and false otherwise


setHasTimestampIsSet

public void setHasTimestampIsSet(boolean value)

getVal

public byte[] getVal()

bufferForVal

public ByteBuffer bufferForVal()

setVal

public TCondition setVal(byte[] val)

setVal

public TCondition setVal(ByteBuffer val)

unsetVal

public void unsetVal()

isSetVal

public boolean isSetVal()
Returns true if field val is set (has been assigned a value) and false otherwise


setValIsSet

public void setValIsSet(boolean value)

getIterators

public byte[] getIterators()

bufferForIterators

public ByteBuffer bufferForIterators()

setIterators

public TCondition setIterators(byte[] iterators)

setIterators

public TCondition setIterators(ByteBuffer iterators)

unsetIterators

public void unsetIterators()

isSetIterators

public boolean isSetIterators()
Returns true if field iterators is set (has been assigned a value) and false otherwise


setIteratorsIsSet

public void setIteratorsIsSet(boolean value)

setFieldValue

public void setFieldValue(TCondition._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

getFieldValue

public Object getFieldValue(TCondition._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

isSet

public boolean isSet(TCondition._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TCondition that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TCondition other)
Specified by:
compareTo in interface Comparable<TCondition>

fieldForId

public TCondition._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TCondition,TCondition._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2015 Apache Accumulo Project. All rights reserved.