private RecordFile.Writer createWriter(int segmentNum) throws IOException { currentWriterPath = new File(tmpPath, String.valueOf(segmentNum)+".rec"); return BlockCompressedRecordFile.Writer.open(currentWriterPath, serializer, codec, blockSize, recordIndexBits, padBits); }
private RecordFile.Writer createWriter(int segmentNum) throws IOException { currentWriterPath = new File(tmpPath, String.valueOf(segmentNum)+".rec"); return BlockCompressedRecordFile.Writer.open(currentWriterPath, serializer, codec, blockSize, recordIndexBits, padBits); }
final File valuesFile = new File(path, "values.bin"); final Iterator<Generation.Entry<K,V>> iterator = mergeIterators(generations, keyComparator); final BlockCompressedRecordFile.Writer<V> writer = BlockCompressedRecordFile.Writer.open(valuesFile, valueSerializer, codec, 16384, 10, 6); final Iterator<Generation.Entry<K,Long>> keyAddressIterator = new Iterator<Generation.Entry<K,Long>>() {
public Writer<E> build() throws IOException { if (codec == null) { codec = new SnappyCodec(); } return Writer.open(file, serializer, codec, blockSize, recordIndexBits, padBits); } }
public Writer<E> build() throws IOException { if (codec == null) { codec = new SnappyCodec(); } return Writer.open(file, serializer, codec, blockSize, recordIndexBits, padBits); } }