@Override public void endRow() { super.endRow(); rowBlock.setRows(rowBlock.rows() + 1); }
@Override public void endRow() { super.endRow(); rowBlock.setRows(rowBlock.rows() + 1); }
@Override public boolean addTuple(Tuple tuple) { try { if (tuple instanceof UnSafeTuple) { UnSafeTuple unSafeTuple = TUtil.checkTypeAndGet(tuple, UnSafeTuple.class); addTuple(unSafeTuple); rowBlock.setRows(rowBlock.rows() + 1); } else { OffHeapRowBlockUtils.convert(tuple, this); } } catch (ValueOutOfRangeException e) { return false; } return true; } }
@Override public boolean addTuple(Tuple tuple) { try { if (tuple instanceof UnSafeTuple) { UnSafeTuple unSafeTuple = TUtil.checkTypeAndGet(tuple, UnSafeTuple.class); addTuple(unSafeTuple); rowBlock.setRows(rowBlock.rows() + 1); } else { OffHeapRowBlockUtils.convert(tuple, this); } } catch (ValueOutOfRangeException e) { return false; } return true; } }
@Override public void endRow() { long rowHeaderPos = recordStartAddr(); // curOffset is equivalent to a byte length of this row. PlatformDependent.putInt(rowHeaderPos, curOffset); rowHeaderPos += SizeOf.SIZE_OF_INT; //set null flags byte [] flags = nullFlags.toArray(); PlatformDependent.putShort(rowHeaderPos, (short) flags.length); rowHeaderPos += SizeOf.SIZE_OF_SHORT; PlatformDependent.copyMemory(flags, 0, rowHeaderPos, flags.length); rowBlock.setRows(rowBlock.rows() + 1); }
@Override public void endRow() { long rowHeaderPos = recordStartAddr(); // curOffset is equivalent to a byte length of this row. PlatformDependent.putInt(rowHeaderPos, curOffset); rowHeaderPos += SizeOf.SIZE_OF_INT; //set null flags byte [] flags = nullFlags.toArray(); PlatformDependent.putShort(rowHeaderPos, (short) flags.length); rowHeaderPos += SizeOf.SIZE_OF_SHORT; PlatformDependent.copyMemory(flags, 0, rowHeaderPos, flags.length); rowBlock.setRows(rowBlock.rows() + 1); }