Interface IndexFieldDescriptor
-
- All Known Subinterfaces:
IndexObjectFieldDescriptor,IndexValueFieldDescriptor
public interface IndexFieldDescriptorA field in the index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringabsolutePath()booleanisObjectField()booleanisValueField()booleanmultiValued()booleanmultiValuedInRoot()IndexCompositeElementDescriptorparent()StringrelativeName()IndexObjectFieldDescriptortoObjectField()IndexValueFieldDescriptortoValueField()
-
-
-
Method Detail
-
isObjectField
boolean isObjectField()
- Returns:
trueif this field is an object field. In that case,toObjectField()can be called safely (it won't throw an exception).
-
isValueField
boolean isValueField()
- Returns:
trueif this field is a value field. In that case,toValueField()can be called safely (it won't throw an exception).
-
toObjectField
IndexObjectFieldDescriptor toObjectField()
- Returns:
- This field as an
IndexObjectFieldDescriptor, if possible. Nevernull. - Throws:
SearchException- If this field is not an object field.
-
toValueField
IndexValueFieldDescriptor toValueField()
- Returns:
- This field as an
IndexValueFieldDescriptor, if possible. Nevernull. - Throws:
SearchException- If this field is not a value field.
-
parent
IndexCompositeElementDescriptor parent()
- Returns:
- The parent of this field, either the
index rootor anobject field.
-
absolutePath
String absolutePath()
- Returns:
- The absolute, dot-separated path of this field.
-
multiValued
boolean multiValued()
- Returns:
trueif this field can have multiple values in the same parent document.
-
multiValuedInRoot
boolean multiValuedInRoot()
- Returns:
trueif this field can have multiple values in the same root document or if it is contained, directly or indirectly, in an object field that can have multiple values.
-
-