Record Class PartitionConfig
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.PartitionConfig
Configuration for partition detection strategy, parsed from WITH clause parameters.
Controls which
PartitionDetector is used and provides an optional path template
for template-based detection.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPartitionConfig(String strategy, String pathTemplate) Creates an instance of aPartitionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static PartitionConfigfromConfig(Map<String, Object> config) final inthashCode()Returns a hash code value for this object.Returns the value of thepathTemplaterecord component.strategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
AUTO
- See Also:
-
HIVE
- See Also:
-
TEMPLATE
- See Also:
-
NONE
- See Also:
-
CONFIG_PARTITIONING_DETECTION
- See Also:
-
CONFIG_PARTITIONING_PATH
- See Also:
-
CONFIG_PARTITIONING_HIVE
- See Also:
-
DEFAULT
-
-
Constructor Details
-
PartitionConfig
Creates an instance of aPartitionConfigrecord class.- Parameters:
strategy- the value for thestrategyrecord componentpathTemplate- the value for thepathTemplaterecord component
-
-
Method Details
-
fromConfig
-
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). -
strategy
Returns the value of thestrategyrecord component.- Returns:
- the value of the
strategyrecord component
-
pathTemplate
Returns the value of thepathTemplaterecord component.- Returns:
- the value of the
pathTemplaterecord component
-