in src/main/thrift-gen-java/org/apache/accumulo/proxy/thrift/ActiveScan.java [1371:1449]
public void write(org.apache.thrift.protocol.TProtocol oprot, ActiveScan struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.client != null) {
oprot.writeFieldBegin(CLIENT_FIELD_DESC);
oprot.writeString(struct.client);
oprot.writeFieldEnd();
}
if (struct.user != null) {
oprot.writeFieldBegin(USER_FIELD_DESC);
oprot.writeString(struct.user);
oprot.writeFieldEnd();
}
if (struct.table != null) {
oprot.writeFieldBegin(TABLE_FIELD_DESC);
oprot.writeString(struct.table);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(AGE_FIELD_DESC);
oprot.writeI64(struct.age);
oprot.writeFieldEnd();
oprot.writeFieldBegin(IDLE_TIME_FIELD_DESC);
oprot.writeI64(struct.idleTime);
oprot.writeFieldEnd();
if (struct.type != null) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeI32(struct.type.getValue());
oprot.writeFieldEnd();
}
if (struct.state != null) {
oprot.writeFieldBegin(STATE_FIELD_DESC);
oprot.writeI32(struct.state.getValue());
oprot.writeFieldEnd();
}
if (struct.extent != null) {
oprot.writeFieldBegin(EXTENT_FIELD_DESC);
struct.extent.write(oprot);
oprot.writeFieldEnd();
}
if (struct.columns != null) {
oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columns.size()));
for (Column _iter123 : struct.columns)
{
_iter123.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.iterators != null) {
oprot.writeFieldBegin(ITERATORS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.iterators.size()));
for (IteratorSetting _iter124 : struct.iterators)
{
_iter124.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.authorizations != null) {
oprot.writeFieldBegin(AUTHORIZATIONS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.authorizations.size()));
for (java.nio.ByteBuffer _iter125 : struct.authorizations)
{
oprot.writeBinary(_iter125);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}