Class MockCatalogReader.DelegateStructType

  • All Implemented Interfaces:
    org.apache.calcite.rel.type.RelDataType
    Enclosing class:
    MockCatalogReader

    private static class MockCatalogReader.DelegateStructType
    extends java.lang.Object
    implements org.apache.calcite.rel.type.RelDataType
    Struct type based on another struct type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.calcite.rel.type.RelDataType delegate  
      private org.apache.calcite.rel.type.StructKind structKind  
      • Fields inherited from interface org.apache.calcite.rel.type.RelDataType

        PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
    • Constructor Summary

      Constructors 
      Constructor Description
      DelegateStructType​(org.apache.calcite.rel.type.RelDataType delegate, org.apache.calcite.rel.type.StructKind structKind)  
    • Field Detail

      • delegate

        private org.apache.calcite.rel.type.RelDataType delegate
      • structKind

        private org.apache.calcite.rel.type.StructKind structKind
    • Constructor Detail

      • DelegateStructType

        DelegateStructType​(org.apache.calcite.rel.type.RelDataType delegate,
                           org.apache.calcite.rel.type.StructKind structKind)
    • Method Detail

      • isStruct

        public boolean isStruct()
        Specified by:
        isStruct in interface org.apache.calcite.rel.type.RelDataType
      • isDynamicStruct

        public boolean isDynamicStruct()
        Specified by:
        isDynamicStruct in interface org.apache.calcite.rel.type.RelDataType
      • getFieldList

        public java.util.List<org.apache.calcite.rel.type.RelDataTypeField> getFieldList()
        Specified by:
        getFieldList in interface org.apache.calcite.rel.type.RelDataType
      • getFieldNames

        public java.util.List<java.lang.String> getFieldNames()
        Specified by:
        getFieldNames in interface org.apache.calcite.rel.type.RelDataType
      • getFieldCount

        public int getFieldCount()
        Specified by:
        getFieldCount in interface org.apache.calcite.rel.type.RelDataType
      • getStructKind

        public org.apache.calcite.rel.type.StructKind getStructKind()
        Specified by:
        getStructKind in interface org.apache.calcite.rel.type.RelDataType
      • getField

        public org.apache.calcite.rel.type.RelDataTypeField getField​(java.lang.String fieldName,
                                                                     boolean caseSensitive,
                                                                     boolean elideRecord)
        Specified by:
        getField in interface org.apache.calcite.rel.type.RelDataType
      • isNullable

        public boolean isNullable()
        Specified by:
        isNullable in interface org.apache.calcite.rel.type.RelDataType
      • getComponentType

        public org.apache.calcite.rel.type.RelDataType getComponentType()
        Specified by:
        getComponentType in interface org.apache.calcite.rel.type.RelDataType
      • getKeyType

        public org.apache.calcite.rel.type.RelDataType getKeyType()
        Specified by:
        getKeyType in interface org.apache.calcite.rel.type.RelDataType
      • getValueType

        public org.apache.calcite.rel.type.RelDataType getValueType()
        Specified by:
        getValueType in interface org.apache.calcite.rel.type.RelDataType
      • getCharset

        public java.nio.charset.Charset getCharset()
        Specified by:
        getCharset in interface org.apache.calcite.rel.type.RelDataType
      • getCollation

        public org.apache.calcite.sql.SqlCollation getCollation()
        Specified by:
        getCollation in interface org.apache.calcite.rel.type.RelDataType
      • getIntervalQualifier

        public org.apache.calcite.sql.SqlIntervalQualifier getIntervalQualifier()
        Specified by:
        getIntervalQualifier in interface org.apache.calcite.rel.type.RelDataType
      • getPrecision

        public int getPrecision()
        Specified by:
        getPrecision in interface org.apache.calcite.rel.type.RelDataType
      • getScale

        public int getScale()
        Specified by:
        getScale in interface org.apache.calcite.rel.type.RelDataType
      • getSqlTypeName

        public org.apache.calcite.sql.type.SqlTypeName getSqlTypeName()
        Specified by:
        getSqlTypeName in interface org.apache.calcite.rel.type.RelDataType
      • getSqlIdentifier

        public org.apache.calcite.sql.SqlIdentifier getSqlIdentifier()
        Specified by:
        getSqlIdentifier in interface org.apache.calcite.rel.type.RelDataType
      • getFullTypeString

        public java.lang.String getFullTypeString()
        Specified by:
        getFullTypeString in interface org.apache.calcite.rel.type.RelDataType
      • getFamily

        public org.apache.calcite.rel.type.RelDataTypeFamily getFamily()
        Specified by:
        getFamily in interface org.apache.calcite.rel.type.RelDataType
      • getPrecedenceList

        public org.apache.calcite.rel.type.RelDataTypePrecedenceList getPrecedenceList()
        Specified by:
        getPrecedenceList in interface org.apache.calcite.rel.type.RelDataType
      • getComparability

        public org.apache.calcite.rel.type.RelDataTypeComparability getComparability()
        Specified by:
        getComparability in interface org.apache.calcite.rel.type.RelDataType