org.apache.hadoop.hbase.thrift2.generated
Class TColumn

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift2.generated.TColumn
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TColumn>, org.apache.thrift.TBase<TColumn,TColumn._Fields>

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

Addresses a single cell or multiple cells in a HBase table by column family and optionally a column qualifier and timestamp

See Also:
Serialized Form

Nested Class Summary
static class TColumn._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer family
           
static Map<TColumn._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer qualifier
           
 long timestamp
           
 
Constructor Summary
TColumn()
           
TColumn(ByteBuffer family)
           
TColumn(TColumn other)
          Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForFamily()
           
 ByteBuffer bufferForQualifier()
           
 void clear()
           
 int compareTo(TColumn other)
           
 TColumn deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TColumn that)
           
 TColumn._Fields fieldForId(int fieldId)
           
 byte[] getFamily()
           
 Object getFieldValue(TColumn._Fields field)
           
 byte[] getQualifier()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isSet(TColumn._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetFamily()
          Returns true if field family is set (has been assigned a value) and false otherwise
 boolean isSetQualifier()
          Returns true if field qualifier 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
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TColumn setFamily(byte[] family)
           
 TColumn setFamily(ByteBuffer family)
           
 void setFamilyIsSet(boolean value)
           
 void setFieldValue(TColumn._Fields field, Object value)
           
 TColumn setQualifier(byte[] qualifier)
           
 TColumn setQualifier(ByteBuffer qualifier)
           
 void setQualifierIsSet(boolean value)
           
 TColumn setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 String toString()
           
 void unsetFamily()
           
 void unsetQualifier()
           
 void unsetTimestamp()
           
 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

family

public ByteBuffer family

qualifier

public ByteBuffer qualifier

timestamp

public long timestamp

metaDataMap

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

TColumn

public TColumn()

TColumn

public TColumn(ByteBuffer family)

TColumn

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

Method Detail

deepCopy

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

clear

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

getFamily

public byte[] getFamily()

bufferForFamily

public ByteBuffer bufferForFamily()

setFamily

public TColumn setFamily(byte[] family)

setFamily

public TColumn setFamily(ByteBuffer family)

unsetFamily

public void unsetFamily()

isSetFamily

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


setFamilyIsSet

public void setFamilyIsSet(boolean value)

getQualifier

public byte[] getQualifier()

bufferForQualifier

public ByteBuffer bufferForQualifier()

setQualifier

public TColumn setQualifier(byte[] qualifier)

setQualifier

public TColumn setQualifier(ByteBuffer qualifier)

unsetQualifier

public void unsetQualifier()

isSetQualifier

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


setQualifierIsSet

public void setQualifierIsSet(boolean value)

getTimestamp

public long getTimestamp()

setTimestamp

public TColumn setTimestamp(long timestamp)

unsetTimestamp

public void unsetTimestamp()

isSetTimestamp

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


setTimestampIsSet

public void setTimestampIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(TColumn._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<TColumn,TColumn._Fields>

equals

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

equals

public boolean equals(TColumn that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TColumn._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TColumn,TColumn._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<TColumn,TColumn._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<TColumn,TColumn._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 The Apache Software Foundation. All rights reserved.