Package org.apache.drill.exec.expr.fn.impl
package org.apache.drill.exec.expr.fn.impl
-
ClassDescriptionTo get good performance for most commonly used pattern matches CONSTANT('ABC')
SqlPatternConstantMatcher
STARTSWITH('%ABC')SqlPatternStartsWithMatcher
ENDSWITH('ABC%')SqlPatternEndsWithMatcher
CONTAINS('%ABC%')SqlPatternContainsMatcher
we have simple pattern matchers.Function templates for Bit/BOOLEAN functions other than comparison functions.Evaluate a substring expression for a given value; specifying the start position, and optionally the end position.A CharSequence is a readable sequence of char values.Evaluate a substring expression for a given UTF-8 value; specifying the start position, and optionally the end position.Aggregate function which stores incoming fields into the map.Aggregate function which collects incoming VarChar column values into the list.Implement "current_schema" function.Implement "session_id" function.Implement "user", "session_user" or "system_user" function.Function to check if a varchar value can be cast to a date.Utility class for Date, DateTime, TimeStamp, Interval data types.Thin wrapper around byte array.The base class of hash classes used in Drill.Binary form, returns the interval between `right` and `left`.Unary form, subtracts `right` from midnight so equivalent to `select age(current_date, right)`.Binary form, returns the interval between `right` and `left`.Binary form, returns the interval between `right` and `left`.Binary form, returns the interval between `right` and `left`.Unary form, subtracts `right` from midnight so equivalent to `select age(current_date, right)`.Binary form, returns the interval between `right` and `left`.Binary form, returns the interval between `right` and `left`.Binary form, returns the interval between `right` and `left`.Unary form, subtracts `right` from midnight so equivalent to `select age(current_date, right)`.Binary form, returns the interval between `right` and `left`.Binary form, returns the interval between `right` and `left`.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.This class merely act as a placeholder so that Calcite allows 'trunc('truncationUnit', col)' function in SQL.hash32 function definitions for numeric data types.hash32 with seed function definitions for numeric data types.MurmurHash3 was written by Austin Appleby, and is placed in the public domain.Theparse_query
function splits up a query string and returns a map of the key-value pairs.Theparse_url
function takes an URL and returns a map of components of the URL.Utilities for converting SQLLIKE
andSIMILAR
operators to regular expressions.Implementation of Calcite's ROW(col1, col2, ..., colN) constructor function.Aggregate function which accepts VarChar column with string representations ofTupleMetadata
and returns string representation ofTupleMetadata
with merged schema.Aggregate function which infers schema from incoming data and returns string representation ofTupleMetadata
with incoming schema.SQL Pattern Contains implementationThe log2m parameter defines the accuracy of the counter.The log2m parameter defines the accuracy of the counter.The log2m parameter defines the accuracy of the counter.The log2m parameter defines the accuracy of the counter.Convert string to ASCII from another encoding input.Returns the ASCII code of the first character of input stringReturns the char corresponding to ASCII code input.Remove the longest string containing only characters from "from" from the start of "text"Remove the longest string containing only character " " from the start of "text"Remove the longest string containing only characters from "from" from the start of "text"Remove the longest string containing only character " " from the start of "text"Returns the input char sequences repeated nTimes.Returns the reverse string for given input.Fill up the string to length "length" by appending the characters 'fill' at the end of 'text' If the string is already longer than length then it is truncated.Fill up the string to length "length" by appending the characters ' ' at the end of 'text' If the string is already longer than length then it is truncated.Remove the longest string containing only characters from "from" from the end of "text"Remove the longest string containing only character " " from the end of "text"Return the string part at index after splitting the input string using the specified delimiter.Return the string part from start to end after splitting the input string using the specified delimiter.Type functions for all types.Contains additional functions for union types in addition to those in GUnionFunctionsReturns zero if the inputs have equivalent types.