org.apache.blur.thrift.generated
Class Row

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

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

Rows contain a list of records.

See Also:
Serialized Form

Nested Class Summary
static class Row._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 String id
          The row id.
static Map<Row._Fields,FieldMetaData> metaDataMap
           
 List<Record> records
          The list records within the row.
 
Constructor Summary
Row()
           
Row(Row other)
          Performs a deep copy on other.
Row(String id, List<Record> records)
           
 
Method Summary
 void addToRecords(Record elem)
           
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(Row other)
           
 Row deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Row that)
           
 Row._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(Row._Fields field)
          Get a field's value by field variable.
 String getId()
          The row id.
 List<Record> getRecords()
          The list records within the row.
 Iterator<Record> getRecordsIterator()
           
 int getRecordsSize()
           
 int hashCode()
           
 boolean isSet(Row._Fields field)
          Returns true if field corresponding to fieldID 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 isSetRecords()
          Returns true if field records is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(Row._Fields field, Object value)
          Set a field's value by field variable.
 Row setId(String id)
          The row id.
 void setIdIsSet(boolean value)
           
 Row setRecords(List<Record> records)
          The list records within the row.
 void setRecordsIsSet(boolean value)
           
 String toString()
           
 void unsetId()
           
 void unsetRecords()
           
 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

id

public String id
The row id.


records

public List<Record> records
The list records within the row. If paging is used this list will only reflect the paged records from the selector.


metaDataMap

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

Row

public Row()

Row

public Row(String id,
           List<Record> records)

Row

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

Method Detail

deepCopy

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

getId

public String getId()
The row id.


setId

public Row setId(String id)
The row id.


unsetId

public void unsetId()

isSetId

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


setIdIsSet

public void setIdIsSet(boolean value)

getRecordsSize

public int getRecordsSize()

getRecordsIterator

public Iterator<Record> getRecordsIterator()

addToRecords

public void addToRecords(Record elem)

getRecords

public List<Record> getRecords()
The list records within the row. If paging is used this list will only reflect the paged records from the selector.


setRecords

public Row setRecords(List<Record> records)
The list records within the row. If paging is used this list will only reflect the paged records from the selector.


unsetRecords

public void unsetRecords()

isSetRecords

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


setRecordsIsSet

public void setRecordsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(Row that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

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