Interface BatchSizePredictor.Factory
- All Known Implementing Classes:
BatchSizePredictorImpl.Factory
- Enclosing interface:
- BatchSizePredictor
public static interface BatchSizePredictor.Factory
A factory for creating
BatchSizePredictor
s.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(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
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.
-