|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.reltype.RelDataTypeImpl org.eigenbase.reltype.RelCrossType
public class RelCrossType
Type of the cartesian product of two or more sets of records.
Its fields are those of its constituent records, but unlike a RelRecordType
, those fields' names are not necessarily distinct.
Field Summary | |
---|---|
RelDataType[] |
types
|
Fields inherited from class org.eigenbase.reltype.RelDataTypeImpl |
---|
digest, fieldList, fields |
Constructor Summary | |
---|---|
RelCrossType(RelDataType[] types,
RelDataTypeField[] fields)
Creates a cartesian product type. |
Method Summary | |
---|---|
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail)
Generates a string representation of this type. |
RelDataTypeField |
getField(String fieldName)
Looks up a field by name. |
int |
getFieldOrdinal(String fieldName)
Looks up the ordinal of a field by name. |
RelDataTypeField[] |
getFields()
Gets the fields in a struct type. |
RelDataType[] |
getTypes()
|
boolean |
isStruct()
Queries whether this is a structured type. |
Methods inherited from class org.eigenbase.reltype.RelDataTypeImpl |
---|
computeDigest, equals, getCharset, getCollation, getComparability, getComponentType, getFamily, getFieldCount, getFieldList, getFullTypeString, getIntervalQualifier, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, getSqlTypeName, hashCode, isNullable, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RelDataType[] types
Constructor Detail |
---|
public RelCrossType(RelDataType[] types, RelDataTypeField[] fields)
Method Detail |
---|
public boolean isStruct()
RelDataType
isStruct
in interface RelDataType
isStruct
in class RelDataTypeImpl
public RelDataTypeField getField(String fieldName)
RelDataType
getField
in interface RelDataType
getField
in class RelDataTypeImpl
fieldName
- name of field to find
public int getFieldOrdinal(String fieldName)
RelDataType
getFieldOrdinal
in interface RelDataType
getFieldOrdinal
in class RelDataTypeImpl
fieldName
- name of field to find
public RelDataTypeField[] getFields()
RelDataType
NOTE jvs 17-Dec-2004: this method will become deprecated once we move to Java generics, and eventually eliminated
getFields
in interface RelDataType
getFields
in class RelDataTypeImpl
public RelDataType[] getTypes()
protected void generateTypeString(StringBuilder sb, boolean withDetail)
RelDataTypeImpl
generateTypeString
in class RelDataTypeImpl
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;
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |