org.eigenbase.sql.type
Class MultisetSqlType
java.lang.Object
org.eigenbase.reltype.RelDataTypeImpl
org.eigenbase.sql.type.AbstractSqlType
org.eigenbase.sql.type.MultisetSqlType
- All Implemented Interfaces:
- Serializable, Cloneable, RelDataType, RelDataTypeFamily
public class MultisetSqlType
- extends AbstractSqlType
MultisetSqlType represents a standard SQL2003 multiset type.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/type/MultisetSqlType.java#14 $
- Author:
- Wael Chatila
- See Also:
- Serialized Form
Methods inherited from class org.eigenbase.reltype.RelDataTypeImpl |
computeDigest, equals, getCharset, getCollation, getComparability, getField, getFieldCount, getFieldList, getFieldOrdinal, getFields, getFullTypeString, getIntervalQualifier, getPrecision, getScale, getSqlIdentifier, hashCode, isStruct, toString |
elementType
private RelDataType elementType
MultisetSqlType
public MultisetSqlType(RelDataType elementType,
boolean isNullable)
- Constructs a new MultisetSqlType. This constructor should only be called
from a factory method.
- "Precondition:"
- null!=elementType
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;
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
getFamily
public RelDataTypeFamily getFamily()
- Description copied from interface:
RelDataType
- Gets a canonical object representing the family of this type. Two values
can be compared if and only if their types are in the same family.
- Specified by:
getFamily
in interface RelDataType
- Overrides:
getFamily
in class AbstractSqlType
- Returns:
- canonical object representing type family