int cellBufSize = getCellBufSize(); long seqId = 0L; if (includesMvcc()) { seqId = memstoreTS;
protected void decodeNext() { current.startOffset = currentBuffer.position(); long ll = currentBuffer.getLongAfterPosition(0); // Read top half as an int of key length and bottom int as value length current.keyLength = (int) (ll >> Integer.SIZE); current.valueLength = (int) (Bytes.MASK_FOR_LOWER_INT_IN_LONG ^ ll); currentBuffer.skip(Bytes.SIZEOF_LONG); // key part currentBuffer.asSubByteBuffer(currentBuffer.position(), current.keyLength, tmpPair); ByteBuffer key = tmpPair.getFirst().duplicate(); key.position(tmpPair.getSecond()).limit( tmpPair.getSecond() + current.keyLength); current.keyBuffer = key; currentBuffer.skip(current.keyLength); // value part current.valueOffset = currentBuffer.position(); currentBuffer.skip(current.valueLength); if (includesTags()) { decodeTags(); } if (includesMvcc()) { current.memstoreTS = ByteBuff.readVLong(currentBuffer); } else { current.memstoreTS = 0; } current.nextKvOffset = currentBuffer.position(); current.currentKey.setKey(current.keyBuffer, tmpPair.getSecond(), current.keyLength); }
int cellBufSize = getCellBufSize(); long seqId = 0L; if (includesMvcc()) { seqId = memstoreTS;
int cellBufSize = getCellBufSize(); long seqId = 0L; if (includesMvcc()) { seqId = memstoreTS;
protected void decodeNext() { current.startOffset = currentBuffer.position(); long ll = currentBuffer.getLongAfterPosition(0); // Read top half as an int of key length and bottom int as value length current.keyLength = (int) (ll >> Integer.SIZE); current.valueLength = (int) (Bytes.MASK_FOR_LOWER_INT_IN_LONG ^ ll); currentBuffer.skip(Bytes.SIZEOF_LONG); // key part currentBuffer.asSubByteBuffer(currentBuffer.position(), current.keyLength, tmpPair); ByteBuffer key = tmpPair.getFirst().duplicate(); key.position(tmpPair.getSecond()).limit( tmpPair.getSecond() + current.keyLength); current.keyBuffer = key; currentBuffer.skip(current.keyLength); // value part current.valueOffset = currentBuffer.position(); currentBuffer.skip(current.valueLength); if (includesTags()) { decodeTags(); } if (includesMvcc()) { current.memstoreTS = ByteBuff.readVLong(currentBuffer); } else { current.memstoreTS = 0; } current.nextKvOffset = currentBuffer.position(); current.currentKey.setKey(current.keyBuffer, tmpPair.getSecond(), current.keyLength); }
protected void decodeNext() { current.startOffset = currentBuffer.position(); long ll = currentBuffer.getLongAfterPosition(0); // Read top half as an int of key length and bottom int as value length current.keyLength = (int) (ll >> Integer.SIZE); current.valueLength = (int) (Bytes.MASK_FOR_LOWER_INT_IN_LONG ^ ll); currentBuffer.skip(Bytes.SIZEOF_LONG); // key part currentBuffer.asSubByteBuffer(currentBuffer.position(), current.keyLength, tmpPair); ByteBuffer key = tmpPair.getFirst().duplicate(); key.position(tmpPair.getSecond()).limit( tmpPair.getSecond() + current.keyLength); current.keyBuffer = key; currentBuffer.skip(current.keyLength); // value part current.valueOffset = currentBuffer.position(); currentBuffer.skip(current.valueLength); if (includesTags()) { decodeTags(); } if (includesMvcc()) { current.memstoreTS = ByteBuff.readVLong(currentBuffer); } else { current.memstoreTS = 0; } current.nextKvOffset = currentBuffer.position(); current.currentKey.setKey(current.keyBuffer, tmpPair.getSecond(), current.keyLength); }