Package org.ojalgo.netio
Class ShardedWriter<T>
- 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 class
ShardedWriter.GeneralShardedConsumer<T>
(package private) static class
ShardedWriter.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 void
close()
(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceToFileWriter<T>
- Throws:
java.io.IOException
-
-