Class UDTFPlan

  • All Implemented Interfaces:
    org.apache.iotdb.consensus.common.request.IConsensusRequest, UDFPlan
    Direct Known Subclasses:
    UDAFPlan

    public class UDTFPlan
    extends RawDataQueryPlan
    implements UDFPlan
    • Field Detail

      • datasetOutputIndexToResultColumnIndex

        protected final java.util.Map<java.lang.Integer,​java.lang.Integer> datasetOutputIndexToResultColumnIndex
      • pathNameToReaderIndex

        protected final java.util.Map<java.lang.String,​java.lang.Integer> pathNameToReaderIndex
    • Constructor Detail

      • UDTFPlan

        public UDTFPlan​(java.time.ZoneId zoneId)
    • Method Detail

      • deduplicate

        public void deduplicate​(PhysicalGenerator physicalGenerator)
                         throws org.apache.iotdb.commons.exception.MetadataException
        Overrides:
        deduplicate in class RawDataQueryPlan
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • getWideQueryHeaders

        public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getWideQueryHeaders​(java.util.List<java.lang.String> respColumns,
                                                                                                          java.util.List<java.lang.String> respSgColumns,
                                                                                                          boolean isJdbcQuery,
                                                                                                          java.util.BitSet aliasList)
        Overrides:
        getWideQueryHeaders in class QueryPlan
      • setDatasetOutputIndexToResultColumnIndex

        protected void setDatasetOutputIndexToResultColumnIndex​(int datasetOutputIndex,
                                                                java.lang.Integer originalIndex)
      • getAuthPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getAuthPaths()
        Description copied from class: PhysicalPlan
        Used to check whether a user has the permission to execute the plan with these paths.
        Overrides:
        getAuthPaths in class PhysicalPlan
      • constructUdfExecutors

        public void constructUdfExecutors​(java.util.List<ResultColumn> resultColumns)
        Description copied from interface: UDFPlan
        Build the execution plan of the executors. This method will not create any UDF instances, nor will it execute user-defined logic.
        Specified by:
        constructUdfExecutors in interface UDFPlan
      • finalizeUDFExecutors

        public void finalizeUDFExecutors​(long queryId)
        Description copied from interface: UDFPlan
        Call UDF finalization methods and release computing resources.
        Specified by:
        finalizeUDFExecutors in interface UDFPlan
      • getResultColumnByDatasetOutputIndex

        public ResultColumn getResultColumnByDatasetOutputIndex​(int datasetOutputIndex)
      • getReaderIndexByExpressionName

        public java.lang.Integer getReaderIndexByExpressionName​(java.lang.String expressionName)