in core/src/main/thrift-gen-java/org/apache/accumulo/core/manager/thrift/TabletServerStatus.java [1444:1607]
public void read(org.apache.thrift.protocol.TProtocol iprot, TabletServerStatus 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: // TABLE_MAP
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin();
struct.tableMap = new java.util.HashMap<java.lang.String,TableInfo>(2*_map8.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key9;
@org.apache.thrift.annotation.Nullable TableInfo _val10;
for (int _i11 = 0; _i11 < _map8.size; ++_i11)
{
_key9 = iprot.readString();
_val10 = new TableInfo();
_val10.read(iprot);
struct.tableMap.put(_key9, _val10);
}
iprot.readMapEnd();
}
struct.setTableMapIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // LAST_CONTACT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.lastContact = iprot.readI64();
struct.setLastContactIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.name = iprot.readString();
struct.setNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // OS_LOAD
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.osLoad = iprot.readDouble();
struct.setOsLoadIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // HOLD_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.holdTime = iprot.readI64();
struct.setHoldTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // LOOKUPS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.lookups = iprot.readI64();
struct.setLookupsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // INDEX_CACHE_HITS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.indexCacheHits = iprot.readI64();
struct.setIndexCacheHitsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // INDEX_CACHE_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.indexCacheRequest = iprot.readI64();
struct.setIndexCacheRequestIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // DATA_CACHE_HITS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.dataCacheHits = iprot.readI64();
struct.setDataCacheHitsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 13: // DATA_CACHE_REQUEST
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.dataCacheRequest = iprot.readI64();
struct.setDataCacheRequestIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 14: // LOG_SORTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
struct.logSorts = new java.util.ArrayList<RecoveryStatus>(_list12.size);
@org.apache.thrift.annotation.Nullable RecoveryStatus _elem13;
for (int _i14 = 0; _i14 < _list12.size; ++_i14)
{
_elem13 = new RecoveryStatus();
_elem13.read(iprot);
struct.logSorts.add(_elem13);
}
iprot.readListEnd();
}
struct.setLogSortsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 15: // FLUSHS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.flushs = iprot.readI64();
struct.setFlushsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 16: // SYNCS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.syncs = iprot.readI64();
struct.setSyncsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 19: // VERSION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.version = iprot.readString();
struct.setVersionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 18: // RESPONSE_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.responseTime = iprot.readI64();
struct.setResponseTimeIsSet(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();
}