- java.lang.Object
-
- org.ojalgo.netio.ShardedWriter<T>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,ToFileWriter<T>
- Direct Known Subclasses:
ShardedWriter.GeneralShardedConsumer,ShardedWriter.PowerOf2ShardedConsumer
abstract class ShardedWriter<T> extends java.lang.Object implements ToFileWriter<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classShardedWriter.GeneralShardedConsumer<T>(package private) static classShardedWriter.PowerOf2ShardedConsumer<T>-
Nested classes/interfaces inherited from interface org.ojalgo.netio.ToFileWriter
ToFileWriter.Builder<F>
-
-
Field Summary
Fields Modifier and Type Field Description private ToFileWriter<T>[]myWriters-
Fields inherited from interface org.ojalgo.netio.ToFileWriter
NULL
-
-
Constructor Summary
Constructors Constructor Description ShardedWriter(ToFileWriter<T>[] consumers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()(package private) static <T> ShardedWriter<T>of(java.util.function.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 Detail
-
myWriters
private final ToFileWriter<T>[] myWriters
-
-
Constructor Detail
-
ShardedWriter
ShardedWriter(ToFileWriter<T>[] consumers)
-
-
Method Detail
-
of
static <T> ShardedWriter<T> of(java.util.function.ToIntFunction<T> distributor, ToFileWriter<T>[] consumers)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceToFileWriter<T>- Throws:
java.io.IOException
-
-