Record Class SplitDiscoveryContext
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.SplitDiscoveryContext
- Record Components:
projectedDataColumns- names of data columns (excluding metadata attributes) that the query actually needs. When non-empty, split providers can skip files whose schema has zero overlap with this set (UNION_BY_NAME optimisation). Empty means either all columns are needed or the set is unknown.
public record SplitDiscoveryContext(SourceMetadata metadata, FileList fileList, Map<String,Object> config, PartitionMetadata partitionInfo, List<Expression> filterHints, Set<String> projectedDataColumns)
extends Record
Context passed to
SplitProvider.discoverSplits(org.elasticsearch.xpack.esql.datasources.spi.SplitDiscoveryContext) containing all information
needed to enumerate and optionally prune splits for an external source.-
Constructor Summary
ConstructorsConstructorDescriptionSplitDiscoveryContext(SourceMetadata metadata, FileList fileList, Map<String, Object> config, PartitionMetadata partitionInfo, List<Expression> filterHints) SplitDiscoveryContext(SourceMetadata metadata, FileList fileList, Map<String, Object> config, PartitionMetadata partitionInfo, List<Expression> filterHints, Set<String> projectedDataColumns) Creates an instance of aSplitDiscoveryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.fileList()Returns the value of thefileListrecord component.Returns the value of thefilterHintsrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of thepartitionInforecord component.Returns the value of theprojectedDataColumnsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SplitDiscoveryContext
public SplitDiscoveryContext(SourceMetadata metadata, FileList fileList, Map<String, Object> config, PartitionMetadata partitionInfo, List<Expression> filterHints) -
SplitDiscoveryContext
public SplitDiscoveryContext(SourceMetadata metadata, FileList fileList, Map<String, Object> config, PartitionMetadata partitionInfo, List<Expression> filterHints, Set<String> projectedDataColumns) Creates an instance of aSplitDiscoveryContextrecord class.- Parameters:
metadata- the value for themetadatarecord componentfileList- the value for thefileListrecord componentconfig- the value for theconfigrecord componentpartitionInfo- the value for thepartitionInforecord componentfilterHints- the value for thefilterHintsrecord componentprojectedDataColumns- the value for theprojectedDataColumnsrecord component
-
-
Method Details
-
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). -
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
fileList
Returns the value of thefileListrecord component.- Returns:
- the value of the
fileListrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
partitionInfo
Returns the value of thepartitionInforecord component.- Returns:
- the value of the
partitionInforecord component
-
filterHints
Returns the value of thefilterHintsrecord component.- Returns:
- the value of the
filterHintsrecord component
-
projectedDataColumns
Returns the value of theprojectedDataColumnsrecord component.- Returns:
- the value of the
projectedDataColumnsrecord component
-