Class QSequenceLineFileSystemCacheSegments


  • class QSequenceLineFileSystemCacheSegments
    extends java.lang.Object
    • Field Detail

      • maximumEntriesPerSegment

        private final int maximumEntriesPerSegment
      • maximumSegmentsInMemory

        private final int maximumSegmentsInMemory
      • segments

        private final java.util.List segments
      • memorySegments

        private final java.util.List memorySegments
      • filePath

        private java.io.File filePath
      • file

        private java.io.RandomAccessFile file
    • Constructor Detail

      • QSequenceLineFileSystemCacheSegments

        public QSequenceLineFileSystemCacheSegments​(QSequenceLineTempDirectoryFactory tempDirectoryFactory,
                                                    int maximumBytesInMemory,
                                                    int segmentBytesSize)
    • Method Detail

      • getFrom

        public long getFrom​(int index)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getLength

        public int getLength​(int index)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getHash

        public int getHash​(int index)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • setFromLengthHash

        public void setFromLengthHash​(int index,
                                      long from,
                                      int length,
                                      int hash)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • maybeUnloadSegments

        private void maybeUnloadSegments()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        private java.io.RandomAccessFile getFile()
                                          throws java.io.IOException
        Throws:
        java.io.IOException