
public class OIndexSearchResult extends Object
fieldValuePairs map but last pair is stored in
lastField lastValue properties and their operator will be stored in lastOperator property.
Such data structure is used because from composite index point of view any "field and value" pairs can be reordered to match keys
order that is used in index in case all fields and values are related to each other using equals operator, but position of field
- value pair that uses non equals operator cannot be changed. Actually only one non-equals operator can be used for composite
index search and filed - value pair that uses this index should always be placed at last position.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
fieldValuePairs |
OSQLFilterItemField.FieldChain |
lastField |
OQueryOperator |
lastOperator |
Object |
lastValue |
| Constructor and Description |
|---|
OIndexSearchResult(OQueryOperator lastOperator,
OSQLFilterItemField.FieldChain field,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<String> |
fields() |
int |
hashCode() |
static boolean |
isIndexEqualityOperator(OQueryOperator queryOperator) |
OIndexSearchResult |
merge(OIndexSearchResult searchResult)
Combines two queries subset into one.
|
public final OQueryOperator lastOperator
public final OSQLFilterItemField.FieldChain lastField
public final Object lastValue
public OIndexSearchResult(OQueryOperator lastOperator, OSQLFilterItemField.FieldChain field, Object value)
public static boolean isIndexEqualityOperator(OQueryOperator queryOperator)
public OIndexSearchResult merge(OIndexSearchResult searchResult)
canBeMerged(OIndexSearchResult) method will
return true for the same passed in parameter.searchResult - Query subset to merge.Copyright © 2009–2025 OrientDB. All rights reserved.