Package org.ojalgo.netio
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 class
Nested classes/interfaces inherited from interface org.ojalgo.netio.ToFileWriter
ToFileWriter.Builder<F>
-
Field Summary
FieldsFields inherited from interface org.ojalgo.netio.ToFileWriter
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
(package private) static <T> ShardedWriter
<T> of
(ToIntFunction<T> distributor, ToFileWriter<T>[] consumers) 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
write, writeBatch
-
Field Details
-
myWriters
-
-
Constructor Details
-
ShardedWriter
ShardedWriter(ToFileWriter<T>[] consumers)
-
-
Method Details
-
of
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceToFileWriter<T>
- Throws:
IOException
-