Class SimpleTextStoredFieldsReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable

    public class SimpleTextStoredFieldsReader
    extends StoredFieldsReader
    reads plaintext stored fields

    FOR RECREATIONAL USE ONLY

    • Constructor Detail

      • SimpleTextStoredFieldsReader

        public SimpleTextStoredFieldsReader​(Directory directory,
                                            SegmentInfo si,
                                            FieldInfos fn,
                                            IOContext context)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • SimpleTextStoredFieldsReader

        SimpleTextStoredFieldsReader​(long[] offsets,
                                     IndexInput in,
                                     FieldInfos fieldInfos)
    • Method Detail

      • readIndex

        private void readIndex​(int size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • close

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

        private void readLine()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseIntAt

        private int parseIntAt​(int offset)
      • equalsAt

        private boolean equalsAt​(BytesRef a,
                                 BytesRef b,
                                 int bOffset)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.IOException
        Description copied from class: StoredFieldsReader
        Checks consistency of this reader.

        Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.

        Specified by:
        checkIntegrity in class StoredFieldsReader
        Throws:
        java.io.IOException