AbstractHashFactory(HashConfig hashConf, int defaultExpectedSize) { this.hashConf = hashConf; configWrapper = new HashConfigWrapper(hashConf); this.defaultExpectedSize = defaultExpectedSize; }
AbstractHashFactory(HashConfig hashConf, int defaultExpectedSize) { this.hashConf = hashConf; configWrapper = new HashConfigWrapper(hashConf); this.defaultExpectedSize = defaultExpectedSize; }
KolobokeLongEntityMap(HashConfig hashConfig, int expectedSize) { this.init(new HashConfigWrapper(hashConfig), expectedSize); }
public LBlockHashTableEight(HashConfig config, BufferAllocator allocator, int initialSize) { this.allocator = allocator; this.config = new HashConfigWrapper(config); internalInit(LHashCapacities.capacity(this.config, initialSize, false)); }
public QBlockHashTable(HashConfig config, PivotDef pivot, BufferAllocator allocator, int initialSize, int defaultVariableLengthSize, ResizeListener listener) { this.pivot = pivot; this.allocator = allocator; this.config = new HashConfigWrapper(config); this.defaultVariableLengthSize = defaultVariableLengthSize; this.fixedOnly = pivot.getVariableCount() == 0; this.listener = listener; internalInit(QHashCapacities.capacity(this.config, initialSize, false)); }
public LBlockHashTableNoSpill(HashConfig config, PivotDef pivot, BufferAllocator allocator, int initialSize, int defaultVariableLengthSize, ResizeListenerNoSpill listener) { this.pivot = pivot; this.allocator = allocator; this.config = new HashConfigWrapper(config); this.defaultVariableLengthSize = defaultVariableLengthSize; this.fixedOnly = pivot.getVariableCount() == 0; this.listener = listener; internalInit(LHashCapacities.capacity(this.config, initialSize, false)); }
public LBlockHashTable(HashConfig config, PivotDef pivot, BufferAllocator allocator, int initialSize, int defaultVariableLengthSize, boolean enforceVarWidthBufferLimit, ResizeListener listener, final int maxHashTableBatchSize) { this.pivot = pivot; this.allocator = allocator; this.config = new HashConfigWrapper(config); this.fixedOnly = pivot.getVariableCount() == 0; this.enforceVarWidthBufferLimit = enforceVarWidthBufferLimit; this.listener = listener; /* maximum records that can be stored in hashtable block/chunk */ this.MAX_VALUES_PER_BATCH = maxHashTableBatchSize; this.variableBlockMaxLength = (pivot.getVariableCount() == 0) ? 0 : (MAX_VALUES_PER_BATCH * (((defaultVariableLengthSize + VAR_OFFSET_SIZE) * pivot.getVariableCount()) + VAR_LENGTH_SIZE)); this.preallocatedSingleBatch = false; this.allocatedForFixedBlocks = 0; this.allocatedForVarBlocks = 0; this.unusedForFixedBlocks = 0; this.unusedForVarBlocks = 0; internalInit(LHashCapacities.capacity(this.config, initialSize, false)); logger.debug("initialized hashtable, maxSize:{}, capacity:{}, batches:{}, maxVariableBlockLength:{}, maxValuesPerBatch:{}", maxSize, capacity, batches, variableBlockMaxLength, MAX_VALUES_PER_BATCH); }