in src/main/thrift-gen-java/org/apache/accumulo/proxy/thrift/BatchScanOptions.java [726:828]
public void read(org.apache.thrift.protocol.TProtocol iprot, BatchScanOptions 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: // AUTHORIZATIONS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set50 = iprot.readSetBegin();
struct.authorizations = new java.util.HashSet<java.nio.ByteBuffer>(2*_set50.size);
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem51;
for (int _i52 = 0; _i52 < _set50.size; ++_i52)
{
_elem51 = iprot.readBinary();
struct.authorizations.add(_elem51);
}
iprot.readSetEnd();
}
struct.setAuthorizationsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RANGES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
struct.ranges = new java.util.ArrayList<Range>(_list53.size);
@org.apache.thrift.annotation.Nullable Range _elem54;
for (int _i55 = 0; _i55 < _list53.size; ++_i55)
{
_elem54 = new Range();
_elem54.read(iprot);
struct.ranges.add(_elem54);
}
iprot.readListEnd();
}
struct.setRangesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // COLUMNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
struct.columns = new java.util.ArrayList<ScanColumn>(_list56.size);
@org.apache.thrift.annotation.Nullable ScanColumn _elem57;
for (int _i58 = 0; _i58 < _list56.size; ++_i58)
{
_elem57 = new ScanColumn();
_elem57.read(iprot);
struct.columns.add(_elem57);
}
iprot.readListEnd();
}
struct.setColumnsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // ITERATORS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list59 = iprot.readListBegin();
struct.iterators = new java.util.ArrayList<IteratorSetting>(_list59.size);
@org.apache.thrift.annotation.Nullable IteratorSetting _elem60;
for (int _i61 = 0; _i61 < _list59.size; ++_i61)
{
_elem60 = new IteratorSetting();
_elem60.read(iprot);
struct.iterators.add(_elem60);
}
iprot.readListEnd();
}
struct.setIteratorsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // THREADS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.threads = iprot.readI32();
struct.setThreadsIsSet(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();
}