Package org.ojalgo.netio
Class ShardedWriter.PowerOf2ShardedConsumer<T>
java.lang.Object
org.ojalgo.netio.ShardedWriter<T>
org.ojalgo.netio.ShardedWriter.PowerOf2ShardedConsumer<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ToFileWriter<T>
- Enclosing class:
ShardedWriter<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.netio.ShardedWriter
ShardedWriter.GeneralShardedConsumer<T>, ShardedWriter.PowerOf2ShardedConsumer<T>
Nested classes/interfaces inherited from interface org.ojalgo.netio.ToFileWriter
ToFileWriter.Builder<F>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ToIntFunction
<T> private final int
private final ToFileWriter<T>[]
Fields inherited from interface org.ojalgo.netio.ToFileWriter
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionPowerOf2ShardedConsumer
(ToIntFunction<T> distributor, ToFileWriter<T>[] consumers) -
Method Summary
Methods inherited from class org.ojalgo.netio.ShardedWriter
close, of
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.netio.ToFileWriter
writeBatch
-
Field Details
-
myWriters
-
myDistributor
-
myIndexMask
private final int myIndexMask
-
-
Constructor Details
-
PowerOf2ShardedConsumer
PowerOf2ShardedConsumer(ToIntFunction<T> distributor, ToFileWriter<T>[] consumers)
-
-
Method Details
-
write
Description copied from interface:ToFileWriter
Write the item to the consumer.- Parameters:
item
- The item to be written
-