public static ColumnarFloatsSerializer getFloatSerializer( SegmentWriteOutMedium segmentWriteOutMedium, String filenameBase, ByteOrder order, CompressionStrategy compressionStrategy ) { if (compressionStrategy == CompressionStrategy.NONE) { return new EntireLayoutColumnarFloatsSerializer(segmentWriteOutMedium, order); } else { return new BlockLayoutColumnarFloatsSerializer(segmentWriteOutMedium, filenameBase, order, compressionStrategy); } }
@Override public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException { writeEndBuffer(); metaSerdeHelper.writeTo(channel, this); flattener.writeTo(channel, smoosher); }
@Override public long getSerializedSize() throws IOException { writeEndBuffer(); return metaSerdeHelper.size(this) + flattener.getSerializedSize(); }
public static ColumnarFloatsSerializer getFloatSerializer( SegmentWriteOutMedium segmentWriteOutMedium, String filenameBase, ByteOrder order, CompressionStrategy compressionStrategy ) { if (compressionStrategy == CompressionStrategy.NONE) { return new EntireLayoutColumnarFloatsSerializer(segmentWriteOutMedium, order); } else { return new BlockLayoutColumnarFloatsSerializer(segmentWriteOutMedium, filenameBase, order, compressionStrategy); } }
@Override public long getSerializedSize() throws IOException { writeEndBuffer(); return metaSerdeHelper.size(this) + flattener.getSerializedSize(); }
@Override public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException { writeEndBuffer(); metaSerdeHelper.writeTo(channel, this); flattener.writeTo(channel, smoosher); }