in core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TableInfo.java [1090:1199]
public void read(org.apache.thrift.protocol.TProtocol iprot, TableInfo 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: // RECS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.recs = iprot.readI64();
struct.setRecsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // RECS_IN_MEMORY
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.recsInMemory = iprot.readI64();
struct.setRecsInMemoryIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // TABLETS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.tablets = iprot.readI32();
struct.setTabletsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // ONLINE_TABLETS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.onlineTablets = iprot.readI32();
struct.setOnlineTabletsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // INGEST_RATE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.ingestRate = iprot.readDouble();
struct.setIngestRateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // INGEST_BYTE_RATE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.ingestByteRate = iprot.readDouble();
struct.setIngestByteRateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // QUERY_RATE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.queryRate = iprot.readDouble();
struct.setQueryRateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // QUERY_BYTE_RATE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.queryByteRate = iprot.readDouble();
struct.setQueryByteRateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // MINORS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.minors = new Compacting();
struct.minors.read(iprot);
struct.setMinorsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // SCANS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.scans = new Compacting();
struct.scans.read(iprot);
struct.setScansIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // SCAN_RATE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.scanRate = iprot.readDouble();
struct.setScanRateIsSet(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();
}