Java SDK Documentation  24.2.0
com.vertica.sdk.VerticaType Class Reference
Collaboration diagram for com.vertica.sdk.VerticaType:
Collaboration graph

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

◆ getMaxSize()

int com.vertica.sdk.VerticaType.getMaxSize ( )
Returns
The maximum size, in bytes, of a data element of this type.

Referenced by com.vertica.sdk.PartitionWriter.copyFromInput().

◆ isBinary()

boolean com.vertica.sdk.VerticaType.isBinary ( )
Returns
true if this type is BINARY, false otherwise.

Referenced by com.vertica.sdk.NoopTypeCoercion.asBinaryBytes().

◆ isBool()

boolean com.vertica.sdk.VerticaType.isBool ( )
Returns
true if this type is BOOLEAN, false otherwise.

◆ isChar()

boolean com.vertica.sdk.VerticaType.isChar ( )
Returns
true if this type is CHAR, false otherwise.

Referenced by com.vertica.sdk.NoopTypeCoercion.asCharBytes(), and com.vertica.sdk.StandardTypeCoercion.asCharBytes().

◆ isDate()

boolean com.vertica.sdk.VerticaType.isDate ( )
Returns
true if this type is DATE, false otherwise.

◆ isFloat()

boolean com.vertica.sdk.VerticaType.isFloat ( )
Returns
true if this type is FLOAT, false otherwise.

◆ isInt()

boolean com.vertica.sdk.VerticaType.isInt ( )
Returns
true if this type is INTEGER, false otherwise.

◆ isLongVarbinary()

boolean com.vertica.sdk.VerticaType.isLongVarbinary ( )
Returns
true if this type is LONGVARBINARY, false otherwise.

◆ isLongVarchar()

boolean com.vertica.sdk.VerticaType.isLongVarchar ( )
Returns
true if this type is LONGVARCHAR, false otherwise.

◆ isNumeric()

boolean com.vertica.sdk.VerticaType.isNumeric ( )
Returns
true if this type is NUMERIC, false otherwise.

◆ isTimestamp()

boolean com.vertica.sdk.VerticaType.isTimestamp ( )
Returns
true if this type is TIMESTAMP, false otherwise.

◆ isVarbinary()

boolean com.vertica.sdk.VerticaType.isVarbinary ( )
Returns
true if this type is VARBINARY, false otherwise.

◆ isVarchar()

boolean com.vertica.sdk.VerticaType.isVarchar ( )
Returns
true if this type is VARCHAR, false otherwise.