Constructor and Description |
---|
Batch(List<T> aggregates)
This constructor takes List of Aggregates, and builds Batch instance, usable with Nd4j executioner.
|
Modifier and Type | Method and Description |
---|---|
boolean |
append(T aggregate)
This method tries to append aggregate to the current batch, if it has free room
|
static <U extends Aggregate> |
getBatches(List<U> list)
Helper method to create batch from list of aggregates, for cases when list of aggregates is higher then batchLimit
|
static <U extends Aggregate> |
getBatches(List<U> list,
int partitionSize)
Helper method to create batch from list of aggregates, for cases when list of aggregates is higher then batchLimit
|
boolean |
isFull()
This method checks, if number of batched aggregates equals to maximum possible value
|
int |
opNum()
This method returns opNum for batched aggregate
|
public int opNum()
public boolean append(T aggregate)
aggregate
- public boolean isFull()
public static <U extends Aggregate> List<Batch<U>> getBatches(List<U> list)
U
- list
- Copyright © 2021. All rights reserved.