Class AttributeIndex
java.lang.Object
io.superdurable.dex.AttributeIndex
Describes how an Attribute is indexed for Flow search.
Attach an index when defining an Attribute or AttributeMap. The optional
index key lets multiple logical Attributes share one physical Dex index when their types match.
A null index key uses the Attribute name.
Attribute<String> customer = Attribute.define(
"customer",
String.class,
new AttributeIndex(AttributeIndex.Type.KEYWORD));
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the value representation used by the search backend. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an index using the Attribute name as its search key.AttributeIndex(AttributeIndex.Type type, String indexKey) Creates an index with an explicit physical index key. -
Method Summary
-
Constructor Details
-
AttributeIndex
Creates an index using the Attribute name as its search key.- Parameters:
type- the index representation; must not benull- Throws:
IllegalArgumentException- iftypeisnull
-
AttributeIndex
Creates an index with an explicit physical index key.- Parameters:
type- the index representation; must not benullindexKey- the physical index key, ornullto use the Attribute name- Throws:
IllegalArgumentException- iftypeisnull
-