Class StorageItemInput<I extends Item>

  • All Implemented Interfaces:
    com.github.akurilov.commons.io.Input<I>, java.lang.AutoCloseable, java.util.function.Supplier<I>

    public final class StorageItemInput<I extends Item>
    extends com.github.akurilov.commons.io.collection.BufferingInputBase<I>
    Created by andrey on 02.12.16.
    • Field Summary

      • Fields inherited from class com.github.akurilov.commons.io.collection.BufferingInputBase

        capacity
      • Fields inherited from class com.github.akurilov.commons.io.collection.ListInput

        i, items, size
      • Fields inherited from interface com.github.akurilov.commons.io.Input

        DELIMITER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int loadMoreItems​(I lastItem)  
      void reset()  
      java.lang.String toString()  
      • Methods inherited from class com.github.akurilov.commons.io.collection.BufferingInputBase

        close, get, get
      • Methods inherited from class com.github.akurilov.commons.io.collection.ListInput

        skip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StorageItemInput

        public StorageItemInput​(StorageDriver<I,​? extends Operation<I>> storageDriver,
                                int batchSize,
                                ItemFactory<I> itemFactory,
                                java.lang.String path,
                                java.lang.String prefix,
                                int idRadix)
    • Method Detail

      • loadMoreItems

        protected final int loadMoreItems​(I lastItem)
                                   throws java.io.IOException
        Specified by:
        loadMoreItems in class com.github.akurilov.commons.io.collection.BufferingInputBase<I extends Item>
        Throws:
        java.io.IOException
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class com.github.akurilov.commons.io.collection.ListInput<I extends Item>
      • reset

        public final void reset()
        Specified by:
        reset in interface com.github.akurilov.commons.io.Input<I extends Item>
        Overrides:
        reset in class com.github.akurilov.commons.io.collection.ListInput<I extends Item>