in core/src/main/thrift-gen-java/org/apache/accumulo/core/tabletserver/thrift/TExternalCompactionJob.java [1020:1137]
public void read(org.apache.thrift.protocol.TProtocol iprot, TExternalCompactionJob 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: // EXTERNAL_COMPACTION_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.externalCompactionId = iprot.readString();
struct.setExternalCompactionIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // EXTENT
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.extent = new org.apache.accumulo.core.dataImpl.thrift.TKeyExtent();
struct.extent.read(iprot);
struct.setExtentIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // FILES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list54 = iprot.readListBegin();
struct.files = new java.util.ArrayList<InputFile>(_list54.size);
@org.apache.thrift.annotation.Nullable InputFile _elem55;
for (int _i56 = 0; _i56 < _list54.size; ++_i56)
{
_elem55 = new InputFile();
_elem55.read(iprot);
struct.files.add(_elem55);
}
iprot.readListEnd();
}
struct.setFilesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // ITERATOR_SETTINGS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.iteratorSettings = new IteratorConfig();
struct.iteratorSettings.read(iprot);
struct.setIteratorSettingsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // OUTPUT_FILE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.outputFile = iprot.readString();
struct.setOutputFileIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // PROPAGATE_DELETES
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.propagateDeletes = iprot.readBool();
struct.setPropagateDeletesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // KIND
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.kind = org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.findByValue(iprot.readI32());
struct.setKindIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // FATE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.fateId = new org.apache.accumulo.core.manager.thrift.TFateId();
struct.fateId.read(iprot);
struct.setFateIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // OVERRIDES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map57 = iprot.readMapBegin();
struct.overrides = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map57.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key58;
@org.apache.thrift.annotation.Nullable java.lang.String _val59;
for (int _i60 = 0; _i60 < _map57.size; ++_i60)
{
_key58 = iprot.readString();
_val59 = iprot.readString();
struct.overrides.put(_key58, _val59);
}
iprot.readMapEnd();
}
struct.setOverridesIsSet(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();
}