in src/main/thrift-gen-java/org/apache/accumulo/proxy/thrift/ConditionalWriterOptions.java [667:736]
public void read(org.apache.thrift.protocol.TProtocol iprot, ConditionalWriterOptions 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: // MAX_MEMORY
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.maxMemory = iprot.readI64();
struct.setMaxMemoryIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TIMEOUT_MS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.timeoutMs = iprot.readI64();
struct.setTimeoutMsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // 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;
case 4: // AUTHORIZATIONS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set106 = iprot.readSetBegin();
struct.authorizations = new java.util.HashSet<java.nio.ByteBuffer>(2*_set106.size);
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem107;
for (int _i108 = 0; _i108 < _set106.size; ++_i108)
{
_elem107 = iprot.readBinary();
struct.authorizations.add(_elem107);
}
iprot.readSetEnd();
}
struct.setAuthorizationsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // DURABILITY
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.durability = org.apache.accumulo.proxy.thrift.Durability.findByValue(iprot.readI32());
struct.setDurabilityIsSet(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();
}