private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }
private Object readIndexValue( byte valueType, ReadableChannel channel ) throws IOException { switch ( valueType ) { case IndexCommand.VALUE_TYPE_NULL: return null; case IndexCommand.VALUE_TYPE_SHORT: return channel.getShort(); case IndexCommand.VALUE_TYPE_INT: return channel.getInt(); case IndexCommand.VALUE_TYPE_LONG: return channel.getLong(); case IndexCommand.VALUE_TYPE_FLOAT: return channel.getFloat(); case IndexCommand.VALUE_TYPE_DOUBLE: return channel.getDouble(); case IndexCommand.VALUE_TYPE_STRING: return read3bLengthAndString( channel ); default: throw new RuntimeException( "Unknown value type " + valueType ); } } }