@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMemoryUse()) { hash = (37 * hash) + MEMORYUSE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getMemoryUse()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
final double triggerFactor = context.getOptions().getOption(OOB_SPILL_TRIGGER_FACTOR); final double headroomRemaining = allocator.getHeadroom() * 1.0d / (allocator.getHeadroom() + allocator.getAllocatedMemory()); if(allocatedMemoryBeforeSpilling < (spill.getMemoryUse() * triggerFactor) && headroomRemaining > context.getOptions().getOption(OOB_SPILL_TRIGGER_HEADROOM_FACTOR)) { logger.debug("Skipping OOB spill trigger, current allocation is {}, which is not within the current factor of the spilling operator ({}) which has memory use of {}. Headroom is at {} which is greater than trigger headroom of {}", allocatedMemoryBeforeSpilling, triggerFactor, spill.getMemoryUse(), headroomRemaining, context.getOptions().getOption(OOB_SPILL_TRIGGER_HEADROOM_FACTOR)); oobDropUnderThreshold++; return;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.dremio.exec.proto.ExecProtos.HashAggSpill)) { return super.equals(obj); } com.dremio.exec.proto.ExecProtos.HashAggSpill other = (com.dremio.exec.proto.ExecProtos.HashAggSpill) obj; boolean result = true; result = result && (hasMemoryUse() == other.hasMemoryUse()); if (hasMemoryUse()) { result = result && (getMemoryUse() == other.getMemoryUse()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.ExecProtos.HashAggSpill message) throws java.io.IOException { if(message.hasMemoryUse()) output.writeInt64(1, message.getMemoryUse(), false); } public boolean isInitialized(com.dremio.exec.proto.ExecProtos.HashAggSpill message)
public Builder mergeFrom(com.dremio.exec.proto.ExecProtos.HashAggSpill other) { if (other == com.dremio.exec.proto.ExecProtos.HashAggSpill.getDefaultInstance()) return this; if (other.hasMemoryUse()) { setMemoryUse(other.getMemoryUse()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }