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

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

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

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 Map<ScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 boolean more
           
 List<TKeyValue> results
           
 
Constructor Summary
ScanResult()
           
ScanResult(List<TKeyValue> results, boolean more)
           
ScanResult(ScanResult other)
          Performs a deep copy on other.
 
Method Summary
 void addToResults(TKeyValue elem)
           
 void clear()
           
 int compareTo(ScanResult other)
           
 ScanResult deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(ScanResult that)
           
 ScanResult._Fields fieldForId(int fieldId)
           
 Object getFieldValue(ScanResult._Fields field)
           
 List<TKeyValue> getResults()
           
 Iterator<TKeyValue> getResultsIterator()
           
 int getResultsSize()
           
 int hashCode()
           
 boolean isMore()
           
 boolean isSet(ScanResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetMore()
          Returns true if field more is set (has been assigned a value) and false otherwise
 boolean isSetResults()
          Returns true if field results is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(ScanResult._Fields field, Object value)
           
 ScanResult setMore(boolean more)
           
 void setMoreIsSet(boolean value)
           
 ScanResult setResults(List<TKeyValue> results)
           
 void setResultsIsSet(boolean value)
           
 String toString()
           
 void unsetMore()
           
 void unsetResults()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

results

public List<TKeyValue> results

more

public boolean more

metaDataMap

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

ScanResult

public ScanResult()

ScanResult

public ScanResult(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>

clear

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

getResultsSize

public int getResultsSize()

getResultsIterator

public Iterator<TKeyValue> getResultsIterator()

addToResults

public void addToResults(TKeyValue elem)

getResults

public List<TKeyValue> getResults()

setResults

public ScanResult setResults(List<TKeyValue> results)

unsetResults

public void unsetResults()

isSetResults

public boolean isSetResults()
Returns true if field results is set (has been assigned 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 assigned a value) and false otherwise


setMoreIsSet

public void setMoreIsSet(boolean value)

setFieldValue

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

getFieldValue

public Object getFieldValue(ScanResult._Fields field)
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 assigned a value) and false otherwise

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

equals

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

equals

public boolean equals(ScanResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

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 String toString()
Overrides:
toString in class Object

validate

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


Copyright © 2015 Apache Accumulo Project. All rights reserved.