Package org.apache.calcite.util
@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=FIELD) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=PARAMETER) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=RETURN)
package org.apache.calcite.util
Classes for testing Calcite.
-
ClassDescriptionA class derived from
BarfingInvocationHandler
handles a method call by looking for a method in itself with identical parameters.Helps to run benchmarks by running the same task repeatedly and averaging the running times.Collects statistics for a test that is run multiple times.Utility functions forBitSet
.String of bits.Holder for a list of constants describing which bugs which have not been fixed.Built-in methods.Tagging interface to allow aSqlParseException
to be identified without adding a dependency on it from client-side code.Tagging interface to allow aSqlValidatorException
to be identified without adding a dependency on it from client-side code.CancelFlag is used to post and check cancellation requests.CastingList<E>Converts a list whose members are automatically down-cast to a given type.ChunkList<E>Implementation of list similar toLinkedList
, but stores elements in chunks of 32 elements.Helper that holds ontoAutoCloseable
resources and releases them when its#close
method is called.Compatibility layer.Creates the implementation of Compatible suitable for the current environment.Read-only list that is the concatenation of sub-lists.CompositeMap<K,V> Unmodifiable view onto multiple backing maps.Exception intended to be used for control flow, as opposed to the usual use of exceptions which is to signal an error condition.Utility functions for converting from one type to another.Date literal.Utility methods to manipulate String representation of DateTime values.A class derived fromDelegatingInvocationHandler
handles a method call by looking for a method in itself with identical parameters.EquivalenceSet<E extends Comparable<E>>Set of elements organized into equivalence classes.Filterator<E>Filtered iterator class: an iterator that includes only elements that are instanceof a specified class.A collection of terms.Holder<E>A mutable slot that can contain one object.An immutable list of bits.Builder.An immutable list ofInteger
values backed by an array ofint
s.An immutable list that may contain null values.A builder for creating immutable nullable list instances.ImmutableNullableMap<K,V> An immutable map that may contain null values.An immutable set that may contain null values.A builder for creating immutable nullable set instances.A set of non-negative integers defined by a sequence of points, intervals, and exclusions.Deprecated.Maps Java types to their corresponding getters in JDBC.Callback to be called when a test for validity succeeds or fails.Supplier that awaits a value and allows the value to be set, once, to a not-null value.NameMap<V>Map whose keys are names and can be accessed with and without case sensitivity.NameMultimap<V>Multimap whose keys are names and can be accessed with and without case sensitivity.Set of names that can be accessed with and without case sensitivity.A string, optionally withcharacter set
andSqlCollation
.Utility functions for working with numbers.Four states that describe whether a particular behavior or property is allowed and/or not allowed.Pair<T1,T2> Pair of objects.Represents an operation that accepts two input arguments and an ordinal, and returns no result.Partially-ordered set.Ordering relation.Represents a mapping which reorders elements in an array.Parser that takes a collection of tokens (atoms and operators) and groups them together according to the operators' precedence and associativity.Fluent helper to build a parser containing a list of tokens.A token that is a call to an operator with arguments.An operator token.Callback defining the behavior of a special function.An token corresponding to a special operator.A token: either an atom, a call to an operator with arguments, or an unmatched operator.Token type.A text processor similar to Awk.Puffin.Builder<G,F> Fluent interface for constructing a Program.Puffin.Context<G,F> Context for executing a Puffin program within a given file.Puffin.Line<G,F> A line in a file.A Puffin program.Utilities for GuavaRangeSet
.Consumer ofRange
values.RangeSets.Handler<V,R> Deconstructor forRange
values.Interface for looking up methods relating to reflective visitation.Object which can be a target for a reflective visitation (seeReflectUtil.invokeVisitor(ReflectiveVisitor, Object, Class, String)
.Static utilities for Java reflection.Can invoke a method on an object of type E with return type T.Utilities used by multiple dialect for RelToSql conversion.Deprecated.Helper class.Sarg<C extends Comparable<C>>Set of values (or ranges) that are the target of a search.Serializable wrapper around aCharset
.SimpleNamespaceContext
implementation.Holder for various classes and functions used in tests as user-defined functions and so forth.UDF class that provides user-defined functions for each data type.User-defined table-macro function with named and optional parameters.Example of a UDF class that needs to be instantiated but cannot be.Example of a UDF that has overloaded UDFs (same name, different args).Example of a UDF with non-default constructor.A table function that returns its input value.Class with int and String fields.The real MazeTable may be found in example/function.UDF class that has multiple methods, some overloaded.Example of a UDF with named parameters, some of them optional.AsSmalls.MyPlusFunction
but declared to be deterministic.Example of a UDF with a staticeval
method.User-defined function that declares exceptions.User-defined function with two arguments.Example of a UDF with named parameters.Example of a UDF with a non-staticeval
method, and named parameters.AsSmalls.MyPlusFunction
but constructor has aFunctionContext
parameter.Example of a user-defined aggregate function (UDAF), whose methods are static.Example of a user-defined aggregate function that implements a generic interface.Example of a user-defined aggregate function (UDAF).A table function that returns aQueryableTable
.Example of a user-defined aggregate function (UDAF), whose methods are static.Example of a user-defined aggregate function (UDAF), whose methods are static.Example of a non-strict UDF.Example of a user-defined aggregate function (UDAF) with two parameters.Another example of a user-defined aggregate function (UDAF) with two parameters.Example of a semi-strict UDF.Example of a picky, semi-strict UDF.Table with columns (A, B).A table function that returns aQueryableTable
.Implementation ofTableMacro
interface withSmalls.SimpleTableMacro.apply(java.util.List<?>)
method that returnsQueryable
table.User-defined table-macro function whose eval method is static.User-defined function.User-defined table-macro function.User-defined table-macro function with named and optional parameters.A table function that returns aQueryableTable
via a static method.Table with a lot of columns.Schema containing aprod
table with a lot of columns.Source of data.Utilities forSource
.Extension toStringReader
that allows the original string to be recovered.Deprecated.A helper class for generating formatted text.Definitions of objects to be statically imported.String template.Static utilities for JUnit tests.Timestamp literal.Timestamp with time-zone literal.Time literal.Time with time-zone literal.Thread-local variable that returns a handle that can be closed.Remembers to set the value back.A view onto an array that cannot be modified by the client.Contains methods that call JDK methods that the forbidden APIs checker does not approve of.This class is used to disable SSL Certificate Verification in Calcite adapters that make http calls.Miscellaneous utility functions.Exception used to interrupt a tree walk of any kind.Visitor which looks for an OVER clause inside a tree ofSqlNode
objects.Version string parsed into major and minor parts.Streaming XML output.
CalciteSystemProperty