com.vertica.sdk.VerticaType Class Reference
Collaboration diagram for com.vertica.sdk.VerticaType:
| Public Member Functions | |
|---|---|
| int | getIntervalPrecision () |
| For INTERVAL data types, returns the precision. | |
| int | getIntervalRange () |
| For INTERVAL data types, returns the range. | |
| int | getMaxSize () |
| int | getNumericFractional () |
| int | getNumericIntegral () |
| int | getNumericLength () |
| For NUMERIC data types, returns the number of bytes required to store an element. Calling this with a non-numeric data type can cause a crash. | |
| int | getNumericPrecision () |
| int | getNumericScale () |
| int | getNumericWordCount () |
| String | getPrettyPrintStr () |
| int | getStringLength () |
| For VARCHAR/CHAR/VARBINARY/BINARY data types, returns the length of the string. | |
| int | getTimestampPrecision () |
| For TIMESTAMP data types, returns the precision. | |
| boolean | isBinary () |
| boolean | isBool () |
| boolean | isChar () |
| boolean | isDate () |
| boolean | isFloat () |
| boolean | isInt () |
| boolean | isLongVarbinary () |
| boolean | isLongVarchar () |
| boolean | isNumeric () |
| boolean | isStringType () |
| Return true for VARCHAR/CHAR/VARBINARY/BINARY data types. | |
| boolean | isTimestamp () |
| boolean | isVarbinary () |
| boolean | isVarchar () |
| void | setIntervalPrecision (int precision) |
| For INTERVAL data types, sets the precision. | |
| void | setIntervalRange (int range) |
| For INTERVAL data types, sets the range. | |
| void | setNumericPrecision (int precision) |
| For NUMERIC data types, sets the precision. | |
| void | setNumericScale (int scale) |
| For NUMERIC data types, sets the scale. | |
| void | setTimestampPrecision (int precision) |
| For TIMESTAMP data types, sets the precision. | |
| String | toString () |
Detailed Description
Represents types of data that are passed into and returned back from user's code
Member Function Documentation
int com.vertica.sdk.VerticaType.getMaxSize()
Returns The maximum size, in bytes, of a data element of this type.
boolean com.vertica.sdk.VerticaType.isBinary()
Returns true if this type is BINARY, false otherwise.
boolean com.vertica.sdk.VerticaType.isBool()
Returns true if this type is BOOLEAN, false otherwise.
boolean com.vertica.sdk.VerticaType.isChar()
Returns true if this type is CHAR, false otherwise.
Referenced by com.vertica.sdk.NoopTypeCoercion.asCharBytes().
boolean com.vertica.sdk.VerticaType.isDate()
Returns true if this type is DATE, false otherwise.
boolean com.vertica.sdk.VerticaType.isFloat()
Returns true if this type is FLOAT, false otherwise.
boolean com.vertica.sdk.VerticaType.isInt()
Returns true if this type is INTEGER, false otherwise.
boolean com.vertica.sdk.VerticaType.isLongVarbinary()
Returns true if this type is LONGVARBINARY, false otherwise.
boolean com.vertica.sdk.VerticaType.isLongVarchar()
Returns true if this type is LONGVARCHAR, false otherwise.
boolean com.vertica.sdk.VerticaType.isNumeric()
Returns true if this type is NUMERIC, false otherwise.
boolean com.vertica.sdk.VerticaType.isTimestamp()
Returns true if this type is TIMESTAMP, false otherwise.
boolean com.vertica.sdk.VerticaType.isVarbinary()
Returns true if this type is VARBINARY, false otherwise.
boolean com.vertica.sdk.VerticaType.isVarchar()
Returns true if this type is VARCHAR, false otherwise.