Package org.apache.iceberg.util
Class BinPacking.ListPacker<T>
- java.lang.Object
-
- org.apache.iceberg.util.BinPacking.ListPacker<T>
-
- Enclosing class:
- BinPacking
public static class BinPacking.ListPacker<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ListPacker(long targetWeight, int lookback, boolean largestBinFirst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<T>>
pack(java.lang.Iterable<T> items, java.util.function.Function<T,java.lang.Long> weightFunc)
java.util.List<java.util.List<T>>
packEnd(java.util.List<T> items, java.util.function.Function<T,java.lang.Long> weightFunc)
-