public LSMComponentFilterFrame(ITreeIndexTupleWriter tupleWriter, int pageSize) { this.tupleWriter = tupleWriter; this.minTupleOff = maxTupleIsSetIndicatorOff + 1; this.maxTupleOff = maxTupleIsSetIndicatorOff + 1 + (pageSize / 2); this.minTuple = tupleWriter.createTupleReference(); this.maxTuple = tupleWriter.createTupleReference(); }
@Override public void writeMaxTuple(ITupleReference tuple) { tupleWriter.writeTuple(tuple, buf.array(), maxTupleOff); buf.put(maxTupleIsSetIndicatorOff, (byte) 1); }