Class ShardedWriter<T>
java.lang.Object
org.ojalgo.netio.ShardedWriter<T>
- All Implemented Interfaces:
Closeable, AutoCloseable, ToFileWriter<T>
- Direct Known Subclasses:
ShardedWriter.GeneralShardedConsumer, ShardedWriter.PowerOf2ShardedConsumer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static final classNested classes/interfaces inherited from interface ToFileWriter
ToFileWriter.Builder<F> -
Field Summary
FieldsFields inherited from interface ToFileWriter
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) static <T> ShardedWriter<T> of(ToIntFunction<T> distributor, ToFileWriter<T>[] consumers) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ToFileWriter
write, writeBatch
-
Field Details
-
myWriters
-
-
Constructor Details
-
ShardedWriter
ShardedWriter(ToFileWriter<T>[] consumers)
-
-
Method Details
-
of
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceToFileWriter<T>- Throws:
IOException
-