org.apache.blur.thrift.generated
Class FetchRecordResult

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

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

FetchRecordResult contains rowid of the record and the record result from a fetch.

See Also:
Serialized Form

Nested Class Summary
static class FetchRecordResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<FetchRecordResult._Fields,FieldMetaData> metaDataMap
           
 Record record
          The record fetched.
 String rowid
          The row id of the record being fetched.
 
Constructor Summary
FetchRecordResult()
           
FetchRecordResult(FetchRecordResult other)
          Performs a deep copy on other.
FetchRecordResult(String rowid, Record record)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(FetchRecordResult other)
           
 FetchRecordResult deepCopy()
           
 boolean equals(FetchRecordResult that)
           
 boolean equals(Object that)
           
 FetchRecordResult._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(FetchRecordResult._Fields field)
          Get a field's value by field variable.
 Record getRecord()
          The record fetched.
 String getRowid()
          The row id of the record being fetched.
 int hashCode()
           
 boolean isSet(FetchRecordResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetRecord()
          Returns true if field record is set (has been assigned a value) and false otherwise
 boolean isSetRowid()
          Returns true if field rowid is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(FetchRecordResult._Fields field, Object value)
          Set a field's value by field variable.
 FetchRecordResult setRecord(Record record)
          The record fetched.
 void setRecordIsSet(boolean value)
           
 FetchRecordResult setRowid(String rowid)
          The row id of the record being fetched.
 void setRowidIsSet(boolean value)
           
 String toString()
           
 void unsetRecord()
           
 void unsetRowid()
           
 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

rowid

public String rowid
The row id of the record being fetched.


record

public Record record
The record fetched.


metaDataMap

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

FetchRecordResult

public FetchRecordResult()

FetchRecordResult

public FetchRecordResult(String rowid,
                         Record record)

FetchRecordResult

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

Method Detail

deepCopy

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

getRowid

public String getRowid()
The row id of the record being fetched.


setRowid

public FetchRecordResult setRowid(String rowid)
The row id of the record being fetched.


unsetRowid

public void unsetRowid()

isSetRowid

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


setRowidIsSet

public void setRowidIsSet(boolean value)

getRecord

public Record getRecord()
The record fetched.


setRecord

public FetchRecordResult setRecord(Record record)
The record fetched.


unsetRecord

public void unsetRecord()

isSetRecord

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


setRecordIsSet

public void setRecordIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(FetchRecordResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

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