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 ShardedWriter
ShardedWriter.GeneralShardedConsumer<T>, ShardedWriter.PowerOf2ShardedConsumer<T>Nested classes/interfaces inherited from interface ToFileWriter
ToFileWriter.Builder<F> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ToIntFunction<T> private final intprivate final ToFileWriter<T>[]Fields inherited from interface ToFileWriter
NULL -
Constructor Summary
ConstructorsConstructorDescriptionGeneralShardedConsumer(ToIntFunction<T> distributor, ToFileWriter<T>[] consumers) -
Method Summary
Methods inherited from class ShardedWriter
close, ofMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ToFileWriterWrite the item to the consumer.- Parameters:
item- The item to be written
-