org.eigenbase.oj
Class OJTypeFactoryImpl.OJScalarType
java.lang.Object
org.eigenbase.reltype.RelDataTypeImpl
org.eigenbase.oj.OJTypeFactoryImpl.OJScalarType
- All Implemented Interfaces:
- RelDataType, RelDataTypeFamily
- Enclosing class:
- OJTypeFactoryImpl
private class OJTypeFactoryImpl.OJScalarType
- extends RelDataTypeImpl
Type based upon an OJClass
.
Use this class only if the class is a 'pure' OJClass:
Methods inherited from class org.eigenbase.reltype.RelDataTypeImpl |
computeDigest, equals, getCharset, getCollation, getComparability, getFamily, getField, getFieldCount, getFieldList, getFieldOrdinal, getFields, getFullTypeString, getIntervalQualifier, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, getSqlTypeName, hashCode, isNullable, isStruct, toString |
ojClass
private final OJClass ojClass
OJTypeFactoryImpl.OJScalarType
OJTypeFactoryImpl.OJScalarType(OJClass ojClass)
- Creates an
OJScalarType
- Parameters:
ojClass
- Equivalent OJClass
- "Precondition:"
- ojClass != null, !OJSyntheticClass.isJoinClass(ojClass), !OJSyntheticClass.isProjectClass(ojClass)
getComponentType
public RelDataType getComponentType()
- Description copied from interface:
RelDataType
- Gets the component type if this type is a collection, otherwise null.
- Specified by:
getComponentType
in interface RelDataType
- Overrides:
getComponentType
in class RelDataTypeImpl
- Returns:
- canonical type descriptor for components
generateTypeString
protected void generateTypeString(StringBuilder sb,
boolean withDetail)
- Description copied from class:
RelDataTypeImpl
- Generates a string representation of this type.
- Specified by:
generateTypeString
in class RelDataTypeImpl
- Parameters:
sb
- StringBuffer into which to generate the stringwithDetail
- when true, all detail information needed to compute a
unique digest (and return from getFullTypeString) should be included;