Package org.apache.calcite.avatica.util
Avatica utilities.
-
Interface Summary Interface Description AbstractCursor.Getter Gets a value from a particular field of the current record of this cursor.ArrayImpl.Factory Factory that can create a ResultSet or Array based on a stream of values.Cursor Interface to an iteration that is similar to, and can easily support, a JDBCResultSet, but is simpler to implement.Cursor.Accessor Accessor of a column value.DateTimeUtils.OffsetDateTimeHandler Deals with values ofjava.time.OffsetDateTimewithout introducing a compile-time dependency (becauseOffsetDateTimeis only JDK 8 and higher).StructImpl.Factory Factory that can create a result set based on a list of values. -
Class Summary Class Description AbstractCursor Base class for implementing a cursor.AbstractCursor.AccessorImpl Implementation ofCursor.Accessor.AbstractCursor.ApproximateNumericAccessor Accessor of values that areDoubleor null.AbstractCursor.ArrayAccessor Accessor that assumes that the underlying value is an ARRAY; corresponds toTypes.ARRAY.AbstractCursor.BigDecimalAccessor Accessor that assumes that the underlying value is aBigDecimal; corresponds toTypes.DECIMAL.AbstractCursor.BigNumberAccessor Accessor of exact numeric values.AbstractCursor.BinaryAccessor Accessor that assumes that the underlying value is an array ofByteStringvalues; corresponds toTypes.BINARYandTypes.VARBINARY.AbstractCursor.BinaryFromStringAccessor Accessor that assumes that the underlying value is aString, encodingTypes.BINARYandTypes.VARBINARYvalues in Base64 format.AbstractCursor.BooleanAccessor Accessor that assumes that the underlying value is aBoolean; corresponds toTypes.BOOLEAN.AbstractCursor.ByteAccessor Accessor that assumes that the underlying value is aByte; corresponds toTypes.TINYINT.AbstractCursor.DateAccessor Accessor that assumes that the underlying value is a DATE, represented as a java.sql.Date; corresponds toTypes.DATE.AbstractCursor.DateFromNumberAccessor Accessor that assumes that the underlying value is a DATE, in its default representationint; corresponds toTypes.DATE.AbstractCursor.DoubleAccessor Accessor that assumes that the underlying value is aDouble; corresponds toTypes.DOUBLE.AbstractCursor.ExactNumericAccessor Accessor of exact numeric values.AbstractCursor.FixedStringAccessor Accessor that assumes that the underlying value is aString; corresponds toTypes.CHAR.AbstractCursor.FloatAccessor Accessor that assumes that the underlying value is aFloat; corresponds toTypes.FLOAT.AbstractCursor.IntAccessor Accessor that assumes that the underlying value is anInteger; corresponds toTypes.INTEGER.AbstractCursor.IntervalDayTimeAccessor Accessor that assumes that the underlying value is along; corresponds toTypes.OTHER.AbstractCursor.IntervalYearMonthAccessor Accessor that assumes that the underlying value is aint; corresponds toTypes.OTHER.AbstractCursor.LongAccessor Accessor that assumes that the underlying value is aLong; corresponds toTypes.BIGINT.AbstractCursor.NumberAccessor Accessor that assumes that the underlying value is aNumber; corresponds toTypes.NUMERIC.AbstractCursor.ObjectAccessor Accessor that assumes that the underlying value is an OBJECT; corresponds toTypes.JAVA_OBJECT.AbstractCursor.ShortAccessor Accessor that assumes that the underlying value is aShort; corresponds toTypes.SMALLINT.AbstractCursor.StringAccessor Accessor that assumes that the underlying value is aString; corresponds toTypes.CHARandTypes.VARCHAR.AbstractCursor.StringFromCharAccessor Accessor that assumes that the underlying value is aString; corresponds toTypes.CHAR.AbstractCursor.StructAccessor Accessor that assumes that the underlying value is a STRUCT; corresponds toTypes.STRUCT.AbstractCursor.TimeAccessor Accessor that assumes that the underlying value is a TIME, represented as a java.sql.Time; corresponds toTypes.TIME.AbstractCursor.TimeFromNumberAccessor Accessor that assumes that the underlying value is a Time, in its default representationint; corresponds toTypes.TIME.AbstractCursor.TimestampAccessor Accessor that assumes that the underlying value is a TIMESTAMP, represented as a java.sql.Timestamp; corresponds toTypes.TIMESTAMP.AbstractCursor.TimestampFromNumberAccessor Accessor that assumes that the underlying value is a TIMESTAMP, in its default representationlong; corresponds toTypes.TIMESTAMP.AbstractCursor.TimestampFromUtilDateAccessor Accessor that assumes that the underlying value is a TIMESTAMP, represented as a java.util.Date; corresponds toTypes.TIMESTAMP.ArrayFactoryImpl Implementation ofArrayImpl.Factory.ArrayImpl Implementation of JDBCArray.ArrayIteratorCursor Base64 Encodes and decodes to and from Base64 notation.Base64.InputStream ABase64.InputStreamwill read data from anotherjava.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.Base64.OutputStream ABase64.OutputStreamwill write data to anotherjava.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.ByteString Collection of bytes.DateTimeUtils Utility functions for datetime types: date, time, timestamp.DateTimeUtils.NoopOffsetDateTimeHandler Implementation ofOffsetDateTimeHandlerfor environments where no instances are possible.DateTimeUtils.PrecisionTime DateTimeUtils.ReflectiveOffsetDateTimeHandler Implementation ofOffsetDateTimeHandlerfor environments where no instances are possible.FilteredConstants A class which, at build time, will have build-specific variables substituted into it.IteratorCursor<E> Implementation ofCursoron top of anIteratorthat returns a record for each row.ListIteratorCursor MapIteratorCursor PositionedCursor<T> Abstract implementation ofCursorthat caches its current row.RecordIteratorCursor<E> Implementation ofCursoron top of anIteratorthat returns a record for each row.Spacer Efficiently writes strings of spaces.Spaces Utilities for creating strings of spaces.Spaces.SpaceList List whoseith entry is a string consisting ofispaces.Spaces.SpaceString A string of spaces.StructImpl Implementation of JDBCStruct.TimeUnitRange.Pair<E> Immutable pair of values of the same type.Unsafe Contains methods that call JDK methods that the forbidden APIs checker does not approve of.UnsynchronizedBuffer A utility class for reading and writing bytes to byte buffers without synchronization. -
Enum Summary Enum Description Casing Policy for converting case of identifiers before storing them.IteratorCursor.Position Are we positioned on a valid row?Quoting Syntax for quoting identifiers in SQL statements.TimeUnit Enumeration of time units used to construct an interval.TimeUnitRange A range of time units. -
Annotation Types Summary Annotation Type Description PackageMarker This is a dummy annotation that forces javac to produce output for otherwise empty package-info.java.