@Override public void clear() { vector.clear(); }
@Override public void clear() { super.clear(); offsetVector.clear(); }
@Override public void clear() { super.clear(); offsetVector.clear(); }
@Override public void clear() { super.clear(); offsetVector.clear(); }
@Override public void clear() { super.clear(); offsetVector.clear(); }
@Override public void clear() { bits.clear(); values.clear(); super.clear(); }
@Override public void clear() { offsets.clear(); vector.clear(); super.clear(); }
private void allocateBytes(final long size) { // TODO: Replace this with MAX_BUFFER_SIZE once all // code is aware of the maximum vector size. if (size > MAX_ALLOCATION_SIZE) { throw new OversizedAllocationException("Requested amount of memory is more than max allowed allocation size"); } final int curSize = (int)size; clear(); data = allocator.buffer(curSize); data.readerIndex(0); allocationSizeInBytes = curSize; }
public void splitAndTransferTo(int startIndex, int length, UInt4Vector target) { final int startPoint = startIndex * VALUE_WIDTH; final int sliceLength = length * VALUE_WIDTH; target.clear(); target.data = data.slice(startPoint, sliceLength).transferOwnership(target.allocator).buffer; target.data.writerIndex(sliceLength); }
@Override public void clear() { getMutator().reset(); offsets.clear(); for(final ValueVector vector : getChildren()) { vector.clear(); } }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedDecimal9Vector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedIntervalDayVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedVarDecimalVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedDecimal38SparseVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedSmallIntVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedBitVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedDecimal18Vector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedVarBinaryVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }
public void splitAndTransferTo(final int startIndex, final int groups, RepeatedIntervalVector to) { final UInt4Vector.Accessor a = offsets.getAccessor(); final UInt4Vector.Mutator m = to.offsets.getMutator(); final int startPos = a.get(startIndex); final int endPos = a.get(startIndex + groups); final int valuesToCopy = endPos - startPos; values.splitAndTransferTo(startPos, valuesToCopy, to.values); to.offsets.clear(); to.offsets.allocateNew(groups + 1); int normalizedPos = 0; for (int i=0; i < groups + 1;i++ ) { normalizedPos = a.get(startIndex+i) - startPos; m.set(i, normalizedPos); } m.setValueCount(groups == 0 ? 0 : groups + 1); }