Interface BatchSizePredictor.Factory

All Known Implementing Classes:
BatchSizePredictorImpl.Factory
Enclosing interface:
BatchSizePredictor

public static interface BatchSizePredictor.Factory
A factory for creating BatchSizePredictors.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(RecordBatch batch, double fragmentationFactor, double safetyFactor)
    Creates a predictor with a batch whose data needs to be used to predict other batch sizes.
  • Method Details

    • create

      BatchSizePredictor create(RecordBatch batch, double fragmentationFactor, double safetyFactor)
      Creates a predictor with a batch whose data needs to be used to predict other batch sizes.
      Parameters:
      batch - The batch whose size needs to be predicted.
      fragmentationFactor - A constant used to predict value vector doubling.
      safetyFactor - A constant used to leave padding for unpredictable incoming batches.