@Override public void ensureCapacity(long size) { unscaledDecimals.ensureCapacity(size); overflows.ensureCapacity(size); }
@Override public void ensureCapacity(long size) { partitionCounts.ensureCapacity(size); counts.ensureCapacity(size); envelopes.ensureCapacity(size); samples.ensureCapacity(size); } }
@Override public void ensureCapacity(long size) { digests.ensureCapacity(size); percentiles.ensureCapacity(size); }
private void resizeNodeArrays(int newBucketCount) { // every per-bucket array needs to be updated counts.ensureCapacity(newBucketCount); valuePositions.ensureCapacity(newBucketCount); nextPointers.ensureCapacity(newBucketCount); valueAndGroupHashes.ensureCapacity(newBucketCount); groupIds.ensureCapacity(newBucketCount); }
/** * Sets the element of this big array at specified index. * * @param index a position in this big array. */ public void set(long index, Slice value) { updateRetainedSize(index, value); array.set(index, value); }
@Override public void ensureCapacity(long size) { headBlockIndex.ensureCapacity(size); headPosition.ensureCapacity(size); tailBlockIndex.ensureCapacity(size); tailPosition.ensureCapacity(size); groupEntryCount.ensureCapacity(size); }
private static long med3(final int[][] x, final long a, final long b, final long c, IntComparator comp) { int ab = comp.compare(get(x, a), get(x, b)); int ac = comp.compare(get(x, a), get(x, c)); int bc = comp.compare(get(x, b), get(x, c)); return (ab < 0 ? (bc < 0 ? b : ac < 0 ? c : a) : (bc > 0 ? b : ac > 0 ? c : a)); }
@Override public void ensureCapacity(long size) { digests.ensureCapacity(size); percentiles.ensureCapacity(size); }
private static long med3(final int[][] x, final long a, final long b, final long c, IntComparator comp) { int ab = comp.compare(get(x, a), get(x, b)); int ac = comp.compare(get(x, a), get(x, c)); int bc = comp.compare(get(x, b), get(x, c)); return (ab < 0 ? (bc < 0 ? b : ac < 0 ? c : a) : (bc > 0 ? b : ac > 0 ? c : a)); }