Class IndexResolution
java.lang.Object
org.elasticsearch.xpack.esql.index.IndexResolution
-
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Get the EsIndexinthashCode()static IndexResolutionbooleanisValid()Is the index valid for use with ql?booleanstatic IndexResolutiontoString()static IndexResolutionUse this method only if the set of concrete resolved indices is the same as EsIndex#concreteIndices().static IndexResolutionvalid(EsIndex index, Set<String> resolvedIndices, Map<String, FieldCapabilitiesFailure> unavailableClusters)
-
Method Details
-
valid
public static IndexResolution valid(EsIndex index, Set<String> resolvedIndices, Map<String, FieldCapabilitiesFailure> unavailableClusters) - Parameters:
index- EsIndex encapsulating requested index expression, resolved mappings and index modes from field-caps.resolvedIndices- Set of concrete indices resolved by field-caps. (This information is not always present in the EsIndex).unavailableClusters- Remote clusters that could not be contacted during planning- Returns:
- valid IndexResolution
-
valid
Use this method only if the set of concrete resolved indices is the same as EsIndex#concreteIndices(). -
invalid
-
notFound
-
matches
-
get
Get the EsIndex- Throws:
MappingException- if the index is invalid for use with ql
-
isValid
public boolean isValid()Is the index valid for use with ql?- Returns:
falseif the index wasn't found.
-
resolvedIndices
- Returns:
- all indices found by field-caps (regardless of whether they had any mappings)
-
equals
-
hashCode
public int hashCode() -
toString
-