org.apache.blur.thrift.generated
Class Column

java.lang.Object
  extended by org.apache.blur.thrift.generated.Column
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Column>, TBase<Column,Column._Fields>

public class Column
extends Object
implements TBase<Column,Column._Fields>, Serializable, Cloneable

Column is the lowest storage element in Blur, it stores a single name and value pair.

See Also:
Serialized Form

Nested Class Summary
static class Column._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Column._Fields,FieldMetaData> metaDataMap
           
 String name
          The name of the column.
 String value
          The value to be indexed and stored.
 
Constructor Summary
Column()
           
Column(Column other)
          Performs a deep copy on other.
Column(String name, String value)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(Column other)
           
 Column deepCopy()
           
 boolean equals(Column that)
           
 boolean equals(Object that)
           
 Column._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(Column._Fields field)
          Get a field's value by field variable.
 String getName()
          The name of the column.
 String getValue()
          The value to be indexed and stored.
 int hashCode()
           
 boolean isSet(Column._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been assigned a value) and false otherwise
 boolean isSetValue()
          Returns true if field value is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(Column._Fields field, Object value)
          Set a field's value by field variable.
 Column setName(String name)
          The name of the column.
 void setNameIsSet(boolean value)
           
 Column setValue(String value)
          The value to be indexed and stored.
 void setValueIsSet(boolean value)
           
 String toString()
           
 void unsetName()
           
 void unsetValue()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name
The name of the column.


value

public String value
The value to be indexed and stored.


metaDataMap

public static final Map<Column._Fields,FieldMetaData> metaDataMap
Constructor Detail

Column

public Column()

Column

public Column(String name,
              String value)

Column

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

Method Detail

deepCopy

public Column deepCopy()
Specified by:
deepCopy in interface TBase<Column,Column._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<Column,Column._Fields>

getName

public String getName()
The name of the column.


setName

public Column setName(String name)
The name of the column.


unsetName

public void unsetName()

isSetName

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


setNameIsSet

public void setNameIsSet(boolean value)

getValue

public String getValue()
The value to be indexed and stored.


setValue

public Column setValue(String value)
The value to be indexed and stored.


unsetValue

public void unsetValue()

isSetValue

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


setValueIsSet

public void setValueIsSet(boolean value)

setFieldValue

public void setFieldValue(Column._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<Column,Column._Fields>

getFieldValue

public Object getFieldValue(Column._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<Column,Column._Fields>

isSet

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

Specified by:
isSet in interface TBase<Column,Column._Fields>

equals

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

equals

public boolean equals(Column that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public Column._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<Column,Column._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<Column,Column._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<Column,Column._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.