Class DataSourceMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<Metadata.ProjectCustom>
org.elasticsearch.xpack.esql.datasources.metadata.DataSourceMetadata
- All Implemented Interfaces:
Diffable<Metadata.ProjectCustom>,Metadata.MetadataCustom<Metadata.ProjectCustom>,Metadata.ProjectCustom,NamedDiffable<Metadata.ProjectCustom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
public final class DataSourceMetadata
extends AbstractNamedDiffable<Metadata.ProjectCustom>
implements Metadata.ProjectCustom
Encapsulates data source definitions as custom metadata inside ProjectMetadata within cluster state.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataSourceMetadatastatic final List<NamedWriteableRegistry.Entry> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontext()booleanstatic DataSourceMetadatafromXContent(XContentParser parser) static DataSourceMetadataget(ProjectMetadata project) inthashCode()static DataSourceMetadatatoString()Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params ignored) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.cluster.AbstractNamedDiffable
diff, get, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.MetadataCustom
isRestorableMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
TYPE
- See Also:
-
ENTRIES
-
EMPTY
-
-
Constructor Details
-
DataSourceMetadata
-
-
Method Details
-
fromXContent
- Throws:
IOException
-
readFromStream
- Throws:
IOException
-
dataSources
-
get
-
context
- Specified by:
contextin interfaceMetadata.MetadataCustom<Metadata.ProjectCustom>
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContentChunked
- Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
equals
-
hashCode
public int hashCode() -
toString
-
get
-