public class HitPropertyRightContext extends HitPropertyContextBase
annotation, contextSize, index, name, sensitivity, serializeName, terms
contexts, hits, logger, reverse
Constructor and Description |
---|
HitPropertyRightContext(BlackLabIndex index) |
HitPropertyRightContext(BlackLabIndex index,
Annotation annotation) |
HitPropertyRightContext(BlackLabIndex index,
Annotation annotation,
MatchSensitivity sensitivity) |
HitPropertyRightContext(BlackLabIndex index,
Annotation annotation,
MatchSensitivity sensitivity,
ContextSize contextSize) |
HitPropertyRightContext(BlackLabIndex index,
MatchSensitivity sensitivity) |
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.
|
PropertyValueContextWords |
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 HitPropertyRightContext(BlackLabIndex index, Annotation annotation, MatchSensitivity sensitivity, ContextSize contextSize)
public HitPropertyRightContext(BlackLabIndex index, Annotation annotation, MatchSensitivity sensitivity)
public HitPropertyRightContext(BlackLabIndex index, Annotation annotation)
public HitPropertyRightContext(BlackLabIndex index, MatchSensitivity sensitivity)
public HitPropertyRightContext(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 PropertyValueContextWords 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.