in src/main/thrift-gen-java/org/apache/accumulo/proxy/thrift/ScanOptions.java [803:863]
public void write(org.apache.thrift.protocol.TProtocol oprot, ScanOptions struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.authorizations != null) {
if (struct.isSetAuthorizations()) {
oprot.writeFieldBegin(AUTHORIZATIONS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.authorizations.size()));
for (java.nio.ByteBuffer _iter35 : struct.authorizations)
{
oprot.writeBinary(_iter35);
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.range != null) {
if (struct.isSetRange()) {
oprot.writeFieldBegin(RANGE_FIELD_DESC);
struct.range.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.columns != null) {
if (struct.isSetColumns()) {
oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columns.size()));
for (ScanColumn _iter36 : struct.columns)
{
_iter36.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.iterators != null) {
if (struct.isSetIterators()) {
oprot.writeFieldBegin(ITERATORS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.iterators.size()));
for (IteratorSetting _iter37 : struct.iterators)
{
_iter37.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetBufferSize()) {
oprot.writeFieldBegin(BUFFER_SIZE_FIELD_DESC);
oprot.writeI32(struct.bufferSize);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}