Record Class DataSourceCapabilities
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.DataSourceCapabilities
public record DataSourceCapabilities(Set<String> schemes, Set<String> formats, Set<String> extensions, Set<String> catalogs)
extends Record
Aggregated capability declarations from all registered
DataSourcePlugin instances.
Built once at startup from cheap SPI calls; does not store plugin references.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourceCapabilitiesbuild(List<DataSourcePlugin> plugins) catalogs()Returns the value of thecatalogsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionsrecord component.formats()Returns the value of theformatsrecord component.final inthashCode()Returns a hash code value for this object.schemes()Returns the value of theschemesrecord component.booleanbooleansupportsExtension(String ext) booleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataSourceCapabilities
public DataSourceCapabilities(Set<String> schemes, Set<String> formats, Set<String> extensions, Set<String> catalogs) Creates an instance of aDataSourceCapabilitiesrecord class.- Parameters:
schemes- the value for theschemesrecord componentformats- the value for theformatsrecord componentextensions- the value for theextensionsrecord componentcatalogs- the value for thecatalogsrecord component
-
-
Method Details
-
supportsScheme
-
supportsFormat
-
supportsExtension
-
supportsCatalog
-
supportedSchemesString
-
build
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
schemes
Returns the value of theschemesrecord component.- Returns:
- the value of the
schemesrecord component
-
formats
Returns the value of theformatsrecord component.- Returns:
- the value of the
formatsrecord component
-
extensions
Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-
catalogs
Returns the value of thecatalogsrecord component.- Returns:
- the value of the
catalogsrecord component
-