Class SimpleTextPointsWriter

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

    class SimpleTextPointsWriter
    extends PointsWriter
    • Field Detail

      • NUM_DATA_DIMS

        public static final BytesRef NUM_DATA_DIMS
      • NUM_INDEX_DIMS

        public static final BytesRef NUM_INDEX_DIMS
      • BYTES_PER_DIM

        public static final BytesRef BYTES_PER_DIM
      • MAX_LEAF_POINTS

        public static final BytesRef MAX_LEAF_POINTS
      • INDEX_COUNT

        public static final BytesRef INDEX_COUNT
      • BLOCK_COUNT

        public static final BytesRef BLOCK_COUNT
      • BLOCK_DOC_ID

        public static final BytesRef BLOCK_DOC_ID
      • BLOCK_FP

        public static final BytesRef BLOCK_FP
      • BLOCK_VALUE

        public static final BytesRef BLOCK_VALUE
      • SPLIT_COUNT

        public static final BytesRef SPLIT_COUNT
      • SPLIT_DIM

        public static final BytesRef SPLIT_DIM
      • SPLIT_VALUE

        public static final BytesRef SPLIT_VALUE
      • FIELD_COUNT

        public static final BytesRef FIELD_COUNT
      • FIELD_FP_NAME

        public static final BytesRef FIELD_FP_NAME
      • FIELD_FP

        public static final BytesRef FIELD_FP
      • MIN_VALUE

        public static final BytesRef MIN_VALUE
      • MAX_VALUE

        public static final BytesRef MAX_VALUE
      • POINT_COUNT

        public static final BytesRef POINT_COUNT
      • DOC_COUNT

        public static final BytesRef DOC_COUNT
      • indexFPs

        final java.util.Map<java.lang.String,​java.lang.Long> indexFPs
    • Constructor Detail

      • SimpleTextPointsWriter

        public SimpleTextPointsWriter​(SegmentWriteState writeState)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeField

        public void writeField​(FieldInfo fieldInfo,
                               PointsReader reader)
                        throws java.io.IOException
        Description copied from class: PointsWriter
        Write all values contained in the provided reader
        Specified by:
        writeField in class PointsWriter
        Throws:
        java.io.IOException
      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from class: PointsWriter
        Called once at the end before close
        Specified by:
        finish in class PointsWriter
        Throws:
        java.io.IOException
      • close

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

        private void write​(IndexOutput out,
                           java.lang.String s)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInt

        private void writeInt​(IndexOutput out,
                              int x)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLong

        private void writeLong​(IndexOutput out,
                               long x)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        private void write​(IndexOutput out,
                           BytesRef b)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • newline

        private void newline​(IndexOutput out)
                      throws java.io.IOException
        Throws:
        java.io.IOException