org.apache.accumulo.core.data.thrift
Class ScanResult

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.ScanResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ScanResult>, org.apache.thrift.TBase<ScanResult,ScanResult._Fields>

public class ScanResult
extends java.lang.Object
implements org.apache.thrift.TBase<ScanResult,ScanResult._Fields>, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class ScanResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<ScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 boolean more
           
 java.util.List<TKeyValue> results
           
 
Constructor Summary
ScanResult()
           
ScanResult(java.util.List<TKeyValue> results, boolean more)
           
ScanResult(ScanResult other)
          Performs a deep copy on other.
 
Method Summary
 void addToResults(TKeyValue elem)
           
 ScanResult clone()
          Deprecated. 
 int compareTo(ScanResult other)
           
 ScanResult deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(ScanResult that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(ScanResult._Fields field)
           
 java.util.List<TKeyValue> getResults()
           
 java.util.Iterator<TKeyValue> getResultsIterator()
           
 int getResultsSize()
           
 int hashCode()
           
 boolean isMore()
           
 boolean isSet(int fieldID)
           
 boolean isSet(ScanResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetMore()
          Returns true if field more is set (has been asigned a value) and false otherwise
 boolean isSetResults()
          Returns true if field results is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(ScanResult._Fields field, java.lang.Object value)
           
 ScanResult setMore(boolean more)
           
 void setMoreIsSet(boolean value)
           
 ScanResult setResults(java.util.List<TKeyValue> results)
           
 void setResultsIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetMore()
           
 void unsetResults()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

results

public java.util.List<TKeyValue> results

more

public boolean more

metaDataMap

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

ScanResult

public ScanResult()

ScanResult

public ScanResult(java.util.List<TKeyValue> results,
                  boolean more)

ScanResult

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

Method Detail

deepCopy

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

clone

@Deprecated
public ScanResult clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getResultsSize

public int getResultsSize()

getResultsIterator

public java.util.Iterator<TKeyValue> getResultsIterator()

addToResults

public void addToResults(TKeyValue elem)

getResults

public java.util.List<TKeyValue> getResults()

setResults

public ScanResult setResults(java.util.List<TKeyValue> results)

unsetResults

public void unsetResults()

isSetResults

public boolean isSetResults()
Returns true if field results is set (has been asigned a value) and false otherwise


setResultsIsSet

public void setResultsIsSet(boolean value)

isMore

public boolean isMore()

setMore

public ScanResult setMore(boolean more)

unsetMore

public void unsetMore()

isSetMore

public boolean isSetMore()
Returns true if field more is set (has been asigned a value) and false otherwise


setMoreIsSet

public void setMoreIsSet(boolean value)

setFieldValue

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

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<ScanResult,ScanResult._Fields>

getFieldValue

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

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<ScanResult,ScanResult._Fields>

isSet

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

Specified by:
isSet in interface org.apache.thrift.TBase<ScanResult,ScanResult._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<ScanResult,ScanResult._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(ScanResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(ScanResult other)
Specified by:
compareTo in interface java.lang.Comparable<ScanResult>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<ScanResult,ScanResult._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<ScanResult,ScanResult._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


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