@Override public void open() throws IOException { writer = CompressionFactory.getLongSerializer( ioPeon, String.format("%s.long_column", filenameBase), byteOrder, encoding, compression); writer.open(); }
@Override public void writeToChannel(WritableByteChannel channel) throws IOException { writer.writeToChannel(channel); }
@Override public long getSerializedSize() { return writer.getSerializedSize(); }
@Override public void close() throws IOException { writer.close(); }
@Override public void serialize(Object obj) throws IOException { long val = (obj == null) ? 0 : ((Number) obj).longValue(); writer.add(val); }