public class DocPropertyMultiple extends DocProperty implements Iterable<DocProperty>
logger, reverse
Constructor and Description |
---|
DocPropertyMultiple(DocProperty... criteria)
Quick way to create group criteria.
|
DocPropertyMultiple(List<DocProperty> criteria)
Quick way to create group criteria.
|
Modifier and Type | Method and Description |
---|---|
void |
addCriterium(DocProperty crit) |
boolean |
canConstructQuery(BlackLabIndex index,
PropertyValue value)
Can we create a query matching the specified value for our property?
|
int |
compare(DocResult a,
DocResult b)
Compares two docs on this property
|
static DocPropertyMultiple |
deserialize(BlackLabIndex index,
String info) |
boolean |
equals(Object obj) |
PropertyValueMultiple |
get(DocResult result)
Get the desired grouping/sorting property from the DocResult object
|
int |
hashCode() |
boolean |
isCompound() |
Iterator<DocProperty> |
iterator() |
String |
name()
Get the name of the property
|
List<DocProperty> |
props() |
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)
|
String |
toString() |
getFacetsUrlParam, isReverse, serializeReverse, sortDescendingByDefault
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
ignoreSensitivity, propNames
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public DocPropertyMultiple(List<DocProperty> criteria)
criteria
- the desired criteriapublic DocPropertyMultiple(DocProperty... criteria)
criteria
- the desired criteriapublic 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 void addCriterium(DocProperty crit)
public String toString()
toString
in interface ResultProperty<DocResult>
toString
in class DocProperty
public Iterator<DocProperty> iterator()
iterator
in interface Iterable<DocProperty>
public PropertyValueMultiple 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 boolean isCompound()
isCompound
in interface ResultProperty<DocResult>
public List<DocProperty> props()
props
in interface ResultProperty<DocResult>
public static DocPropertyMultiple deserialize(BlackLabIndex index, String info)
public DocProperty reverse()
DocProperty
reverse
in interface ResultProperty<DocResult>
reverse
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 matchpublic boolean canConstructQuery(BlackLabIndex index, PropertyValue value)
DocProperty
canConstructQuery
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.