List of usage examples for org.apache.thrift.protocol TProtocol readDouble
public abstract double readDouble() throws TException;
From source file:backtype.storm.generated.BoltStats.java
License:Apache License
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin();/* w w w .ja v a2 s . c om*/ while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ACKED if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin(); this.acked = new HashMap<String, Map<GlobalStreamId, Long>>(2 * _map45.size); for (int _i46 = 0; _i46 < _map45.size; ++_i46) { String _key47; // required Map<GlobalStreamId, Long> _val48; // required _key47 = iprot.readString(); { org.apache.thrift.protocol.TMap _map49 = iprot.readMapBegin(); _val48 = new HashMap<GlobalStreamId, Long>(2 * _map49.size); for (int _i50 = 0; _i50 < _map49.size; ++_i50) { GlobalStreamId _key51; // required long _val52; // required _key51 = new GlobalStreamId(); _key51.read(iprot); _val52 = iprot.readI64(); _val48.put(_key51, _val52); } iprot.readMapEnd(); } this.acked.put(_key47, _val48); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // FAILED if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map53 = iprot.readMapBegin(); this.failed = new HashMap<String, Map<GlobalStreamId, Long>>(2 * _map53.size); for (int _i54 = 0; _i54 < _map53.size; ++_i54) { String _key55; // required Map<GlobalStreamId, Long> _val56; // required _key55 = iprot.readString(); { org.apache.thrift.protocol.TMap _map57 = iprot.readMapBegin(); _val56 = new HashMap<GlobalStreamId, Long>(2 * _map57.size); for (int _i58 = 0; _i58 < _map57.size; ++_i58) { GlobalStreamId _key59; // required long _val60; // required _key59 = new GlobalStreamId(); _key59.read(iprot); _val60 = iprot.readI64(); _val56.put(_key59, _val60); } iprot.readMapEnd(); } this.failed.put(_key55, _val56); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // PROCESS_MS_AVG if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map61 = iprot.readMapBegin(); this.process_ms_avg = new HashMap<String, Map<GlobalStreamId, Double>>(2 * _map61.size); for (int _i62 = 0; _i62 < _map61.size; ++_i62) { String _key63; // required Map<GlobalStreamId, Double> _val64; // required _key63 = iprot.readString(); { org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin(); _val64 = new HashMap<GlobalStreamId, Double>(2 * _map65.size); for (int _i66 = 0; _i66 < _map65.size; ++_i66) { GlobalStreamId _key67; // required double _val68; // required _key67 = new GlobalStreamId(); _key67.read(iprot); _val68 = iprot.readDouble(); _val64.put(_key67, _val68); } iprot.readMapEnd(); } this.process_ms_avg.put(_key63, _val64); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 4: // EXECUTED if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map69 = iprot.readMapBegin(); this.executed = new HashMap<String, Map<GlobalStreamId, Long>>(2 * _map69.size); for (int _i70 = 0; _i70 < _map69.size; ++_i70) { String _key71; // required Map<GlobalStreamId, Long> _val72; // required _key71 = iprot.readString(); { org.apache.thrift.protocol.TMap _map73 = iprot.readMapBegin(); _val72 = new HashMap<GlobalStreamId, Long>(2 * _map73.size); for (int _i74 = 0; _i74 < _map73.size; ++_i74) { GlobalStreamId _key75; // required long _val76; // required _key75 = new GlobalStreamId(); _key75.read(iprot); _val76 = iprot.readI64(); _val72.put(_key75, _val76); } iprot.readMapEnd(); } this.executed.put(_key71, _val72); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 5: // EXECUTE_MS_AVG if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map77 = iprot.readMapBegin(); this.execute_ms_avg = new HashMap<String, Map<GlobalStreamId, Double>>(2 * _map77.size); for (int _i78 = 0; _i78 < _map77.size; ++_i78) { String _key79; // required Map<GlobalStreamId, Double> _val80; // required _key79 = iprot.readString(); { org.apache.thrift.protocol.TMap _map81 = iprot.readMapBegin(); _val80 = new HashMap<GlobalStreamId, Double>(2 * _map81.size); for (int _i82 = 0; _i82 < _map81.size; ++_i82) { GlobalStreamId _key83; // required double _val84; // required _key83 = new GlobalStreamId(); _key83.read(iprot); _val84 = iprot.readDouble(); _val80.put(_key83, _val84); } iprot.readMapEnd(); } this.execute_ms_avg.put(_key79, _val80); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); validate(); }
From source file:backtype.storm.generated.JavaObjectArg.java
License:Apache License
@Override protected Object readValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(field.id); if (setField != null) { switch (setField) { case INT_ARG: if (field.type == INT_ARG_FIELD_DESC.type) { Integer int_arg; int_arg = iprot.readI32(); return int_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; }/*www.j av a 2s . co m*/ case LONG_ARG: if (field.type == LONG_ARG_FIELD_DESC.type) { Long long_arg; long_arg = iprot.readI64(); return long_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case STRING_ARG: if (field.type == STRING_ARG_FIELD_DESC.type) { String string_arg; string_arg = iprot.readString(); return string_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case BOOL_ARG: if (field.type == BOOL_ARG_FIELD_DESC.type) { Boolean bool_arg; bool_arg = iprot.readBool(); return bool_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case BINARY_ARG: if (field.type == BINARY_ARG_FIELD_DESC.type) { ByteBuffer binary_arg; binary_arg = iprot.readBinary(); return binary_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case DOUBLE_ARG: if (field.type == DOUBLE_ARG_FIELD_DESC.type) { Double double_arg; double_arg = iprot.readDouble(); return double_arg; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } default: throw new IllegalStateException( "setField wasn't null, but didn't match any of the case statements!"); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } }
From source file:backtype.storm.generated.SpoutStats.java
License:Apache License
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin();/* w w w . j a v a 2 s . c o m*/ while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // ACKED if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map95 = iprot.readMapBegin(); this.acked = new HashMap<String, Map<String, Long>>(2 * _map95.size); for (int _i96 = 0; _i96 < _map95.size; ++_i96) { String _key97; // required Map<String, Long> _val98; // required _key97 = iprot.readString(); { org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin(); _val98 = new HashMap<String, Long>(2 * _map99.size); for (int _i100 = 0; _i100 < _map99.size; ++_i100) { String _key101; // required long _val102; // required _key101 = iprot.readString(); _val102 = iprot.readI64(); _val98.put(_key101, _val102); } iprot.readMapEnd(); } this.acked.put(_key97, _val98); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // FAILED if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map103 = iprot.readMapBegin(); this.failed = new HashMap<String, Map<String, Long>>(2 * _map103.size); for (int _i104 = 0; _i104 < _map103.size; ++_i104) { String _key105; // required Map<String, Long> _val106; // required _key105 = iprot.readString(); { org.apache.thrift.protocol.TMap _map107 = iprot.readMapBegin(); _val106 = new HashMap<String, Long>(2 * _map107.size); for (int _i108 = 0; _i108 < _map107.size; ++_i108) { String _key109; // required long _val110; // required _key109 = iprot.readString(); _val110 = iprot.readI64(); _val106.put(_key109, _val110); } iprot.readMapEnd(); } this.failed.put(_key105, _val106); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // COMPLETE_MS_AVG if (field.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map111 = iprot.readMapBegin(); this.complete_ms_avg = new HashMap<String, Map<String, Double>>(2 * _map111.size); for (int _i112 = 0; _i112 < _map111.size; ++_i112) { String _key113; // required Map<String, Double> _val114; // required _key113 = iprot.readString(); { org.apache.thrift.protocol.TMap _map115 = iprot.readMapBegin(); _val114 = new HashMap<String, Double>(2 * _map115.size); for (int _i116 = 0; _i116 < _map115.size; ++_i116) { String _key117; // required double _val118; // required _key117 = iprot.readString(); _val118 = iprot.readDouble(); _val114.put(_key117, _val118); } iprot.readMapEnd(); } this.complete_ms_avg.put(_key113, _val114); } iprot.readMapEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); validate(); }
From source file:com.ebay.nest.io.sede.dynamic_type.DynamicSerDeTypeDouble.java
License:Apache License
@Override public Object deserialize(Object reuse, TProtocol iprot) throws SerDeException, TException, IllegalAccessException { double val = iprot.readDouble(); if (val == 0 && iprot instanceof com.ebay.nest.io.sede.thrift.WriteNullsProtocol && ((com.ebay.nest.io.sede.thrift.WriteNullsProtocol) iprot).lastPrimitiveWasNull()) { return null; }//from w w w . j av a 2 s. c o m return Double.valueOf(val); }
From source file:com.facebook.swift.codec.internal.builtin.DoubleThriftCodec.java
License:Apache License
@Override public Double read(TProtocol protocol) throws Exception { Preconditions.checkNotNull(protocol, "protocol is null"); return protocol.readDouble(); }
From source file:com.ning.metrics.serialization.thrift.item.DataItemDeserializer.java
License:Apache License
public DataItem fromThrift(TProtocol protocol, TField field) throws TException { final DataItem dataItem; switch (field.type) { case TType.BOOL: dataItem = new BooleanDataItem(protocol.readBool()); break;//from ww w . j ava 2 s . c om case TType.BYTE: dataItem = new ByteDataItem(protocol.readByte()); break; case TType.I16: dataItem = new ShortDataItem(protocol.readI16()); break; case TType.I32: dataItem = new IntegerDataItem(protocol.readI32()); break; case TType.I64: dataItem = new LongDataItem(protocol.readI64()); break; case TType.DOUBLE: dataItem = new DoubleDataItem(protocol.readDouble()); break; case TType.STRING: dataItem = new StringDataItem(protocol.readString()); //TODO: we only allow strings, this won't if data is binary (let presentation layer deal with this) break; default: throw new IllegalArgumentException(String.format("Unknown type %d", field.type)); } return dataItem; }
From source file:ezbake.data.elastic.thrift.ScriptValue.java
License:Apache License
@Override protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(field.id); if (setField != null) { switch (setField) { case TEXT_VALUE: if (field.type == TEXT_VALUE_FIELD_DESC.type) { String textValue; textValue = iprot.readString(); return textValue; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; }//from w ww .java 2s. co m case INT_VALUE: if (field.type == INT_VALUE_FIELD_DESC.type) { Integer intValue; intValue = iprot.readI32(); return intValue; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case DOUBLE_VALUE: if (field.type == DOUBLE_VALUE_FIELD_DESC.type) { Double doubleValue; doubleValue = iprot.readDouble(); return doubleValue; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case LONG_VALUE: if (field.type == LONG_VALUE_FIELD_DESC.type) { Long longValue; longValue = iprot.readI64(); return longValue; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case BOOLEAN_VALUE: if (field.type == BOOLEAN_VALUE_FIELD_DESC.type) { Boolean booleanValue; booleanValue = iprot.readBool(); return booleanValue; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } default: throw new IllegalStateException( "setField wasn't null, but didn't match any of the case statements!"); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } }
From source file:ezbake.data.elastic.thrift.ScriptValue.java
License:Apache License
@Override protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(fieldID); if (setField != null) { switch (setField) { case TEXT_VALUE: String textValue;//from w w w.ja va2 s.c om textValue = iprot.readString(); return textValue; case INT_VALUE: Integer intValue; intValue = iprot.readI32(); return intValue; case DOUBLE_VALUE: Double doubleValue; doubleValue = iprot.readDouble(); return doubleValue; case LONG_VALUE: Long longValue; longValue = iprot.readI64(); return longValue; case BOOLEAN_VALUE: Boolean booleanValue; booleanValue = iprot.readBool(); return booleanValue; default: throw new IllegalStateException( "setField wasn't null, but didn't match any of the case statements!"); } } else { throw new TProtocolException("Couldn't find a field with field id " + fieldID); } }
From source file:ezbake.query.basequeryableprocedure.ColumnDataValues.java
License:Apache License
@Override protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(field.id); if (setField != null) { switch (setField) { case BOOL_VALS: if (field.type == BOOL_VALS_FIELD_DESC.type) { List<Boolean> bool_vals; {/*w ww. ja va 2 s. com*/ org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); bool_vals = new ArrayList<Boolean>(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { boolean _elem10; _elem10 = iprot.readBool(); bool_vals.add(_elem10); } iprot.readListEnd(); } return bool_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case BYTE_VALS: if (field.type == BYTE_VALS_FIELD_DESC.type) { List<Byte> byte_vals; { org.apache.thrift.protocol.TList _list11 = iprot.readListBegin(); byte_vals = new ArrayList<Byte>(_list11.size); for (int _i12 = 0; _i12 < _list11.size; ++_i12) { byte _elem13; _elem13 = iprot.readByte(); byte_vals.add(_elem13); } iprot.readListEnd(); } return byte_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case SHORT_VALS: if (field.type == SHORT_VALS_FIELD_DESC.type) { List<Short> short_vals; { org.apache.thrift.protocol.TList _list14 = iprot.readListBegin(); short_vals = new ArrayList<Short>(_list14.size); for (int _i15 = 0; _i15 < _list14.size; ++_i15) { short _elem16; _elem16 = iprot.readI16(); short_vals.add(_elem16); } iprot.readListEnd(); } return short_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case INT_VALS: if (field.type == INT_VALS_FIELD_DESC.type) { List<Integer> int_vals; { org.apache.thrift.protocol.TList _list17 = iprot.readListBegin(); int_vals = new ArrayList<Integer>(_list17.size); for (int _i18 = 0; _i18 < _list17.size; ++_i18) { int _elem19; _elem19 = iprot.readI32(); int_vals.add(_elem19); } iprot.readListEnd(); } return int_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case LONG_VALS: if (field.type == LONG_VALS_FIELD_DESC.type) { List<Long> long_vals; { org.apache.thrift.protocol.TList _list20 = iprot.readListBegin(); long_vals = new ArrayList<Long>(_list20.size); for (int _i21 = 0; _i21 < _list20.size; ++_i21) { long _elem22; _elem22 = iprot.readI64(); long_vals.add(_elem22); } iprot.readListEnd(); } return long_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case DOUBLE_VALS: if (field.type == DOUBLE_VALS_FIELD_DESC.type) { List<Double> double_vals; { org.apache.thrift.protocol.TList _list23 = iprot.readListBegin(); double_vals = new ArrayList<Double>(_list23.size); for (int _i24 = 0; _i24 < _list23.size; ++_i24) { double _elem25; _elem25 = iprot.readDouble(); double_vals.add(_elem25); } iprot.readListEnd(); } return double_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case STRING_VALS: if (field.type == STRING_VALS_FIELD_DESC.type) { List<String> string_vals; { org.apache.thrift.protocol.TList _list26 = iprot.readListBegin(); string_vals = new ArrayList<String>(_list26.size); for (int _i27 = 0; _i27 < _list26.size; ++_i27) { String _elem28; _elem28 = iprot.readString(); string_vals.add(_elem28); } iprot.readListEnd(); } return string_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } case BINARY_VALS: if (field.type == BINARY_VALS_FIELD_DESC.type) { List<ByteBuffer> binary_vals; { org.apache.thrift.protocol.TList _list29 = iprot.readListBegin(); binary_vals = new ArrayList<ByteBuffer>(_list29.size); for (int _i30 = 0; _i30 < _list29.size; ++_i30) { ByteBuffer _elem31; _elem31 = iprot.readBinary(); binary_vals.add(_elem31); } iprot.readListEnd(); } return binary_vals; } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } default: throw new IllegalStateException( "setField wasn't null, but didn't match any of the case statements!"); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } }
From source file:ezbake.query.basequeryableprocedure.ColumnDataValues.java
License:Apache License
@Override protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(fieldID); if (setField != null) { switch (setField) { case BOOL_VALS: List<Boolean> bool_vals; { org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); bool_vals = new ArrayList<Boolean>(_list40.size); for (int _i41 = 0; _i41 < _list40.size; ++_i41) { boolean _elem42; _elem42 = iprot.readBool(); bool_vals.add(_elem42);/*from ww w . j a va 2 s .co m*/ } iprot.readListEnd(); } return bool_vals; case BYTE_VALS: List<Byte> byte_vals; { org.apache.thrift.protocol.TList _list43 = iprot.readListBegin(); byte_vals = new ArrayList<Byte>(_list43.size); for (int _i44 = 0; _i44 < _list43.size; ++_i44) { byte _elem45; _elem45 = iprot.readByte(); byte_vals.add(_elem45); } iprot.readListEnd(); } return byte_vals; case SHORT_VALS: List<Short> short_vals; { org.apache.thrift.protocol.TList _list46 = iprot.readListBegin(); short_vals = new ArrayList<Short>(_list46.size); for (int _i47 = 0; _i47 < _list46.size; ++_i47) { short _elem48; _elem48 = iprot.readI16(); short_vals.add(_elem48); } iprot.readListEnd(); } return short_vals; case INT_VALS: List<Integer> int_vals; { org.apache.thrift.protocol.TList _list49 = iprot.readListBegin(); int_vals = new ArrayList<Integer>(_list49.size); for (int _i50 = 0; _i50 < _list49.size; ++_i50) { int _elem51; _elem51 = iprot.readI32(); int_vals.add(_elem51); } iprot.readListEnd(); } return int_vals; case LONG_VALS: List<Long> long_vals; { org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); long_vals = new ArrayList<Long>(_list52.size); for (int _i53 = 0; _i53 < _list52.size; ++_i53) { long _elem54; _elem54 = iprot.readI64(); long_vals.add(_elem54); } iprot.readListEnd(); } return long_vals; case DOUBLE_VALS: List<Double> double_vals; { org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(); double_vals = new ArrayList<Double>(_list55.size); for (int _i56 = 0; _i56 < _list55.size; ++_i56) { double _elem57; _elem57 = iprot.readDouble(); double_vals.add(_elem57); } iprot.readListEnd(); } return double_vals; case STRING_VALS: List<String> string_vals; { org.apache.thrift.protocol.TList _list58 = iprot.readListBegin(); string_vals = new ArrayList<String>(_list58.size); for (int _i59 = 0; _i59 < _list58.size; ++_i59) { String _elem60; _elem60 = iprot.readString(); string_vals.add(_elem60); } iprot.readListEnd(); } return string_vals; case BINARY_VALS: List<ByteBuffer> binary_vals; { org.apache.thrift.protocol.TList _list61 = iprot.readListBegin(); binary_vals = new ArrayList<ByteBuffer>(_list61.size); for (int _i62 = 0; _i62 < _list61.size; ++_i62) { ByteBuffer _elem63; _elem63 = iprot.readBinary(); binary_vals.add(_elem63); } iprot.readListEnd(); } return binary_vals; default: throw new IllegalStateException( "setField wasn't null, but didn't match any of the case statements!"); } } else { throw new TProtocolException("Couldn't find a field with field id " + fieldID); } }