org.apache.accumulo.core.data.thrift
Class ScanResult
java.lang.Object
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. |
results
public List<TKeyValue> results
more
public boolean more
metaDataMap
public static final Map<ScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
ScanResult
public ScanResult()
ScanResult
public ScanResult(List<TKeyValue> results,
boolean more)
ScanResult
public ScanResult(ScanResult other)
- Performs a deep copy on other.
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.