org.apache.blur.thrift.generated
Class Record

java.lang.Object
  extended by org.apache.blur.thrift.generated.Record
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>, TBase<Record,Record._Fields>
Direct Known Subclasses:
BlurThriftRecord

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

Records contain a list of columns, multiple columns with the same name are allowed.

See Also:
Serialized Form

Nested Class Summary
static class Record._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 List<Column> columns
          A list of columns, multiple columns with the same name are allowed.
 String family
          The family in which this record resides.
static Map<Record._Fields,FieldMetaData> metaDataMap
           
 String recordId
          Record id uniquely identifies a record within a single row.
 
Constructor Summary
Record()
           
Record(Record other)
          Performs a deep copy on other.
Record(String recordId, String family, List<Column> columns)
           
 
Method Summary
 void addToColumns(Column elem)
           
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(Record other)
           
 Record deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Record that)
           
 Record._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 List<Column> getColumns()
          A list of columns, multiple columns with the same name are allowed.
 Iterator<Column> getColumnsIterator()
           
 int getColumnsSize()
           
 String getFamily()
          The family in which this record resides.
 Object getFieldValue(Record._Fields field)
          Get a field's value by field variable.
 String getRecordId()
          Record id uniquely identifies a record within a single row.
 int hashCode()
           
 boolean isSet(Record._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetColumns()
          Returns true if field columns 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 isSetRecordId()
          Returns true if field recordId is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 Record setColumns(List<Column> columns)
          A list of columns, multiple columns with the same name are allowed.
 void setColumnsIsSet(boolean value)
           
 Record setFamily(String family)
          The family in which this record resides.
 void setFamilyIsSet(boolean value)
           
 void setFieldValue(Record._Fields field, Object value)
          Set a field's value by field variable.
 Record setRecordId(String recordId)
          Record id uniquely identifies a record within a single row.
 void setRecordIdIsSet(boolean value)
           
 String toString()
           
 void unsetColumns()
           
 void unsetFamily()
           
 void unsetRecordId()
           
 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

recordId

public String recordId
Record id uniquely identifies a record within a single row.


family

public String family
The family in which this record resides.


columns

public List<Column> columns
A list of columns, multiple columns with the same name are allowed.


metaDataMap

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

Record

public Record()

Record

public Record(String recordId,
              String family,
              List<Column> columns)

Record

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

Method Detail

deepCopy

public Record deepCopy()
Specified by:
deepCopy in interface TBase<Record,Record._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<Record,Record._Fields>

getRecordId

public String getRecordId()
Record id uniquely identifies a record within a single row.


setRecordId

public Record setRecordId(String recordId)
Record id uniquely identifies a record within a single row.


unsetRecordId

public void unsetRecordId()

isSetRecordId

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


setRecordIdIsSet

public void setRecordIdIsSet(boolean value)

getFamily

public String getFamily()
The family in which this record resides.


setFamily

public Record setFamily(String family)
The family in which this record resides.


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)

getColumnsSize

public int getColumnsSize()

getColumnsIterator

public Iterator<Column> getColumnsIterator()

addToColumns

public void addToColumns(Column elem)

getColumns

public List<Column> getColumns()
A list of columns, multiple columns with the same name are allowed.


setColumns

public Record setColumns(List<Column> columns)
A list of columns, multiple columns with the same name are allowed.


unsetColumns

public void unsetColumns()

isSetColumns

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


setColumnsIsSet

public void setColumnsIsSet(boolean value)

setFieldValue

public void setFieldValue(Record._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<Record,Record._Fields>

getFieldValue

public Object getFieldValue(Record._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<Record,Record._Fields>

isSet

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

equals

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

equals

public boolean equals(Record that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

Specified by:
fieldForId in interface TBase<Record,Record._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<Record,Record._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<Record,Record._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.