Class OpenNlpExtractor.MetadataAccumulator

  • Enclosing class:
    OpenNlpExtractor

    protected class OpenNlpExtractor.MetadataAccumulator
    extends java.lang.Object
    An instance of this class receives characters in 64K chunks, and needs to accumulate extracted metadata that this transformer will pass down.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acceptCharacters​(char[] buffer, int amt)
      Accept characters, including actual count.
      void done()  
      java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getMetadata()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataAccumulator

        public MetadataAccumulator​(OpenNlpExtractor.SpecPacker sp,
                                   long bytesize)
                            throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
    • Method Detail

      • acceptCharacters

        public void acceptCharacters​(char[] buffer,
                                     int amt)
        Accept characters, including actual count.
      • done

        public void done()
      • getMetadata

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getMetadata()