currentValue = new ValueBuffer( null, columnNumber, skippedColIDs, codec, lazyDecompress);
value.getValueBuffer().nullColumn(i);
currentValue = new ValueBuffer( null, columnNumber, skippedColIDs, codec, lazyDecompress);
currentValue = new ValueBuffer(null, columnNumber, skippedColIDs, codec);
key.setColumnLenInfo(colLen, currentBuf.valLenBuffer, columnValuePlainLength[columnIndex], columnIndex); value.setColumnValueBuffer(compressionBuffer[columnIndex], columnIndex); valueLength += colLen; key.setColumnLenInfo(colLen, currentBuf.valLenBuffer, colLen, columnIndex); value.setColumnValueBuffer(columnValue, columnIndex); valueLength += colLen; out.write(keyCompressionBuffer.getData(), 0, compressedKeyLen); value.write(out); // value
value.getValueBuffer().nullColumn(i);
finalizeFileHeader(); key = new KeyBuffer(columnNumber); value = new ValueBuffer(key);
@Override public int compareTo(RCFileValueBufferWrapper o) { return this.valueBuffer.compareTo(o.valueBuffer); }
@SuppressWarnings("unused") private ValueBuffer createValueBuffer(KeyBuffer key) throws IOException { return new ValueBuffer(key, skippedColIDs); }
/** Close the reader. */ public void close() { IOUtils.closeStream(in); currentValue.close(); if (decompress) { IOUtils.closeStream(keyDecompressedData); CodecPool.returnDecompressor(keyDecompressor); } } }
protected void currentValueBuffer() throws IOException { if (!keyInit) { nextKeyBuffer(); } currentValue.keyBuffer = currentKey; currentValue.clearColumnBuffer(); currentValue.readFields(in); currentValue.inited = true; }
/** Close the reader. */ public void close() { IOUtils.closeStream(in); currentValue.close(); if (decompress) { IOUtils.closeStream(keyDecompressedData); if (keyDecompressor != null) { // Make sure we only return keyDecompressor once. CodecPool.returnDecompressor(keyDecompressor); keyDecompressor = null; } } }
/** * flush a block out without doing anything except compressing the key part. */ public void flushBlock(KeyBuffer keyBuffer, ValueBuffer valueBuffer, int recordLen, int keyLength, @SuppressWarnings("unused") int compressedKeyLen) throws IOException { writeKey(keyBuffer, recordLen, keyLength); valueBuffer.write(out); }
protected void currentValueBuffer() throws IOException { if (!keyInit) { nextKeyBuffer(); } currentValue.keyBuffer = currentKey; currentValue.clearColumnBuffer(); currentValue.readFields(in); currentValue.inited = true; }
currentValue = new ValueBuffer( null, columnNumber, skippedColIDs, codec, lazyDecompress);
value.getValueBuffer().nullColumn(i);
@Override public int compareTo(RCFileValueBufferWrapper o) { return this.valueBuffer.compareTo(o.valueBuffer); }
/** * flush a block out without doing anything except compressing the key part. */ public void flushBlock(KeyBuffer keyBuffer, ValueBuffer valueBuffer, int recordLen, int keyLength, @SuppressWarnings("unused") int compressedKeyLen) throws IOException { writeKey(keyBuffer, recordLen, keyLength); valueBuffer.write(out); }
/** Close the reader. */ public void close() { IOUtils.closeStream(in); currentValue.close(); if (decompress) { IOUtils.closeStream(keyDecompressedData); if (keyDecompressor != null) { // Make sure we only return keyDecompressor once. CodecPool.returnDecompressor(keyDecompressor); keyDecompressor = null; } } }
/** Close the reader. */ public void close() { IOUtils.closeStream(in); currentValue.close(); if (decompress) { IOUtils.closeStream(keyDecompressedData); if (keyDecompressor != null) { // Make sure we only return keyDecompressor once. CodecPool.returnDecompressor(keyDecompressor); keyDecompressor = null; } } }