Class TermGenerators.LongOffsetIndexTermGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long forOffsets​(int begin, int end)  
      java.lang.Object generateIndexTerms​(org.apache.uima.jcas.tcas.Annotation a)
      Generates a single index term or a stream of index terms for the annotation a.
      • Methods inherited from class java.lang.Object

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

      • LongOffsetIndexTermGenerator

        public LongOffsetIndexTermGenerator()
    • Method Detail

      • generateIndexTerms

        public java.lang.Object generateIndexTerms​(org.apache.uima.jcas.tcas.Annotation a)
        Description copied from interface: IndexTermGenerator
        Generates a single index term or a stream of index terms for the annotation a. If it is known in advance if single terms or a stream is returned, the methods IndexTermGenerator.asKey(Annotation) or IndexTermGenerator.asStream(Annotation) might be used instead.
        Specified by:
        generateIndexTerms in interface IndexTermGenerator<java.lang.Long>
        Parameters:
        a - The annotation to generate terms for.
        Returns:
        The generated terms. Might be a single term of type K or a stream of terms.
      • forOffsets

        public java.lang.Long forOffsets​(int begin,
                                         int end)