public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (tinfo != null) { tinfo.validate(); } if (credentials != null) { credentials.validate(); } if (split != null) { split.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TabletSplit struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.oldTablet != null) { oprot.writeFieldBegin(OLD_TABLET_FIELD_DESC); struct.oldTablet.write(oprot); oprot.writeFieldEnd(); } if (struct.newTablets != null) { oprot.writeFieldBegin(NEW_TABLETS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.newTablets.size())); for (org.apache.accumulo.core.dataImpl.thrift.TKeyExtent _iter81 : struct.newTablets) { _iter81.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (tinfo != null) { tinfo.validate(); } if (credentials != null) { credentials.validate(); } if (split != null) { split.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TabletSplit struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.oldTablet != null) { oprot.writeFieldBegin(OLD_TABLET_FIELD_DESC); struct.oldTablet.write(oprot); oprot.writeFieldEnd(); } if (struct.newTablets != null) { oprot.writeFieldBegin(NEW_TABLETS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.newTablets.size())); for (org.apache.accumulo.core.data.thrift.TKeyExtent _iter81 : struct.newTablets) { _iter81.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }