Interface DataInput

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    CachedDataInput, DataInputBase, ExternalDataInput, SeedDataInput

    public interface DataInput
    extends java.io.Closeable
    Created by kurila on 29.09.14. A finite data input for data generation purposes.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  DataInput.Type  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static void generateData​(java.nio.ByteBuffer byteLayer, long seed)  
      java.nio.ByteBuffer getLayer​(int layerIndex)  
      int getSize()  
      static DataInput instance​(java.lang.String inputFilePath, java.lang.String seed, com.github.akurilov.commons.system.SizeInBytes layerSize, int layerCacheLimit, boolean isInHeapMem)  
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • getSize

        int getSize()
      • getLayer

        java.nio.ByteBuffer getLayer​(int layerIndex)
      • instance

        static DataInput instance​(java.lang.String inputFilePath,
                                  java.lang.String seed,
                                  com.github.akurilov.commons.system.SizeInBytes layerSize,
                                  int layerCacheLimit,
                                  boolean isInHeapMem)
                           throws java.io.IOException,
                                  java.lang.IllegalStateException,
                                  java.lang.IllegalArgumentException
        Throws:
        java.io.IOException
        java.lang.IllegalStateException
        java.lang.IllegalArgumentException
      • generateData

        static void generateData​(java.nio.ByteBuffer byteLayer,
                                 long seed)