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>

static final class ShardedWriter.GeneralShardedConsumer<T> extends ShardedWriter<T>
  • Field Details

    • myWriters

      private final ToFileWriter<T>[] myWriters
    • myDistributor

      private final ToIntFunction<T> myDistributor
    • myNumberOfShards

      private final int myNumberOfShards
  • Constructor Details

  • Method Details

    • write

      public void write(T item)
      Description copied from interface: ToFileWriter
      Write the item to the consumer.
      Parameters:
      item - The item to be written