|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelDataType
RelDataType represents the type of a scalar expression or entire row returned from a relational expression.
This is a somewhat "fat" interface which unions the attributes of many different type classes into one. Inelegant, but since our type system was defined before the advent of Java generics, it avoids a lot of typecasting.
Method Summary | |
---|---|
Charset |
getCharset()
Gets this type's character set, or null if this type cannot carry a character set or has no character set defined. |
SqlCollation |
getCollation()
Gets this type's collation, or null if this type cannot carry a collation or has no collation defined. |
RelDataTypeComparability |
getComparability()
|
RelDataType |
getComponentType()
Gets the component type if this type is a collection, otherwise null. |
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type. |
RelDataTypeField |
getField(String fieldName)
Looks up a field by name. |
int |
getFieldCount()
Returns the number of fields in a struct type. |
List<RelDataTypeField> |
getFieldList()
Gets the fields in a struct type. |
int |
getFieldOrdinal(String fieldName)
Looks up the ordinal of a field by name. |
RelDataTypeField[] |
getFields()
Gets the fields in a struct type. |
String |
getFullTypeString()
Gets a string representation of this type with full detail such as character set and nullability. |
SqlIntervalQualifier |
getIntervalQualifier()
Gets this type's interval qualifier, or null if this is not an interval type. |
RelDataTypePrecedenceList |
getPrecedenceList()
|
int |
getPrecision()
Gets the JDBC-defined precision for values of this type. |
int |
getScale()
Gets the scale of this type. |
SqlIdentifier |
getSqlIdentifier()
Gets the SqlIdentifier associated with this type. |
SqlTypeName |
getSqlTypeName()
Gets the SqlTypeName of this type. |
boolean |
isNullable()
Queries whether this type allows null values. |
boolean |
isStruct()
Queries whether this is a structured type. |
String |
toString()
Gets a string representation of this type without detail such as character set and nullability. |
Method Detail |
---|
boolean isStruct()
List<RelDataTypeField> getFieldList()
RelDataTypeField[] getFields()
NOTE jvs 17-Dec-2004: this method will become deprecated once we move to Java generics, and eventually eliminated
int getFieldCount()
This method is equivalent to
.
getFieldList()
().size()
int getFieldOrdinal(String fieldName)
fieldName
- name of field to find
RelDataTypeField getField(String fieldName)
fieldName
- name of field to find
boolean isNullable()
RelDataType getComponentType()
Charset getCharset()
SqlCollation getCollation()
SqlIntervalQualifier getIntervalQualifier()
int getPrecision()
int getScale()
SqlTypeName getSqlTypeName()
SqlTypeName
of this type.
SqlIdentifier getSqlIdentifier()
SqlIdentifier
associated with this type. For a
predefined type, this is a simple identifier based on getSqlTypeName()
. For a user-defined type, this is a compound identifier
which uniquely names the type.
String toString()
toString
in class Object
String getFullTypeString()
RelDataTypeFamily getFamily()
RelDataTypePrecedenceList getPrecedenceList()
RelDataTypeComparability getComparability()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |