Class ScanResult
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.ScanResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ScanResult>
,org.apache.thrift.TBase<ScanResult,ScanResult._Fields>
,org.apache.thrift.TSerializable
public class ScanResult extends Object implements org.apache.thrift.TBase<ScanResult,ScanResult._Fields>, Serializable, Cloneable, Comparable<ScanResult>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScanResult._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<ScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
boolean
more
List<TKeyValue>
results
-
Constructor Summary
Constructors Constructor Description ScanResult()
ScanResult(List<TKeyValue> results, boolean more)
ScanResult(ScanResult other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 otherwiseboolean
isSetMore()
Returns true if field more is set (has been assigned a value) and false otherwiseboolean
isSetResults()
Returns true if field results is set (has been assigned a value) and false otherwisevoid
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)
-
-
-
Field Detail
-
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(ScanResult other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public ScanResult deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<ScanResult,ScanResult._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<ScanResult,ScanResult._Fields>
-
getResultsSize
public int getResultsSize()
-
addToResults
public void addToResults(TKeyValue elem)
-
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 interfaceorg.apache.thrift.TBase<ScanResult,ScanResult._Fields>
-
getFieldValue
public Object getFieldValue(ScanResult._Fields field)
- Specified by:
getFieldValue
in interfaceorg.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 interfaceorg.apache.thrift.TBase<ScanResult,ScanResult._Fields>
-
equals
public boolean equals(ScanResult that)
-
compareTo
public int compareTo(ScanResult other)
- Specified by:
compareTo
in interfaceComparable<ScanResult>
-
fieldForId
public ScanResult._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.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 interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-