@Override public void deserialize(Block block, int index, BlockState state) { state.setBlock((Block) type.getObject(block, index)); } }
@Override public void deserialize(Block block, int index, HistogramState state) { state.deserialize((Block) serializedType.getObject(block, index), type, EXPECTED_SIZE_FOR_HASHING); } }
@Override void readFirstField(Block block, int position, BlockAndBlockPositionValueState state) { state.setFirst((Block) firstType.getObject(block, position)); }
@Override public Object getObject(int field) { return types.get(field).getObject(page.getBlock(field), position); }
@Override public Object getObject(int field) { return types.get(field).getObject(page.getBlock(field), position); }
@Override public void deserialize(Block block, int index, BlockState state) { state.setBlock((Block) type.getObject(block, index)); } }
@Override void readFirstField(Block block, int position, BlockAndBlockPositionValueState state) { state.setFirst((Block) firstType.getObject(block, position)); }
@Override public Object getObject(int field) { checkState(position >= 0, "Not yet advanced"); checkState(position < page.getPositionCount(), "Already finished"); Type type = types.get(field); return type.getObject(page.getBlock(field), position); }
@Override public Object getObject(int field) { checkState(position >= 0, "Not yet advanced"); checkState(position < page.getPositionCount(), "Already finished"); Type type = types.get(field); return type.getObject(page.getBlock(field), position); }
public static boolean isDistinctFrom(Type rowType, List<MethodHandle> argumentMethods, Block leftRow, int leftPosition, Block rightRow, int rightPosition) { return isDistinctFrom( rowType, argumentMethods, (Block) rowType.getObject(leftRow, leftPosition), leftRow.isNull(leftPosition), (Block) rowType.getObject(rightRow, rightPosition), rightRow.isNull(rightPosition)); } }
public static boolean isDistinctFrom(Type rowType, List<MethodHandle> argumentMethods, Block leftRow, int leftPosition, Block rightRow, int rightPosition) { return isDistinctFrom( rowType, argumentMethods, (Block) rowType.getObject(leftRow, leftPosition), leftRow.isNull(leftPosition), (Block) rowType.getObject(rightRow, rightPosition), rightRow.isNull(rightPosition)); } }
@Override public void deserialize(Block block, int index, MinMaxByNState state) { Block currentBlock = (Block) serializedType.getObject(block, index); state.setTypedKeyValueHeap(TypedKeyValueHeap.deserialize(currentBlock, keyType, valueType, blockComparator)); } }
@Override public void deserialize(Block block, int index, MinMaxByNState state) { Block currentBlock = (Block) serializedType.getObject(block, index); state.setTypedKeyValueHeap(TypedKeyValueHeap.deserialize(currentBlock, keyType, valueType, blockComparator)); } }
@UsedByGeneratedCode public static Object objectSubscript(Type elementType, Block array, long index) { checkIndex(array, index); int position = toIntExact(index - 1); if (array.isNull(position)) { return null; } return elementType.getObject(array, position); }
@Override public void deserialize(Block block, int index, ArrayAggregationState state) { state.reset(); Block stateBlock = (Block) arrayType.getObject(block, index); for (int i = 0; i < stateBlock.getPositionCount(); i++) { state.add(stateBlock, i); } } }
public Object getObject(int channel, int position) { long pageAddress = valueAddresses.getLong(position); Block block = channels[channel].get(decodeSliceIndex(pageAddress)); int blockPosition = decodePosition(pageAddress); return types.get(channel).getObject(block, blockPosition); }
public Object getObject(int channel, int position) { long pageAddress = valueAddresses.getLong(position); Block block = channels[channel].get(decodeSliceIndex(pageAddress)); int blockPosition = decodePosition(pageAddress); return types.get(channel).getObject(block, blockPosition); }
@Override public void deserialize(Block block, int index, ArrayAggregationState state) { state.reset(); Block stateBlock = (Block) arrayType.getObject(block, index); for (int i = 0; i < stateBlock.getPositionCount(); i++) { state.add(stateBlock, i); } } }
@Override public void deserialize(Block block, int index, MinMaxNState state) { Block currentBlock = (Block) serializedType.getObject(block, index); int capacity = toIntExact(BIGINT.getLong(currentBlock, 0)); Block heapBlock = arrayType.getObject(currentBlock, 1); TypedHeap heap = new TypedHeap(blockComparator, elementType, capacity); heap.addAll(heapBlock); state.setTypedHeap(heap); } }
@Override public void deserialize(Block block, int index, MinMaxNState state) { Block currentBlock = (Block) serializedType.getObject(block, index); int capacity = toIntExact(BIGINT.getLong(currentBlock, 0)); Block heapBlock = arrayType.getObject(currentBlock, 1); TypedHeap heap = new TypedHeap(blockComparator, elementType, capacity); heap.addAll(heapBlock); state.setTypedHeap(heap); } }