in core/src/main/thrift-gen-java/org/apache/accumulo/core/dataImpl/thrift/MultiScanResult.java [879:1002]
public void read(org.apache.thrift.protocol.TProtocol iprot, MultiScanResult struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // RESULTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
struct.results = new java.util.ArrayList<TKeyValue>(_list24.size);
@org.apache.thrift.annotation.Nullable TKeyValue _elem25;
for (int _i26 = 0; _i26 < _list24.size; ++_i26)
{
_elem25 = new TKeyValue();
_elem25.read(iprot);
struct.results.add(_elem25);
}
iprot.readListEnd();
}
struct.setResultsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // FAILURES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin();
struct.failures = new java.util.HashMap<TKeyExtent,java.util.List<TRange>>(2*_map27.size);
@org.apache.thrift.annotation.Nullable TKeyExtent _key28;
@org.apache.thrift.annotation.Nullable java.util.List<TRange> _val29;
for (int _i30 = 0; _i30 < _map27.size; ++_i30)
{
_key28 = new TKeyExtent();
_key28.read(iprot);
{
org.apache.thrift.protocol.TList _list31 = iprot.readListBegin();
_val29 = new java.util.ArrayList<TRange>(_list31.size);
@org.apache.thrift.annotation.Nullable TRange _elem32;
for (int _i33 = 0; _i33 < _list31.size; ++_i33)
{
_elem32 = new TRange();
_elem32.read(iprot);
_val29.add(_elem32);
}
iprot.readListEnd();
}
struct.failures.put(_key28, _val29);
}
iprot.readMapEnd();
}
struct.setFailuresIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // FULL_SCANS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list34 = iprot.readListBegin();
struct.fullScans = new java.util.ArrayList<TKeyExtent>(_list34.size);
@org.apache.thrift.annotation.Nullable TKeyExtent _elem35;
for (int _i36 = 0; _i36 < _list34.size; ++_i36)
{
_elem35 = new TKeyExtent();
_elem35.read(iprot);
struct.fullScans.add(_elem35);
}
iprot.readListEnd();
}
struct.setFullScansIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // PART_SCAN
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.partScan = new TKeyExtent();
struct.partScan.read(iprot);
struct.setPartScanIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // PART_NEXT_KEY
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.partNextKey = new TKey();
struct.partNextKey.read(iprot);
struct.setPartNextKeyIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // PART_NEXT_KEY_INCLUSIVE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.partNextKeyInclusive = iprot.readBool();
struct.setPartNextKeyInclusiveIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // MORE
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.more = iprot.readBool();
struct.setMoreIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}