Interface IDataNodeRPCService.Iface

    • Method Detail

      • sendFragmentInstance

        TSendFragmentInstanceResp sendFragmentInstance​(TSendFragmentInstanceReq req)
                                                throws org.apache.thrift.TException
        dispatch FragmentInstance to remote node for query request
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • sendBatchPlanNode

        TSendBatchPlanNodeResp sendBatchPlanNode​(TSendBatchPlanNodeReq req)
                                          throws org.apache.thrift.TException
        dispatch PlanNodes in batches to remote node for write request in order to save resource
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • cancelQuery

        TCancelResp cancelQuery​(TCancelQueryReq req)
                         throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • sendTsFilePieceNode

        TLoadResp sendTsFilePieceNode​(TTsFilePieceReq req)
                               throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • sendLoadCommand

        TLoadResp sendLoadCommand​(TLoadCommandReq req)
                           throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • createSchemaRegion

        TSStatus createSchemaRegion​(TCreateSchemaRegionReq req)
                             throws org.apache.thrift.TException
        Config node will create a schema region on a list of data nodes.
        Parameters:
        data - nodes of the schema region, and schema region id generated by config node
        req -
        Throws:
        org.apache.thrift.TException
      • createDataRegion

        TSStatus createDataRegion​(TCreateDataRegionReq req)
                           throws org.apache.thrift.TException
        Config node will create a data region on a list of data nodes.
        Parameters:
        data - nodes of the data region, and data region id generated by config node
        req -
        Throws:
        org.apache.thrift.TException
      • invalidatePartitionCache

        TSStatus invalidatePartitionCache​(TInvalidateCacheReq req)
                                   throws org.apache.thrift.TException
        Config node will invalidate Partition Info cache.
        Parameters:
        bool - :isStorageGroup, string:fullPath
        req -
        Throws:
        org.apache.thrift.TException
      • invalidateSchemaCache

        TSStatus invalidateSchemaCache​(TInvalidateCacheReq req)
                                throws org.apache.thrift.TException
        Config node will invalidate Schema Info cache.
        Parameters:
        bool - :isStorageGroup, string:fullPath
        req -
        Throws:
        org.apache.thrift.TException
      • deleteRegion

        TSStatus deleteRegion​(TConsensusGroupId consensusGroupId)
                       throws org.apache.thrift.TException
        Config node will delete a data/schema region of a certain storageGroup.
        Parameters:
        data - nodes of the data region, and data region id generated by config node
        consensusGroupId -
        Throws:
        org.apache.thrift.TException
      • changeRegionLeader

        TSStatus changeRegionLeader​(TRegionLeaderChangeReq req)
                             throws org.apache.thrift.TException
        Change the leader of specified RegionGroup to another DataNode
        Parameters:
        The - specified RegionGroup and the new leader DataNode
        req -
        Throws:
        org.apache.thrift.TException
      • createNewRegionPeer

        TSStatus createNewRegionPeer​(TCreatePeerReq req)
                              throws org.apache.thrift.TException
        Create a new Region peer in the given DataNode for the specified RegionGroup
        Parameters:
        TCreatePeerReq - which contains RegionId and its colleagues' locations
        req -
        Throws:
        org.apache.thrift.TException
      • addRegionPeer

        TSStatus addRegionPeer​(TMaintainPeerReq req)
                        throws org.apache.thrift.TException
        Add a Region peer to the specified RegionGroup
        Parameters:
        TMaintainPeerReq - which contains RegionId and the DataNodeLocation that selected to perform the add peer process
        req -
        Throws:
        org.apache.thrift.TException
      • removeRegionPeer

        TSStatus removeRegionPeer​(TMaintainPeerReq req)
                           throws org.apache.thrift.TException
        Remove a Region peer from the specified RegionGroup
        Parameters:
        TMaintainPeerReq - which contains RegionId and the DataNodeLocation that selected to perform the remove peer process
        req -
        Throws:
        org.apache.thrift.TException
      • deleteOldRegionPeer

        TSStatus deleteOldRegionPeer​(TMaintainPeerReq req)
                              throws org.apache.thrift.TException
        Delete a Region peer in the given ConsensusGroup and all of its data on the specified DataNode
        Parameters:
        TMaintainPeerReq - which contains RegionId and the DataNodeLocation where the specified Region peer located
        req -
        Throws:
        org.apache.thrift.TException
      • disableDataNode

        TSStatus disableDataNode​(TDisableDataNodeReq req)
                          throws org.apache.thrift.TException
        Config node will disable the Data node, the Data node will not accept read/write request when disabled
        Parameters:
        data - node location
        req -
        Throws:
        org.apache.thrift.TException
      • stopDataNode

        TSStatus stopDataNode()
                       throws org.apache.thrift.TException
        Config node will stop the Data node.
        Throws:
        org.apache.thrift.TException
      • getDataNodeHeartBeat

        TDataNodeHeartbeatResp getDataNodeHeartBeat​(TDataNodeHeartbeatReq req)
                                             throws org.apache.thrift.TException
        ConfigNode will ask DataNode for heartbeat in every few seconds.
        Parameters:
        ConfigNode - will send the latest config_node_list and load balancing policies in TDataNodeHeartbeatReq
        req -
        Throws:
        org.apache.thrift.TException
      • updateRegionCache

        TSStatus updateRegionCache​(TRegionRouteReq req)
                            throws org.apache.thrift.TException
        ConfigNode will ask DataNode to update region cache
        Parameters:
        ConfigNode - will send timestamp and new regionRouteMap in TRegionRouteReq
        req -
        Throws:
        org.apache.thrift.TException
      • createFunction

        TSStatus createFunction​(TCreateFunctionInstanceReq req)
                         throws org.apache.thrift.TException
        Config node will create a function on a list of data nodes.
        Parameters:
        function - name, function class name, and executable uris
        req -
        Throws:
        org.apache.thrift.TException
      • dropFunction

        TSStatus dropFunction​(TDropFunctionInstanceReq req)
                       throws org.apache.thrift.TException
        Config node will drop a function on a list of data nodes.
        Parameters:
        function - name
        req -
        Throws:
        org.apache.thrift.TException
      • createTriggerInstance

        TSStatus createTriggerInstance​(TCreateTriggerInstanceReq req)
                                throws org.apache.thrift.TException
        Config node will create a trigger instance on data node.
        Parameters:
        TriggerInformation - , jar file.
        req -
        Throws:
        org.apache.thrift.TException
      • activeTriggerInstance

        TSStatus activeTriggerInstance​(TActiveTriggerInstanceReq req)
                                throws org.apache.thrift.TException
        Config node will active a trigger instance on data node.
        Parameters:
        trigger - name.
        req -
        Throws:
        org.apache.thrift.TException
      • inactiveTriggerInstance

        TSStatus inactiveTriggerInstance​(TInactiveTriggerInstanceReq req)
                                  throws org.apache.thrift.TException
        Config node will inactive a trigger instance on data node.
        Parameters:
        trigger - name.
        req -
        Throws:
        org.apache.thrift.TException
      • dropTriggerInstance

        TSStatus dropTriggerInstance​(TDropTriggerInstanceReq req)
                              throws org.apache.thrift.TException
        Config node will drop a trigger on all online config nodes and data nodes.
        Parameters:
        trigger - name, whether need to delete jar
        req -
        Throws:
        org.apache.thrift.TException
      • updateTriggerLocation

        TSStatus updateTriggerLocation​(TUpdateTriggerLocationReq req)
                                throws org.apache.thrift.TException
        Config node will renew DataNodeLocation of a stateful trigger.
        Parameters:
        trigger - name, new DataNodeLocation
        req -
        Throws:
        org.apache.thrift.TException
      • fireTrigger

        TFireTriggerResp fireTrigger​(TFireTriggerReq req)
                              throws org.apache.thrift.TException
        Fire a stateful trigger on current data node.
        Parameters:
        trigger - name, tablet and event
        req -
        Throws:
        org.apache.thrift.TException
      • invalidatePermissionCache

        TSStatus invalidatePermissionCache​(TInvalidatePermissionCacheReq req)
                                    throws org.apache.thrift.TException
        Config node will invalidate permission Info cache.
        Parameters:
        string - :username, list:roleList
        req -
        Throws:
        org.apache.thrift.TException
      • createPipePlugin

        TSStatus createPipePlugin​(TCreatePipePluginInstanceReq req)
                           throws org.apache.thrift.TException
        Config node will create a pipe plugin on a list of data nodes.
        Parameters:
        function - name, function class name, and executable uris
        req -
        Throws:
        org.apache.thrift.TException
      • dropPipePlugin

        TSStatus dropPipePlugin​(TDropPipePluginInstanceReq req)
                         throws org.apache.thrift.TException
        Config node will drop a pipe plugin on a list of data nodes.
        Parameters:
        function - name
        req -
        Throws:
        org.apache.thrift.TException
      • merge

        TSStatus merge()
                throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • flush

        TSStatus flush​(TFlushReq req)
                throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • settle

        TSStatus settle​(TSettleReq req)
                 throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • clearCache

        TSStatus clearCache()
                     throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • loadConfiguration

        TSStatus loadConfiguration()
                            throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • setSystemStatus

        TSStatus setSystemStatus​(String status)
                          throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • killQueryInstance

        TSStatus killQueryInstance​(String queryId)
                            throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • setTTL

        TSStatus setTTL​(TSetTTLReq req)
                 throws org.apache.thrift.TException
        Config node will Set the TTL for the database on a list of data nodes.
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • updateConfigNodeGroup

        TSStatus updateConfigNodeGroup​(TUpdateConfigNodeGroupReq req)
                                throws org.apache.thrift.TException
        configNode will notify all DataNodes when the capacity of the ConfigNodeGroup is expanded or reduced
        Parameters:
        list - configNodeLocations
        req -
        Throws:
        org.apache.thrift.TException
      • updateTemplate

        TSStatus updateTemplate​(TUpdateTemplateReq req)
                         throws org.apache.thrift.TException
        Update template cache when template info or template set info is updated
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • constructSchemaBlackList

        TSStatus constructSchemaBlackList​(TConstructSchemaBlackListReq req)
                                   throws org.apache.thrift.TException
        Construct schema black list in target schemaRegion to block R/W on matched timeseries
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • rollbackSchemaBlackList

        TSStatus rollbackSchemaBlackList​(TRollbackSchemaBlackListReq req)
                                  throws org.apache.thrift.TException
        Remove the schema black list to recover R/W on matched timeseries
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • invalidateMatchedSchemaCache

        TSStatus invalidateMatchedSchemaCache​(TInvalidateMatchedSchemaCacheReq req)
                                       throws org.apache.thrift.TException
        Config node will invalidate Schema Info cache, which matched by given pathPatternTree.
        Parameters:
        binary - : pathPatternTree
        req -
        Throws:
        org.apache.thrift.TException
      • fetchSchemaBlackList

        TFetchSchemaBlackListResp fetchSchemaBlackList​(TFetchSchemaBlackListReq req)
                                                throws org.apache.thrift.TException
        Config node will fetch the schema info in black list.
        Parameters:
        binary - : pathPatternTree
        req -
        Throws:
        org.apache.thrift.TException
      • deleteDataForDeleteSchema

        TSStatus deleteDataForDeleteSchema​(TDeleteDataForDeleteSchemaReq req)
                                    throws org.apache.thrift.TException
        Config node inform this dataNode to execute a distribution data deleion queryengine task
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • deleteTimeSeries

        TSStatus deleteTimeSeries​(TDeleteTimeSeriesReq req)
                           throws org.apache.thrift.TException
        Delete matched timeseries and remove according schema black list in target schemRegion
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • constructSchemaBlackListWithTemplate

        TSStatus constructSchemaBlackListWithTemplate​(TConstructSchemaBlackListWithTemplateReq req)
                                               throws org.apache.thrift.TException
        Construct schema black list in target schemaRegion to block R/W on matched timeseries represent by template
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • rollbackSchemaBlackListWithTemplate

        TSStatus rollbackSchemaBlackListWithTemplate​(TRollbackSchemaBlackListWithTemplateReq req)
                                              throws org.apache.thrift.TException
        Remove the schema black list to recover R/W on matched timeseries represent by template
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • deactivateTemplate

        TSStatus deactivateTemplate​(TDeactivateTemplateReq req)
                             throws org.apache.thrift.TException
        Deactivate template on device matched by input path pattern and remove according template schema black list in target schemRegion
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • deleteViewSchema

        TSStatus deleteViewSchema​(TDeleteViewSchemaReq req)
                           throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • alterView

        TSStatus alterView​(TAlterViewReq req)
                    throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • pushPipeMeta

        TPushPipeMetaResp pushPipeMeta​(TPushPipeMetaReq req)
                                throws org.apache.thrift.TException
        Send pipeMetas to DataNodes, for synchronization
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • pushSinglePipeMeta

        TPushPipeMetaResp pushSinglePipeMeta​(TPushSinglePipeMetaReq req)
                                      throws org.apache.thrift.TException
        Send one pipeMeta to DataNodes, for create/start/stop/drop one pipe
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • pipeHeartbeat

        TPipeHeartbeatResp pipeHeartbeat​(TPipeHeartbeatReq req)
                                  throws org.apache.thrift.TException
        ConfigNode will ask DataNode for pipe meta in every few seconds
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • executeCQ

        TSStatus executeCQ​(TExecuteCQ req)
                    throws org.apache.thrift.TException
        Execute CQ on DataNode
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • setSpaceQuota

        TSStatus setSpaceQuota​(TSetSpaceQuotaReq req)
                        throws org.apache.thrift.TException
        Set space quota
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException
      • setThrottleQuota

        TSStatus setThrottleQuota​(TSetThrottleQuotaReq req)
                           throws org.apache.thrift.TException
        Set throttle quota
        Parameters:
        req -
        Throws:
        org.apache.thrift.TException