public abstract class ForwardIndexAccessor extends Object
Modifier and Type | Class and Description |
---|---|
class |
ForwardIndexAccessor.ForwardIndexAccessorLeafReader |
Constructor and Description |
---|
ForwardIndexAccessor() |
Modifier and Type | Method and Description |
---|---|
static ForwardIndexAccessor |
fromIndex(BlackLabIndex index,
String searchField) |
abstract int |
getAnnotationNumber(Annotation annotation)
Get the index number corresponding to the given annotation name.
|
abstract int |
getAnnotationNumber(String annotationName)
Get the index number corresponding to the given annotation name.
|
abstract ForwardIndexAccessor.ForwardIndexAccessorLeafReader |
getForwardIndexAccessorLeafReader(org.apache.lucene.index.LeafReader reader)
Get an accessor for forward index documents from this leafreader.
|
abstract void |
getTermNumbers(org.eclipse.collections.api.set.primitive.MutableIntSet results,
int annotationNumber,
String annotationValue,
MatchSensitivity sensitivity)
Get the term number for a given term string.
|
abstract String |
getTermString(int annotIndex,
int termId) |
abstract int |
numberOfAnnotations()
Get the number of annotations
|
abstract boolean |
termsEqual(int annotIndex,
int[] termId,
MatchSensitivity sensitivity) |
public static ForwardIndexAccessor fromIndex(BlackLabIndex index, String searchField)
public abstract int getAnnotationNumber(Annotation annotation)
annotation
- annotation to get the index forpublic abstract int getAnnotationNumber(String annotationName)
annotationName
- annotation to get the index forpublic abstract void getTermNumbers(org.eclipse.collections.api.set.primitive.MutableIntSet results, int annotationNumber, String annotationValue, MatchSensitivity sensitivity)
results
- (out) term number for this term in this annotationannotationNumber
- which annotation to get term number forannotationValue
- which term string to get term number forsensitivity
- match sensitively or not? (currently both or neither)public abstract int numberOfAnnotations()
public abstract ForwardIndexAccessor.ForwardIndexAccessorLeafReader getForwardIndexAccessorLeafReader(org.apache.lucene.index.LeafReader reader)
reader
- index readerpublic abstract String getTermString(int annotIndex, int termId)
public abstract boolean termsEqual(int annotIndex, int[] termId, MatchSensitivity sensitivity)
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.