Package org.apache.calcite.piglet
Class DynamicTupleRecordType
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeImpl
org.apache.calcite.rel.type.DynamicRecordType
org.apache.calcite.rel.type.DynamicRecordTypeImpl
org.apache.calcite.piglet.DynamicTupleRecordType
- All Implemented Interfaces:
RelDataType
,RelDataTypeFamily
Represents Pig Tuples with unknown fields. The tuple field
can only be accessed via name '$index', like ('$0', '$1').
The tuple is then resized to match the index.
-
Field Summary
Fields inherited from class org.apache.calcite.rel.type.DynamicRecordType
DYNAMIC_STAR_PREFIX
Fields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIX
Fields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
-
Method Summary
Modifier and TypeMethodDescriptionLooks up a field by name.Methods inherited from class org.apache.calcite.rel.type.DynamicRecordTypeImpl
generateTypeString, getFamily, getFieldCount, getFieldList, getFieldNames, getPrecedenceList, getSqlTypeName, isStruct
Methods inherited from class org.apache.calcite.rel.type.DynamicRecordType
isDynamicStarColName, isDynamicStruct
Methods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
computeDigest, equals, extra, getCharset, getCollation, getComparability, getComponentType, getFieldMap, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getSqlIdentifier, getStructKind, getValueType, hashCode, isNullable, proto, proto, proto, proto, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.type.RelDataType
equalsSansFieldNames
-
Method Details
-
getField
Description copied from interface:RelDataType
Looks up a field by name.NOTE: Be careful choosing the value of
caseSensitive
:- If the field name was supplied by an end-user (e.g. as a column alias in SQL), use your session's case-sensitivity setting.
- Only hard-code
true
if you are sure that the field name is internally generated. - Hard-coding
false
is almost certainly wrong.
- Specified by:
getField
in interfaceRelDataType
- Overrides:
getField
in classDynamicRecordTypeImpl
- Parameters:
fieldName
- Name of field to findcaseSensitive
- Whether match is case-sensitiveelideRecord
- Whether to find fields nested within records- Returns:
- named field, or null if not found
-