public static class BatchSizePredictorImpl.Factory extends Object implements BatchSizePredictor.Factory
| Modifier and Type | Field and Description |
|---|---|
static BatchSizePredictorImpl.Factory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final BatchSizePredictorImpl.Factory INSTANCE
public BatchSizePredictor create(RecordBatch batch, double fragmentationFactor, double safetyFactor)
BatchSizePredictor.Factorycreate in interface BatchSizePredictor.Factorybatch - 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.Copyright © 2021 The Apache Software Foundation. All rights reserved.