Package org.ojalgo.netio
Class ShardedWriter.GeneralShardedConsumer<T>
java.lang.Object
org.ojalgo.netio.ShardedWriter<T>
org.ojalgo.netio.ShardedWriter.GeneralShardedConsumer<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
ConstructorsConstructorDescriptionGeneralShardedConsumer
(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
-
myNumberOfShards
private final int myNumberOfShards
-
-
Constructor Details
-
GeneralShardedConsumer
GeneralShardedConsumer(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
-