Record Class PromqlFunctionRegistry.ParamInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.expression.promql.function.PromqlFunctionRegistry.ParamInfo
- Enclosing class:
PromqlFunctionRegistry
public static record PromqlFunctionRegistry.ParamInfo(String name, PromqlDataType type, String description, boolean optional, boolean child)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParamInfo(String name, PromqlDataType type, String description, boolean optional, boolean child) Creates an instance of aParamInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchild()Returns the value of thechildrecord component.child(String name, PromqlDataType type, String description) Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.of(String name, PromqlDataType type, String description) booleanoptional()Returns the value of theoptionalrecord component.optional(String name, PromqlDataType type, String description) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ParamInfo
public ParamInfo(String name, PromqlDataType type, String description, boolean optional, boolean child) Creates an instance of aParamInforecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentdescription- the value for thedescriptionrecord componentoptional- the value for theoptionalrecord componentchild- the value for thechildrecord component
-
-
Method Details
-
child
public static PromqlFunctionRegistry.ParamInfo child(String name, PromqlDataType type, String description) -
of
public static PromqlFunctionRegistry.ParamInfo of(String name, PromqlDataType type, String description) -
optional
public static PromqlFunctionRegistry.ParamInfo optional(String name, PromqlDataType type, String description) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
optional
public boolean optional()Returns the value of theoptionalrecord component.- Returns:
- the value of the
optionalrecord component
-
child
public boolean child()Returns the value of thechildrecord component.- Returns:
- the value of the
childrecord component
-