Class PhysicalPlan

    • Field Detail

      • canBeSplit

        protected boolean canBeSplit
      • index

        protected long index
    • Constructor Detail

      • PhysicalPlan

        protected PhysicalPlan()
    • Method Detail

      • canBeSplit

        public boolean canBeSplit()
        whether the plan can be split into more than one Plans. Only used in the cluster mode.
      • getPaths

        public abstract java.util.List<? extends org.apache.iotdb.commons.path.PartialPath> getPaths()
      • setPaths

        public void setPaths​(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)
      • isQuery

        public boolean isQuery()
      • isSelectInto

        public boolean isSelectInto()
      • getOperatorName

        public java.lang.String getOperatorName()
      • getAggregations

        public java.util.List<java.lang.String> getAggregations()
      • setQuery

        public void setQuery​(boolean query)
      • isDebug

        public boolean isDebug()
      • setDebug

        public void setDebug​(boolean debug)
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Serialize the plan into the given buffer. All necessary fields will be serialized.
        Parameters:
        stream -
        Throws:
        java.io.IOException
      • serializeToByteBuffer

        public java.nio.ByteBuffer serializeToByteBuffer()
        Specified by:
        serializeToByteBuffer in interface org.apache.iotdb.consensus.common.request.IConsensusRequest
      • deserialize

        public void deserialize​(java.io.DataInputStream stream)
                         throws java.io.IOException,
                                org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        java.io.IOException
        org.apache.iotdb.commons.exception.IllegalPathException
      • serialize

        public final void serialize​(java.nio.ByteBuffer buffer)
        Serialize the plan into the given buffer. This is provided for WAL, so fields that can be recovered will not be serialized. If error occurs when serializing this plan, the buffer will be reset.
        Parameters:
        buffer -
      • serializeImpl

        protected void serializeImpl​(java.nio.ByteBuffer buffer)
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
                         throws org.apache.iotdb.commons.exception.IllegalPathException,
                                java.io.IOException
        Deserialize the plan from the given buffer.
        Parameters:
        buffer -
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
        java.io.IOException
      • putString

        protected void putString​(java.nio.ByteBuffer buffer,
                                 java.lang.String value)
      • putStrings

        protected void putStrings​(java.nio.ByteBuffer buffer,
                                  java.util.List<java.lang.String> values)
      • putString

        protected void putString​(java.io.DataOutputStream stream,
                                 java.lang.String value)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • putStrings

        protected void putStrings​(java.io.DataOutputStream stream,
                                  java.util.List<java.lang.String> values)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readString

        protected java.lang.String readString​(java.nio.ByteBuffer buffer)
      • readStrings

        protected java.util.List<java.lang.String> readStrings​(java.nio.ByteBuffer buffer,
                                                               int totalSize)
      • getLoginUserName

        public java.lang.String getLoginUserName()
      • setLoginUserName

        public void setLoginUserName​(java.lang.String loginUserName)
      • isAuthenticationRequired

        public boolean isAuthenticationRequired()
      • getAuthPaths

        public java.util.List<? extends org.apache.iotdb.commons.path.PartialPath> getAuthPaths()
        Used to check whether a user has the permission to execute the plan with these paths.
      • getIndex

        public long getIndex()
      • setIndex

        public void setIndex​(long index)
      • checkIntegrity

        public void checkIntegrity()
                            throws QueryProcessException
        Check the integrity of the plan in case that the plan is generated by a careless user through Session API.
        Throws:
        QueryProcessException - when the check fails
      • isPrefixMatch

        public boolean isPrefixMatch()
      • setPrefixMatch

        public void setPrefixMatch​(boolean prefixMatch)