Class DataSourceSettings
java.lang.Object
org.elasticsearch.xpack.esql.datasources.metadata.DataSourceSettings
- All Implemented Interfaces:
Iterable<Map.Entry<String,,DataSourceSetting>> Writeable
public final class DataSourceSettings
extends Object
implements Writeable, Iterable<Map.Entry<String,DataSourceSetting>>
Immutable collection of
DataSourceSetting keyed by name; pre-computes hasSecrets().-
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 TypeMethodDescriptionasMap()entries()booleaninthashCode()booleanTrue iff at least one setting is a secret with a non-null value.booleanisEmpty()iterator()keys()intsize()Returns a fresh map keyed identically to this collection but with secret values replaced byDataSourceSetting.MASK_SENTINEL.values()voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
-
-
Constructor Details
-
DataSourceSettings
-
DataSourceSettings
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
get
-
keys
-
values
-
entries
-
asMap
-
isEmpty
public boolean isEmpty() -
size
public int size() -
hasSecrets
public boolean hasSecrets()True iff at least one setting is a secret with a non-null value. -
toPresentationMap
Returns a fresh map keyed identically to this collection but with secret values replaced byDataSourceSetting.MASK_SENTINEL. Safe for REST responses. -
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<String,DataSourceSetting>>
-
equals
-
hashCode
public int hashCode()
-