Class SimpleTextPointsReader

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

    class SimpleTextPointsReader
    extends PointsReader
    • Constructor Detail

      • SimpleTextPointsReader

        public SimpleTextPointsReader​(SegmentReadState readState)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • initReader

        private SimpleTextBKDReader initReader​(long fp)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readLine

        private void readLine​(IndexInput in)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • startsWith

        private boolean startsWith​(BytesRef prefix)
      • parseInt

        private int parseInt​(BytesRef prefix)
      • parseLong

        private long parseLong​(BytesRef prefix)
      • stripPrefix

        private java.lang.String stripPrefix​(BytesRef prefix)
      • getValues

        public PointValues getValues​(java.lang.String fieldName)
                              throws java.io.IOException
        Description copied from class: PointsReader
        Return PointValues for the given field. The behavior is undefined if the given field doesn't have points enabled on its FieldInfo.
        Specified by:
        getValues in class PointsReader
        Throws:
        java.io.IOException
      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.IOException
        Description copied from class: PointsReader
        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 PointsReader
        Throws:
        java.io.IOException
      • close

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

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