Classes | |
| class | AggregateFunction |
| class | AggregateFunctionFactory |
| class | AnalyticFunction |
| class | AnalyticFunctionFactory |
| class | AnalyticPartitionReader |
| class | AnalyticPartitionWriter |
| class | BasePartitionWriterColumn |
| struct | BlockFormatter |
| struct | BlockFormatterCout |
| class | BlockReader |
| Iterator interface for reading rows in a Vertica block. More... | |
| class | BlockWriter |
| Iterator interface for writing rows to a Vertica block. More... | |
| class | ColumnTypes |
| Represents (unsized) types of the columns used as input/output of a User Defined Function/Transform Function. More... | |
| struct | DataBuffer |
| class | DefaultSourceIterator |
| class | FilterFactory |
| union | FIunion |
| class | IntermediateAggs |
| : A wrapper around a single intermediate aggregate value More... | |
| class | IterativeSourceFactory |
| struct | LibraryRegistrar |
| class | MultiPhaseTransformFunctionFactory |
| class | MultipleIntermediateAggs |
| : A wrapper around multiple intermediate aggregates More... | |
| class | NodeSpecifyingPlanContext |
| class | ParamReader |
| : A wrapper around Parameters that have a name->value correspondence More... | |
| class | ParamWriter |
| Iterator interface for writing rows to a Vertica block. More... | |
| class | ParserFactory |
| struct | PartitionOrderColumnInfo |
| Represents the partition by and order by column information for each phase in a multi-phase transform function. More... | |
| class | PartitionReader |
| class | PartitionWriter |
| class | PartitionWriterColumn |
| class | PartitionWriterColumns |
| class | PartitionWriterNumericColumn |
| class | PartitionWriterStringColumn |
| class | PerColumnParamReader |
| : A wrapper around a map from column to ParamReader. More... | |
| class | PlanContext |
| struct | Portion |
| struct | RejectedRecord |
| class | ScalarFunction |
| class | ScalarFunctionFactory |
| class | ServerInterface |
| class | SizedColumnTypes |
| Represents types and information to determine the size of the columns as input/output of a User Defined Function/Transform. More... | |
| class | SourceFactory |
| class | SourceIterator |
| class | StreamWriter |
| class | TransformFunction |
| class | TransformFunctionFactory |
| class | TransformFunctionPhase |
| class | UDChunker |
| class | UDFileOperator |
| class | UDFileSystem |
| class | UDFileSystemFactory |
| class | UDFilter |
| class | UDLFactory |
| class | UDParser |
| class | UDSource |
| class | UDXFactory |
| class | UDXObject |
| class | UDXObjectCancelable |
| struct | UDxRegistrar |
| class | UnsizedUDSource |
| class | ValueRangeReader |
| This class represents the value ranges of the arguments of a UDSF, one range per argument. More... | |
| class | ValueRangeWriter |
| This class represents the output value range of a UDSF. More... | |
| class | VerticaBlock |
| : Represents an in-memory block of tuples More... | |
| struct | VerticaBuildInfo |
| class | VerticaType |
| Represents types of data that are passed into and returned back from user's code. More... | |
| class | VerticaValueRange |
| This class represents value ranges used in analyzing the output of UDSFs. A range is expressed as a minimum/maximum value (inclusive) pair. More... | |
| class | VInterval |
| Representation of an Interval in Vertica. More... | |
| class | VIntervalYM |
| Representation of an IntervalYM in Vertica. An Interval can be broken up into years and months. More... | |
| class | VNumeric |
| Representation of NUMERIC, fixed point data types in Vertica. More... | |
| struct | VResources |
| class | VString |
| Representation of a String in Vertica. All character data is internally encoded as UTF-8 characters and is not NULL terminated. More... | |
| class | VTAllocator |
Typedefs | |
| typedef uint8 | byte |
| unsigned 8-bit integer | |
| typedef int64 | DateADT |
| typedef long double | ifloat |
| vertica 80-bit intermediate result | |
| typedef BlockReader | IndexedBlockReader |
| typedef BlockWriter | IndexedBlockWriter |
| typedef ScalarFunction | IndexListScalarFunction |
| typedef signed short | int16 |
| signed 16-bit integer | |
| typedef signed int | int32 |
| signed 32-bit integer | |
| typedef signed long long | int64 |
| signed 64-bit integer | |
| typedef signed char | int8 |
| 8-bit integer | |
| typedef int64 | Interval |
| typedef int64 | IntervalYM |
| typedef int64 | TimeADT |
| typedef int64 | Timestamp |
| typedef int64 | TimestampTz |
| typedef int64 | TimestampTz |
| Vertica timestamp data type. | |
| typedef int64 | TimeTzADT |
| typedef unsigned short | uint16 |
| unsigned 16-bit integer | |
| typedef unsigned int | uint32 |
| unsigned 32-bit integer | |
| typedef unsigned long long | uint64 |
| unsigned 64-bit integer | |
| typedef unsigned char | uint8 |
| unsigned 8-bit integer | |
| typedef uint8 | vbool |
| vertica 8-bit boolean (t,f,null) | |
| typedef double | vfloat |
| Represents Vertica 64-bit floating-point type for NULL checking use vfloatIsNull(), assignment to NULL use vfloat_null for NaN checking use vfloatIsNaN(), assignment to NaN use vfloat_NaN. | |
| typedef signed long long | vint |
| vertica 64-bit integer (not int64) | |
| typedef unsigned long long | vpos |
| 64-bit vertica position | |
| typedef uint32 | vsize |
| vertica 32-bit block size | |
| typedef int(*) | VT_ERRMSG (const char *fmt,...) |
| typedef void(*) | VT_THROW_EXCEPTION (int errcode, const std::string &message, const char *filename, int lineno) |
| typedef void(*) | VT_THROW_INTERNAL_EXCEPTION (int errcode, const std::string &message, const std::string &info, const char *filename, int lineno, const char *funcname) |
Enumerations | |
| enum | DTtype { RESERV = 0, MONTH = 1, YEAR = 2, DAY = 3, NEG_INTERVAL = 4, TZ = 5, DTZ = 6, DTZMOD = 7, IGNORE_DTF = 8, AMPM = 9, HOUR = 10, MINUTE = 11, SECOND = 12, DOY = 13, DOW = 14, UNITS = 15, ADBC = 16, AGO = 17, ISODATE = 20, ISOTIME = 21, UNKNOWN_FIELD = 31 } |
| enum | InputState { OK = 0, END_OF_FILE = 1, END_OF_CHUNK = 2, START_OF_PORTION = 3, END_OF_PORTION = 4 } |
| enum | StreamState { INPUT_NEEDED = 0, OUTPUT_NEEDED = 1, DONE = 2, REJECT = 3, KEEP_GOING = 4, CHUNK_ALIGNED = 5 } |
| enum | strictness { DEFAULT_STRICTNESS, CALLED_ON_NULL_INPUT, RETURN_NULL_ON_NULL_INPUT, STRICT } |
| enum | UDXDebugLevels { UDXDebugging_WARNING = 0x0001, UDXDebugging_INFO = 0x0002, UDXDebugging_BASIC = 0x0008, UDXDebugging_ALL = 0xFFFF } |
| enum | VBool { VFalse = 0, VTrue = 1, VUnknown = 2 } |
| Enumeration for Boolean data values. | |
| enum | volatility { DEFAULT_VOLATILITY, VOLATILE, IMMUTABLE, STABLE } |
Functions | |
| DateADT | dateIn (const char *str, bool report_error) |
| DateADT | dateInFormatted (const char *str, const std::string format, bool report_error) |
| static void | describeIntervalTypeMod (char *result, int32 typemod) |
| void | dummy () |
| UserLibraryManifest * | get_library_manifest () |
| void | get_vertica_build_info (VerticaBuildInfo &vbi) |
| static DateADT | getDateFromUnixTime (time_t time) |
| static int64 | getGMTTz (TimeTzADT time) |
| static uint64 | getTime (TimeADT time) |
| static TimeADT | getTimeFromUnixTime (time_t time) |
| static Timestamp | getTimestampFromUnixTime (time_t time) |
| static TimestampTz | getTimestampTzFromUnixTime (time_t time) |
| static int64 | getTimeTz (TimeTzADT time) |
| Oid | getUDTypeOid (const char *typeName) |
| Oid | getUDTypeUnderlyingOid (Oid typeOid) |
| vint | getUDxDebugLogLevel () |
| static time_t | getUnixTimeFromDate (DateADT date) |
| static time_t | getUnixTimeFromTime (TimeADT t) |
| static time_t | getUnixTimeFromTimestamp (Timestamp timestamp) |
| static time_t | getUnixTimeFromTimestampTz (TimestampTz timestamp) |
| static int32 | getZoneTz (TimeTzADT time) |
| UserLibraryManifest & | GlobalLibraryManifest () |
| Interval | intervalIn (const char *str, int32 typmod, bool report_error) |
| bool | isUDType (Oid typeOid) |
| void | log (const char *format,...) __attribute__((format(printf |
| int | makeErrMsg (std::basic_ostream< char, std::char_traits< char > > &err_msg, const char *fmt,...) |
| static TimeADT | setTime (int64 time) |
| static TimeTzADT | setTimeTz (int64 time, int32 zone) |
| void | setup_global_function_pointers (VT_THROW_EXCEPTION throw_exception, VT_THROW_INTERNAL_EXCEPTION throw_internal_exception, VT_ERRMSG server_errmsg, ServerFunctions *fns) |
| TimeADT | timeIn (const char *str, int32 typmod, bool report_error) |
| TimeADT | timeInFormatted (const char *str, int32 typmod, const std::string format, bool report_error) |
| Timestamp | timestampIn (const char *str, int32 typmod, bool report_error) |
| Timestamp | timestampInFormatted (const char *str, int32 typmod, const std::string format, bool report_error) |
| TimestampTz | timestamptzIn (const char *str, int32 typmod, bool report_error) |
| TimestampTz | timestamptzInFormatted (const char *str, int32 typmod, const std::string format, bool report_error) |
| TimeTzADT | timetzIn (const char *str, int32 typmod, bool report_error) |
| TimeTzADT | timetzInFormatted (const char *str, int32 typmod, const std::string format, bool report_error) |
| bool | vfloatIsNaN (const vfloat f) |
| bool | vfloatIsNaN (const vfloat *f) |
| bool | vfloatIsNull (const vfloat vf) |
| bool | vfloatIsNull (const vfloat *vf) |
| void | vsmemclr (void *dst, size_t len) |
| void | vsmemcpy (void *dst, const void *src, size_t len) |
| bool | vsmemne (const void *p1, const void *p2, size_t len) |
| Version of memcmp for detecting not equal only. Inline function for comparing small things of arbitrary length. | |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4, typename T5> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) |
| template<typename TRET, typename T1, typename T2, typename T3, typename T4> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3, T4 arg4) |
| template<typename TRET, typename T1, typename T2, typename T3> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2, T3 arg3) |
| template<typename TRET, typename T1, typename T2> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1, T2 arg2) |
| template<typename TRET, typename T1> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator, T1 arg1) |
| template<typename TRET> | |
| TRET * | vt_createFuncObject (VTAllocator *allocator) |
Variables | |
| const byte | byte_null = 0xff |
| Indicates NULL byte. | |
| const char | char_null = 0xff |
| Indicates NULL char. | |
| const vbool | vbool_false = VFalse |
| Value for Boolean FALSE. | |
| const vbool | vbool_null = VUnknown |
| Value for Boolean NULL. | |
| const vbool | vbool_true = VTrue |
| Value for Boolean TRUE. | |
| ServerFunctions * | VERTICA_INTERNAL_fns = NULL |
| const vfloat | vfloat_null = vfn.vf |
| Vertica::FIunion | vfn |
| FIunion | vfNaN = { static_cast<vint>(0xFFF8000000000000LL) } |
| const vint | vint_null = 0x8000000000000000LL |
| Value for Integer NULLs. | |
| VT_ERRMSG | vt_server_errmsg |
| VT_ERRMSG | vt_server_errmsg = 0 |
| VT_THROW_EXCEPTION | vt_throw_exception |
| VT_THROW_EXCEPTION | vt_throw_exception = 0 |
| VT_THROW_INTERNAL_EXCEPTION | vt_throw_internal_exception |
| VT_THROW_INTERNAL_EXCEPTION | vt_throw_internal_exception = 0 |
| typedef int64 Vertica::DateADT |
The value in DateADT is the number of days
| typedef int64 Vertica::Interval |
Represents delta time.
The value in Interval is number of microseconds, which is limited to +/- 2^63-1 microseconds = 106751991 days 4 hours 54.775807 seconds or +/-9223372036854775807 months = 768614336404564650 years 7 months
Interval can be directly added/subtracted from Timestamp/TimestampTz to have a meaningful result
| typedef int64 Vertica::IntervalYM |
Represents delta time.
The value in IntervalYM is number of months
So Interval can be directly added/subtracted from Timestamp/TimestampTz to have a meaningful result, but IntervalYM cannot
| typedef int64 Vertica::TimeADT |
TimeADT represents time within a day
The value in TimeADT number of microseconds within 24 hours
| typedef int64 Vertica::Timestamp |
Represents absolute time and date.
The value in Timestamp is the number of microseconds since 2000-01-01 00:00:00 with no timezone implied
| typedef int64 Vertica::TimestampTz |
Represents absolute time and date with time zone.
The value in TimestampTz is the number of microseconds since 2000-01-01 00:00:00 GMT
| typedef int64 Vertica::TimeTzADT |
Represents time within a day in a timezone
The value in TimeADT consists of 2 parts:
1. The lower 24 bits (defined as ZoneFieldWidth) contains the timezone plus 24 hours, specified in seconds SQL-2008 limits the timezone itself to range between +/-14 hours
2. The rest of higher bits contains the time in GMT, value specified as number of microseconds within 24 hours
| enum Vertica::InputState |
InputState
Applies only to input streams; namely, UDFilter and UDParser.
OK Currently at the start of or in the middle of a stream.
END_OF_FILE Reached the end of the input stream. No further data is available. Returning a StreamState of INPUT_NEEDED at this point is invalid, as there is no more input.
END_OF_CHUNK Reached the end of an input chunk. Applies only to a parser and only when fed by a Chunker, it means the current data block ends on a record boundary. In this state a parser should consume all data in the block before returning from process.
START_OF_PORTION Used when a load stack is apportioned. This mode indicates input does not start at the beginning of a source. Typical response of a parser is to find the first end-of-record and return PORTION_START. Subsequent calls to process will use InputState = OK, until the end of the portion/source is reached.
END_OF_PORTION Used when a load stack is apportioned. This mode indicates the underlying source has reached the end of its allotted portion. The typical response from a parser is to finish the last record it started but proceed no farther.
| enum Vertica::StreamState |
StreamState
Indicates the state of a stream after process() has handled some input and some output data.
The different enum values have the following meanings:
INPUT_NEEDED Indicates that a stream is unable to continue without being given more input. It may not have consumed all of its available input yet. It does not need to have consumed every byte of input. Not valid for output-only streams, ie., UDSources.
OUTPUT_NEEDED Indicates that a stream is unable to write more output without being given a new or larger output buffer. Basically that it has "filled" the buffer as much as it is reasonably able to (which may be every byte full, some bytes full, even completely empty -- in which case Vertica assumes that the UDL needs a larger buffer). Not valid for input-only streams, ie., UDParsers.
DONE The stream has completed; it will not be writing any more output nor consuming any more input.
REJECT Only valid for UDParsers. Indicates that the last row the Parser consumed is invalid and should be processed as a rejected row.
KEEP_GOING Not commonly used. The stream has neither filled all of its output buffer nor consumed all of its input buffer, but would like to yield to the server. Typically it has neither consumed data nor produced data. This state should be used instead of a "wait" loop; a stream that is waiting for some external operation to complete should periodically return KEEP_GOING rather than simply blocking forever.
CHUNK_ALIGNED Used by UDChunker only. The chunker has found as many rows as possible in current block, and would like to hand off to parser a data block that is aligned with record boundary (input offset points to the start of the row after last row found in current block).
See the UDSource, UDFilter, and UDParser classes for how these streams are used.
Bit mast for communicatnig the available UDx debug logging levels.
| enum Vertica::volatility |
Enums to allow programmatic specification of volatility and strictness
| static void Vertica::describeIntervalTypeMod | ( | char * | result, | |
| int32 | typemod | |||
| ) | [inline, static] |
Format interval "<subtype>" where <subtype> often starts with a space Call with char buf[64] to hold the result.
| static DateADT Vertica::getDateFromUnixTime | ( | time_t | time | ) | [inline, static] |
Convert Unix time_t to Date
| static int64 Vertica::getGMTTz | ( | TimeTzADT | time | ) | [inline, static] |
Get the GMT time of the TimeTz value (in microseconds)
| static uint64 Vertica::getTime | ( | TimeADT | time | ) | [inline, static] |
Get the time from a Time value
| static TimeADT Vertica::getTimeFromUnixTime | ( | time_t | time | ) | [inline, static] |
Convert Unix time_t to Time
| static Timestamp Vertica::getTimestampFromUnixTime | ( | time_t | time | ) | [inline, static] |
Convert Unix time_t to Timestamp
| static TimestampTz Vertica::getTimestampTzFromUnixTime | ( | time_t | time | ) | [inline, static] |
Convert Unix time_t to TimestampTz
| static int64 Vertica::getTimeTz | ( | TimeTzADT | time | ) | [inline, static] |
Get the time at the timezone specified in TimeTz value itself (in microseconds)
| static time_t Vertica::getUnixTimeFromDate | ( | DateADT | date | ) | [inline, static] |
Convert Date to Unix Time
| static time_t Vertica::getUnixTimeFromTime | ( | TimeADT | t | ) | [inline, static] |
Convert Time to Unix Time
| static time_t Vertica::getUnixTimeFromTimestamp | ( | Timestamp | timestamp | ) | [inline, static] |
Convert Timestamp to Unix time_t value (which is number of seconds since the Unix epoch) The internal representation of Timestamps is number of microseconds since the Postgres epoch date. This will truncate the timestamp to number of seconds (instead of microseconds)
| static int32 Vertica::getZoneTz | ( | TimeTzADT | time | ) | [inline, static] |
Get timezone from a TimeTz value (in seconds) (seconds field should be 0)
| void Vertica::log | ( | const char * | format, | |
| ... | ||||
| ) |
Write a message to the vertica.log system log.
| format | a printf style format string specifying the log message format. |
| static TimeADT Vertica::setTime | ( | int64 | time | ) | [inline, static] |
Produce a Time value
| static TimeTzADT Vertica::setTimeTz | ( | int64 | time, | |
| int32 | zone | |||
| ) | [inline, static] |
Produce a TimeTz value from time (in microseconds) at a timezone (in seconds, seconds field does not need to be 0 as zoneinfo record all those historical change, and historical change may have hour/minute/seconds adjustment More information is at VER-26360 )
| void Vertica::vsmemcpy | ( | void * | dst, | |
| const void * | src, | |||
| size_t | len | |||
| ) | [inline] |
For internal use only.
Version of memcpy optimized for vertica's small data types. Inline function for copying small things of arbitrary length.