Class SimpleTextSegmentInfoFormat


  • public class SimpleTextSegmentInfoFormat
    extends SegmentInfoFormat
    plain text segments file format.

    FOR RECREATIONAL USE ONLY

    • Field Detail

      • SI_VERSION

        static final BytesRef SI_VERSION
      • SI_MIN_VERSION

        static final BytesRef SI_MIN_VERSION
      • SI_DOCCOUNT

        static final BytesRef SI_DOCCOUNT
      • SI_USECOMPOUND

        static final BytesRef SI_USECOMPOUND
      • SI_NUM_DIAG

        static final BytesRef SI_NUM_DIAG
      • SI_DIAG_KEY

        static final BytesRef SI_DIAG_KEY
      • SI_DIAG_VALUE

        static final BytesRef SI_DIAG_VALUE
      • SI_NUM_ATT

        static final BytesRef SI_NUM_ATT
      • SI_ATT_KEY

        static final BytesRef SI_ATT_KEY
      • SI_ATT_VALUE

        static final BytesRef SI_ATT_VALUE
      • SI_NUM_FILES

        static final BytesRef SI_NUM_FILES
      • SI_FILE

        static final BytesRef SI_FILE
      • SI_SORT

        static final BytesRef SI_SORT
      • SI_SORT_TYPE

        static final BytesRef SI_SORT_TYPE
      • SI_SORT_NAME

        static final BytesRef SI_SORT_NAME
      • SI_SORT_BYTES

        static final BytesRef SI_SORT_BYTES
    • Constructor Detail

      • SimpleTextSegmentInfoFormat

        public SimpleTextSegmentInfoFormat()
    • Method Detail

      • read

        public SegmentInfo read​(Directory directory,
                                java.lang.String segmentName,
                                byte[] segmentID,
                                IOContext context)
                         throws java.io.IOException
        Description copied from class: SegmentInfoFormat
        Read SegmentInfo data from a directory.
        Specified by:
        read in class SegmentInfoFormat
        Parameters:
        directory - directory to read from
        segmentName - name of the segment to read
        segmentID - expected identifier for the segment
        Returns:
        infos instance to be populated with data
        Throws:
        java.io.IOException - If an I/O error occurs
      • readString

        private java.lang.String readString​(int offset,
                                            BytesRefBuilder scratch)