public class HitPropertyWordRight extends HitPropertyContextBase
annotation, contextSize, index, name, sensitivity, serializeName, terms
contexts, hits, logger, reverse
Constructor and Description |
---|
HitPropertyWordRight(BlackLabIndex index) |
HitPropertyWordRight(BlackLabIndex index,
Annotation annotation) |
HitPropertyWordRight(BlackLabIndex index,
Annotation annotation,
MatchSensitivity sensitivity) |
HitPropertyWordRight(BlackLabIndex index,
Annotation annotation,
MatchSensitivity sensitivity,
ContextSize contextSize) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Hit a,
Hit b)
Compares two hits on this property.
|
HitProperty |
copyWith(Results<Hit> newHits,
Contexts contexts,
boolean invert)
Produce a copy of this HitProperty object with a different Hits and Contexts
object.
|
PropertyValueContextWord |
get(Hit result)
Get the property value for a specific result.
|
deserializeProp, equals, hashCode, name, needsContext, needsContextSize, serialize
copyWith, deserialize, deserialize, docPropsOnly, docPropValues, isReverse, reverse, serializeReverse, setContextIndices, setContexts, sortDescendingByDefault, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ignoreSensitivity, isCompound, propNames, props
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public HitPropertyWordRight(BlackLabIndex index, Annotation annotation, MatchSensitivity sensitivity, ContextSize contextSize)
public HitPropertyWordRight(BlackLabIndex index, Annotation annotation, MatchSensitivity sensitivity)
public HitPropertyWordRight(BlackLabIndex index, Annotation annotation)
public HitPropertyWordRight(BlackLabIndex index)
public HitProperty copyWith(Results<Hit> newHits, Contexts contexts, boolean invert)
HitProperty
copyWith
in class HitProperty
newHits
- new Hits to use, or null to inheritcontexts
- new Contexts to use, or null to inheritinvert
- true if we should invert the previous sort order; false to keep it the samepublic PropertyValueContextWord get(Hit result)
ResultProperty
get
in interface ResultProperty<Hit>
get
in class HitProperty
result
- result to get property value forpublic int compare(Hit a, Hit b)
ResultProperty
compare
in interface Comparator<Hit>
compare
in interface ResultProperty<Hit>
compare
in class HitProperty
a
- first hitb
- second hitCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.