Class PromqlParserUtils
java.lang.Object
org.elasticsearch.xpack.esql.parser.promql.PromqlParserUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocationadjustLocation(Location location, int startLine, int startColumn) Adjusts the location by the line and column offsets.static ParsingExceptionadjustParsingException(ParsingException pe, int promqlStartLine, int promqlStartColumn) Adjusts the line and column numbers of the givenParsingExceptionby the provided offsets.static SourceadjustSource(Source source, int startLine, int startColumn) Adjusts the location of the source by the line and column offsets.static Instantstatic DurationparseDuration(Source source, String string)
-
Method Details
-
parseDuration
-
adjustSource
Adjusts the location of the source by the line and column offsets.- See Also:
-
adjustLocation
Adjusts the location by the line and column offsets. The PromQL query inside the PROMQL command is parsed separately, so its line and column numbers need to be adjusted to match their position inside the full ES|QL query. -
adjustParsingException
public static ParsingException adjustParsingException(ParsingException pe, int promqlStartLine, int promqlStartColumn) Adjusts the line and column numbers of the givenParsingExceptionby the provided offsets. The PromQL query inside the PROMQL command is parsed separately, so its line and column numbers need to be adjusted to match their position inside the full ES|QL query. -
parseDate
-