Provides utility classes.
Interface Summary Interface Description CalciteParserExceptionTagging interface to allow a
SqlParseExceptionto be identified without adding a dependency on it from client-side code.
CalciteValidatorExceptionTagging interface to allow a
SqlValidatorExceptionto be identified without adding a dependency on it from client-side code.
GlossaryA collection of terms. IntegerIntervalSet.HandlerA callback. LitmusCallback to be called when a test for validity succeeds or fails. PartiallyOrderedSet.Ordering<E>Ordering relation. PrecedenceClimbingParser.SpecialCallback defining the behavior of a special function. ReflectiveVisitDispatcher<R extends ReflectiveVisitor,E>Interface for looking up methods relating to reflective visitation. ReflectiveVisitorObject which can be a target for a reflective visitation (see
ReflectUtil.invokeVisitor(ReflectiveVisitor, Object, Class, String).
ReflectUtil.MethodDispatcher<T>Can invoke a method on an object of type E with return type T. SaffronProperties Deprecated.As of release 1.19, replaced by
SourceSource of data. TryThreadLocal.MemoRemembers to set the value back.
Class Summary Class Description BarfingInvocationHandlerA class derived from
BarfingInvocationHandlerhandles a method call by looking for a method in itself with identical parameters.
BenchmarkHelps to run benchmarks by running the same task repeatedly and averaging the running times. Benchmark.StatisticianCollects statistics for a test that is run multiple times. BitSetsUtility functions for
BitSets.ClosureSetup equivalence Sets for each position. BitStringString of bits. BlackholeMap<K,V>An implementation of
java.util.Mapthat ignores any
BlackholeMap.BHIterator<E>Blackhole implementation of
BlackholeMap.BHSet<E>Blackhole implementation of
BugHolder for a list of constants describing which bugs which have not been fixed. CancelFlagCancelFlag is used to post and check cancellation requests. CaseInsensitiveComparatorComparator that compares all strings differently, but if two strings are equal in case-insensitive match they are right next to each other. CaseInsensitiveComparator.KeyEnables to create floor and ceiling keys for given string. CastingList<E>Converts a list whose members are automatically down-cast to a given type. ChunkList<E>Implementation of list similar to
LinkedList, but stores elements in chunks of 32 elements.
CloserHelper that holds onto
AutoCloseableresources and releases them when its
#closemethod is called.
CompositeList<T>Read-only list that is the concatenation of sub-lists. CompositeMap<K,V>Unmodifiable view onto multiple backing maps. ConversionUtilUtility functions for converting from one type to another DateStringDate literal. DateTimeStringUtilsUtility methods to manipulate String representation of DateTime values. DelegatingInvocationHandlerA class derived from
DelegatingInvocationHandlerhandles a method call by looking for a method in itself with identical parameters.
EquivalenceSet<E extends java.lang.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. Holder<E>A mutable slot that can contain one object. ImmutableBitSetAn immutable list of bits. ImmutableBitSet.BuilderBuilder. ImmutableBitSet.ClosureSetup equivalence Sets for each position. ImmutableBitSet.Rebuilder ImmutableIntListAn immutable list of
Integervalues backed by an array of
UnmodifiableListIteratorthat operates by index.
ImmutableIntList.EmptyImmutableIntListSpecial sub-class of
ImmutableIntListthat is always empty and has only one instance.
ImmutableNullableList<E>An immutable list that may contain null values. ImmutableNullableList.Builder<E>A builder for creating immutable nullable list instances. IntegerIntervalSetA set of non-negative integers defined by a sequence of points, intervals, and exclusions. IntList Deprecated. JsonBuilderBuilder for JSON documents (represented as
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. NameSetSet of names that can be accessed with and without case sensitivity. NlsStringA string, optionally with
NumberUtilUtility functions for working with numbers. Pair<T1,T2>Pair of objects. Pair.AdjacentIterator<E>Iterator that returns consecutive pairs of elements from an underlying iterator. Pair.FirstAndIterator<E>Iterator that returns the first element of a collection paired with every other element. Pair.LeftIterator<L,R>Iterator that returns the left field of each pair. Pair.RightIterator<L,R>Iterator that returns the right field of each pair. Pair.ZipIterator<L,R>Iterator that pairs elements from two iterators. PartiallyOrderedSet<E>Partially-ordered set. PartiallyOrderedSet.Node<E>Holds a value, its parent nodes, and child nodes. PartiallyOrderedSet.TopBottomNode<E>Subclass of Node for top/bottom nodes. PermutationRepresents a mapping which reorders elements in an array. PrecedenceClimbingParserParser that takes a collection of tokens (atoms and operators) and groups them together according to the operators' precedence and associativity. PrecedenceClimbingParser.BuilderFluent helper to build a parser containing a list of tokens. PrecedenceClimbingParser.CallA token that is a call to an operator with arguments. PrecedenceClimbingParser.OpAn operator token. PrecedenceClimbingParser.Result PrecedenceClimbingParser.SpecialOpAn token corresponding to a special operator. PrecedenceClimbingParser.TokenA token: either an atom, a call to an operator with arguments, or an unmatched operator. ReflectUtilStatic utilities for Java reflection. SaffronProperties.HelperHelper class. SerializableCharsetSerializable wrapper around a
StringReaderthat allows the original string to be recovered.
Stacks Deprecated. StackWriterA helper class for generating formatted text. StaticDefinitions of objects to be statically imported. TemplateString template. TimestampStringTimestamp literal. TimestampWithTimeZoneStringTimestamp with time-zone literal. TimeStringTime literal. TimeWithTimeZoneStringTime with time-zone literal. TryThreadLocal<T>Thread-local variable that returns a handle that can be closed. UnmodifiableArrayList<E>A view onto an array that cannot be modified by the client. UnsafeContains methods that call JDK methods that the forbidden APIs checker does not approve of. UtilMiscellaneous utility functions. Util.FilteringIterator<T>Iterator that applies a predicate to each element. Util.OverFinderVisitor which looks for an OVER clause inside a tree of
Util.TransformingList<F,T>List that returns the same number of elements as a backing list, applying a transformation function to each one. XmlOutputStreaming XML output. XmlOutput.StringEscaperUtility for replacing special characters with escape sequences in strings. XmlOutput.XMLAttrVectorList of attribute names and values.
Enum Summary Enum Description BuiltInMethodBuilt-in methods. OptionalityFour states that describe whether a particular behavior or property is allowed and/or not allowed. PrecedenceClimbingParser.TypeToken type.
Exception Summary Exception Description ControlFlowExceptionException intended to be used for control flow, as opposed to the usual use of exceptions which is to signal an error condition. Util.FoundOneException used to interrupt a tree walk of any kind.