Package de.julielab.jcore.utility.index
Class TermGenerators.LongOffsetIndexTermGenerator
- java.lang.Object
-
- de.julielab.jcore.utility.index.TermGenerators.LongOffsetIndexTermGenerator
-
- All Implemented Interfaces:
IndexTermGenerator<java.lang.Long>
- Enclosing class:
- TermGenerators
public static class TermGenerators.LongOffsetIndexTermGenerator extends java.lang.Object implements IndexTermGenerator<java.lang.Long>
-
-
Constructor Summary
Constructors Constructor Description LongOffsetIndexTermGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LongforOffsets(int begin, int end)java.lang.ObjectgenerateIndexTerms(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
-
Methods inherited from interface de.julielab.jcore.utility.index.IndexTermGenerator
asKey, asStream
-
-
-
-
Method Detail
-
generateIndexTerms
public java.lang.Object generateIndexTerms(org.apache.uima.jcas.tcas.Annotation a)
Description copied from interface:IndexTermGeneratorGenerates 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 methodsIndexTermGenerator.asKey(Annotation)orIndexTermGenerator.asStream(Annotation)might be used instead.- Specified by:
generateIndexTermsin interfaceIndexTermGenerator<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)
-
-