public boolean isPushRequired(AppenderatorConfig tuningConfig) { return isPushRequired(tuningConfig.getMaxRowsPerSegment(), tuningConfig.getMaxTotalRows()); }
public boolean isPushRequired(AppenderatorConfig tuningConfig) { boolean overThreshold = getNumRowsInSegment() >= tuningConfig.getMaxRowsPerSegment(); Long maxTotal = tuningConfig.getMaxTotalRows(); if (maxTotal != null) { overThreshold |= getTotalNumRowsInAppenderator() >= maxTotal; } return overThreshold; }