private void writePrimitive(TupleEntry record, PrimitiveType field) { switch (field.getPrimitiveTypeName()) { case BINARY: recordConsumer.addBinary(Binary.fromString(record.getString(field.getName()))); break; case BOOLEAN: recordConsumer.addBoolean(record.getBoolean(field.getName())); break; case INT32: recordConsumer.addInteger(record.getInteger(field.getName())); break; case INT64: recordConsumer.addLong(record.getLong(field.getName())); break; case DOUBLE: recordConsumer.addDouble(record.getDouble(field.getName())); break; case FLOAT: recordConsumer.addFloat(record.getFloat(field.getName())); break; case FIXED_LEN_BYTE_ARRAY: throw new UnsupportedOperationException("Fixed len byte array type not implemented"); case INT96: throw new UnsupportedOperationException("Int96 type not implemented"); default: throw new UnsupportedOperationException(field.getName() + " type not implemented"); } } }
private void writePrimitive(TupleEntry record, PrimitiveType field) { switch (field.getPrimitiveTypeName()) { case BINARY: recordConsumer.addBinary(Binary.fromString(record.getString(field.getName()))); break; case BOOLEAN: recordConsumer.addBoolean(record.getBoolean(field.getName())); break; case INT32: recordConsumer.addInteger(record.getInteger(field.getName())); break; case INT64: recordConsumer.addLong(record.getLong(field.getName())); break; case DOUBLE: recordConsumer.addDouble(record.getDouble(field.getName())); break; case FLOAT: recordConsumer.addFloat(record.getFloat(field.getName())); break; case FIXED_LEN_BYTE_ARRAY: throw new UnsupportedOperationException("Fixed len byte array type not implemented"); case INT96: throw new UnsupportedOperationException("Int96 type not implemented"); default: throw new UnsupportedOperationException(field.getName() + " type not implemented"); } } }
private void writePrimitive(TupleEntry record, PrimitiveType field) { switch (field.getPrimitiveTypeName()) { case BINARY: recordConsumer.addBinary(Binary.fromString(record.getString(field.getName()))); break; case BOOLEAN: recordConsumer.addBoolean(record.getBoolean(field.getName())); break; case INT32: recordConsumer.addInteger(record.getInteger(field.getName())); break; case INT64: recordConsumer.addLong(record.getLong(field.getName())); break; case DOUBLE: recordConsumer.addDouble(record.getDouble(field.getName())); break; case FLOAT: recordConsumer.addFloat(record.getFloat(field.getName())); break; case FIXED_LEN_BYTE_ARRAY: throw new UnsupportedOperationException("Fixed len byte array type not implemented"); case INT96: throw new UnsupportedOperationException("Int96 type not implemented"); default: throw new UnsupportedOperationException(field.getName() + " type not implemented"); } } }
private void writePrimitive(TupleEntry record, PrimitiveType field) { switch (field.getPrimitiveTypeName()) { case BINARY: recordConsumer.addBinary(Binary.fromString(record.getString(field.getName()))); break; case BOOLEAN: recordConsumer.addBoolean(record.getBoolean(field.getName())); break; case INT32: recordConsumer.addInteger(record.getInteger(field.getName())); break; case INT64: recordConsumer.addLong(record.getLong(field.getName())); break; case DOUBLE: recordConsumer.addDouble(record.getDouble(field.getName())); break; case FLOAT: recordConsumer.addFloat(record.getFloat(field.getName())); break; case FIXED_LEN_BYTE_ARRAY: throw new UnsupportedOperationException("Fixed len byte array type not implemented"); case INT96: throw new UnsupportedOperationException("Int96 type not implemented"); default: throw new UnsupportedOperationException(field.getName() + " type not implemented"); } } }