Package io.trino.sql.analyzer
Record Class PatternRecognitionAnalysis
java.lang.Object
java.lang.Record
io.trino.sql.analyzer.PatternRecognitionAnalysis
public record PatternRecognitionAnalysis(Set<String> allLabels, Set<String> undefinedLabels, Map<NodeRef<RangeQuantifier>,Analysis.Range> ranges)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic enumstatic enumstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPatternRecognitionAnalysis(Set<String> allLabels, Set<String> undefinedLabels, Map<NodeRef<RangeQuantifier>, Analysis.Range> ranges) Creates an instance of aPatternRecognitionAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallLabelsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ranges()Returns the value of therangesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theundefinedLabelsrecord component.
-
Constructor Details
-
PatternRecognitionAnalysis
public PatternRecognitionAnalysis(Set<String> allLabels, Set<String> undefinedLabels, Map<NodeRef<RangeQuantifier>, Analysis.Range> ranges) Creates an instance of aPatternRecognitionAnalysisrecord class.- Parameters:
allLabels- the value for theallLabelsrecord componentundefinedLabels- the value for theundefinedLabelsrecord componentranges- the value for therangesrecord 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). -
allLabels
Returns the value of theallLabelsrecord component.- Returns:
- the value of the
allLabelsrecord component
-
undefinedLabels
Returns the value of theundefinedLabelsrecord component.- Returns:
- the value of the
undefinedLabelsrecord component
-
ranges
Returns the value of therangesrecord component.- Returns:
- the value of the
rangesrecord component
-