Class Directory.IndexInputSlicer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    Directory

    public abstract class Directory.IndexInputSlicer
    extends java.lang.Object
    implements java.io.Closeable
    Allows to create one or more sliced IndexInput instances from a single file handle. Some Directory implementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      abstract IndexInput openFullSlice()
      Deprecated.
      Only for reading CFS files from 3.x indexes.
      abstract IndexInput openSlice​(java.lang.String sliceDescription, long offset, long length)
      Returns an IndexInput slice starting at the given offset with the given length.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • IndexInputSlicer

        public IndexInputSlicer()
    • Method Detail

      • openSlice

        public abstract IndexInput openSlice​(java.lang.String sliceDescription,
                                             long offset,
                                             long length)
                                      throws java.io.IOException
        Returns an IndexInput slice starting at the given offset with the given length.
        Throws:
        java.io.IOException
      • openFullSlice

        @Deprecated
        public abstract IndexInput openFullSlice()
                                          throws java.io.IOException
        Deprecated.
        Only for reading CFS files from 3.x indexes.
        Returns an IndexInput slice starting at offset 0 with a length equal to the length of the underlying file
        Throws:
        java.io.IOException