Class CollectionDataType

    • Constructor Detail

      • CollectionDataType

        public CollectionDataType​(LogicalType logicalType,
                                  @Nullable
                                  Class<?> conversionClass,
                                  DataType elementDataType)
      • CollectionDataType

        public CollectionDataType​(LogicalType logicalType,
                                  DataType elementDataType)
    • Method Detail

      • getElementDataType

        public DataType getElementDataType()
      • notNull

        public DataType notNull()
        Description copied from interface: AbstractDataType
        Adds a hint that null values are not expected in the data for this type.
        Returns:
        a new, reconfigured data type instance
      • nullable

        public DataType nullable()
        Description copied from interface: AbstractDataType
        Adds a hint that null values are expected in the data for this type (default behavior).

        This method exists for explicit declaration of the default behavior or for invalidation of a previous call to AbstractDataType.notNull().

        Returns:
        a new, reconfigured data type instance
      • getChildren

        public List<DataType> getChildren()
        Description copied from class: DataType
        Returns the children of this data type, if any. Returns an empty list if this data type is atomic.
        Specified by:
        getChildren in class DataType
        Returns:
        the children data types