Class ResolvedSettings
java.lang.Object
org.elasticsearch.xpack.esql.plan.ResolvedSettings
- All Implemented Interfaces:
Writeable
Immutable typed view of resolved query setting values, produced by
QuerySettings.resolve(java.util.Map<org.elasticsearch.xpack.esql.plan.QuerySettingDef<?>, java.lang.Object>, org.elasticsearch.xpack.esql.plan.EsqlStatement, org.elasticsearch.xpack.esql.plan.SettingsValidationContext).
Read via QuerySettingDef.get(ResolvedSettings) on each setting's constant.
Travels with Configuration across the wire to data
nodes; every node and driver that holds a Configuration also holds the full resolved view.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()toString()<T> ResolvedSettingswithOverride(QuerySettingDef<T> def, T value) Produce a copy with one setting's value overridden (or removed, ifvalueis null).voidwriteTo(StreamOutput out) Writes every resolved setting as a(name, length-prefixed value)pair.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ResolvedSettings
- Throws:
IOException
-
-
Method Details
-
writeTo
Writes every resolved setting as a(name, length-prefixed value)pair. Length-prefixing each value makes the block self-describing: a reader can skip a setting it doesn't recognize (see the constructor), so this format is forward-compatible.Adding a setting needs no new transport version. The block as a whole is introduced once, gated in
Configurationonesql_resolved_settings; thereafter a new setting is just a new entry, and older peers ignore names they don't know. (An old peer therefore falls back to the setting's default for one it hasn't learned yet — fine for coordinator-resolved settings; a future setting that must hard-fail on an old data node should additionally version-gate its inclusion here.)- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
withOverride
Produce a copy with one setting's value overridden (or removed, ifvalueis null). Used byConfiguration.withSetting/ConfigurationBuilder.settingand similar copy-with-modification helpers.
-