public class DocPropertyAnnotatedFieldLength extends DocProperty
logger, reverse
Constructor and Description |
---|
DocPropertyAnnotatedFieldLength(BlackLabIndex index,
String fieldName) |
DocPropertyAnnotatedFieldLength(BlackLabIndex index,
String fieldName,
String friendlyName) |
Modifier and Type | Method and Description |
---|---|
int |
compare(DocResult a,
DocResult b)
Compares two docs on this property
|
static DocPropertyAnnotatedFieldLength |
deserialize(BlackLabIndex index,
String info) |
boolean |
equals(Object obj) |
PropertyValueInt |
get(DocResult result)
Get the desired grouping/sorting property from the DocResult object
|
long |
get(int docId) |
int |
hashCode() |
String |
name()
Get the name of the property
|
org.apache.lucene.search.Query |
query(BlackLabIndex index,
PropertyValue value)
Generate a query matching the specified value for our property.
|
DocProperty |
reverse()
Reverse the comparison.
|
String |
serialize()
Serialize this HitProperty so we can deserialize it later (to pass it via
URL, for example)
|
canConstructQuery, getFacetsUrlParam, isReverse, serializeReverse, 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 DocPropertyAnnotatedFieldLength(BlackLabIndex index, String fieldName, String friendlyName)
public DocPropertyAnnotatedFieldLength(BlackLabIndex index, String fieldName)
public static DocPropertyAnnotatedFieldLength deserialize(BlackLabIndex index, String info)
public long get(int docId)
public PropertyValueInt get(DocResult result)
DocProperty
get
in interface ResultProperty<DocResult>
get
in class DocProperty
result
- the result to get the grouping property forpublic int compare(DocResult a, DocResult b)
compare
in interface Comparator<DocResult>
compare
in interface ResultProperty<DocResult>
compare
in class DocProperty
a
- first docb
- second docpublic String name()
ResultProperty
name
in interface ResultProperty<DocResult>
name
in class DocProperty
public String serialize()
ResultProperty
serialize
in interface ResultProperty<DocResult>
serialize
in class DocProperty
public DocProperty reverse()
DocProperty
reverse
in interface ResultProperty<DocResult>
reverse
in class DocProperty
public int hashCode()
hashCode
in interface ResultProperty<DocResult>
hashCode
in class DocProperty
public boolean equals(Object obj)
equals
in interface Comparator<DocResult>
equals
in interface ResultProperty<DocResult>
equals
in class DocProperty
public org.apache.lucene.search.Query query(BlackLabIndex index, PropertyValue value)
DocProperty
query
in class DocProperty
index
- our index (for finding field properties such as tokenized or not, analyzer, unknown value)value
- value to matchCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.