public class HollowHashIndex
extends java.lang.Object
The field definitions in a hash key may be hierarchical (traverse multiple record types) via dot-notation. For example, the field definition actors.element.actorId may be used to traverse a child LIST or SET type record referenced by the field actors, each elements contained therein, and finally each actors actorId field.
Constructor and Description |
---|
HollowHashIndex(HollowReadStateEngine stateEngine,
java.lang.String type,
java.lang.String selectField,
java.lang.String... matchFields)
Define a
HollowHashIndex . |
Modifier and Type | Method and Description |
---|---|
HollowHashIndexResult |
findMatches(java.lang.Object... query)
Query the index.
|
public HollowHashIndex(HollowReadStateEngine stateEngine, java.lang.String type, java.lang.String selectField, java.lang.String... matchFields)
HollowHashIndex
.stateEngine
- The state engine to indextype
- The query starts with the specified typeselectField
- The query will select records at this field (specify "" to select the specified type).
The selectField may span collection elements and/or map keys or values, which can result in multiple matches per record of the specified start type.matchFields
- The query will match on the specified match fields. The match fields may span collection elements and/or map keys or values.public HollowHashIndexResult findMatches(java.lang.Object... query)
HollowHashIndexResult
will be null if no matches were found. Otherwise, may be used
to gather the matched ordinals.