@Override public long getSizeInBytes() { return INSTANCE_SIZE + sizeOf(positionLinks); } }
/** * Returns the size of this big array in bytes. */ public long sizeOf() { return INSTANCE_SIZE + SizeOf.sizeOf(array) + (segments * SIZE_OF_SEGMENT); }
/** * Returns the size of this big array in bytes. */ public long sizeOf() { return INSTANCE_SIZE + SizeOf.sizeOf(array) + (segments * SIZE_OF_SEGMENT); }
@Override public long getRetainedSizeInBytes() { return INSTANCE_SIZE + sizeOf(nullVector); } }
/** * Returns the size of this big array in bytes. */ public long sizeOf() { return INSTANCE_SIZE + SizeOf.sizeOf(array) + (segments * SIZE_OF_SEGMENT); }
@Override public long getRetainedSizeInBytes() { long size = INSTANCE_SIZE + keyBlockBuilder.getRetainedSizeInBytes() + valueBlockBuilder.getRetainedSizeInBytes() + sizeOf(offsets) + sizeOf(mapIsNull) + sizeOf(hashTables); if (blockBuilderStatus != null) { size += BlockBuilderStatus.INSTANCE_SIZE; } return size; }
@Override public void retainedBytesForEachPart(BiConsumer<Object, Long> consumer) { for (int i = 0; i < numFields; i++) { consumer.accept(fieldBlocks[i], fieldBlocks[i].getRetainedSizeInBytes()); } consumer.accept(fieldBlockOffsets, sizeOf(fieldBlockOffsets)); consumer.accept(rowIsNull, sizeOf(rowIsNull)); consumer.accept(this, (long) INSTANCE_SIZE); }
@Override public void retainedBytesForEachPart(BiConsumer<Object, Long> consumer) { consumer.accept(slice, slice.getRetainedSize()); consumer.accept(offsets, sizeOf(offsets)); if (valueIsNull != null) { consumer.accept(valueIsNull, sizeOf(valueIsNull)); } consumer.accept(this, (long) INSTANCE_SIZE); }
@Override public void retainedBytesForEachPart(BiConsumer<Object, Long> consumer) { consumer.accept(keyBlock, keyBlock.getRetainedSizeInBytes()); consumer.accept(valueBlock, valueBlock.getRetainedSizeInBytes()); consumer.accept(offsets, sizeOf(offsets)); consumer.accept(mapIsNull, sizeOf(mapIsNull)); consumer.accept(hashTables, sizeOf(hashTables)); consumer.accept(this, (long) INSTANCE_SIZE); }
private long calculateEstimatedSize() { long elementsSize = (channels.length > 0) ? sizeOf(channels[0].elements()) : 0; long channelsArraySize = elementsSize * channels.length; long addressesArraySize = sizeOf(valueAddresses.elements()); return INSTANCE_SIZE + pagesMemorySize + channelsArraySize + addressesArraySize; }
@Override public void retainedBytesForEachPart(BiConsumer<Object, Long> consumer) { consumer.accept(dictionary, dictionary.getRetainedSizeInBytes()); consumer.accept(ids, sizeOf(ids)); consumer.accept(this, (long) INSTANCE_SIZE); }
private long getEstimatedSizeInBytes() { return INSTANCE_SIZE + sizeOf(heap) + size() * ROW_ENTRY_SIZE; } }
@Override public long getRetainedBytes() { // NOTE: we do not include checkpoints because they should be small and it would be annoying to calculate the size return INSTANCE_SIZE + buffer.getRetainedSize() + SizeOf.sizeOf(sequenceBuffer); }
@Override public void retainedBytesForEachPart(BiConsumer<Object, Long> consumer) { consumer.accept(keyBlock, keyBlock.getRetainedSizeInBytes()); consumer.accept(valueBlock, valueBlock.getRetainedSizeInBytes()); consumer.accept(hashTable, sizeOf(hashTable)); consumer.accept(this, (long) INSTANCE_SIZE); }
private long getEstimatedSizeInBytes() { return INSTANCE_SIZE + sizeOf(heap) + size() * ROW_ENTRY_SIZE; } }