Class SimpleTextNormsFormat.SimpleTextNormsConsumer

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

    public static class SimpleTextNormsFormat.SimpleTextNormsConsumer
    extends NormsConsumer
    Writes plain-text norms.

    FOR RECREATIONAL USE ONLY

    • Constructor Detail

      • SimpleTextNormsConsumer

        public SimpleTextNormsConsumer​(SegmentWriteState state)
                                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • addNormsField

        public void addNormsField​(FieldInfo field,
                                  NormsProducer normsProducer)
                           throws java.io.IOException
        Description copied from class: NormsConsumer
        Writes normalization values for a field.
        Specified by:
        addNormsField in class NormsConsumer
        Parameters:
        field - field information
        normsProducer - NormsProducer of the numeric norm values
        Throws:
        java.io.IOException - if an I/O error occurred.
      • close

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