Class RestoreStatementBuilder.RestoreStatement

    • Field Detail

      • f_sCacheName

        protected final String f_sCacheName
        The cache name to be used in the CohQL "backup" command.
      • f_sFile

        protected final String f_sFile
        The file name to be used in the CohQL "backup" command.
    • Constructor Detail

      • RestoreStatement

        public RestoreStatement​(String sCacheName,
                                String sFile)
        Construct a RestoreStatement that restores a cache from a given file.
        Parameters:
        sCacheName - the name of the cache to restore
        sFile - the file to restore the cache from
    • Method Detail

      • execute

        public StatementResult execute​(ExecutionContext ctx)
        Description copied from interface: Statement
        Execute a CohQL query or command and return the relevant result.
        Parameters:
        ctx - the context to use
        Returns:
        a StatementResult containing the results of executing the statement
      • showPlan

        public void showPlan​(PrintWriter out)
        Description copied from interface: Statement
        Output to the provided PrintWriter a human readable trace of the actions that will be taken by this statement if or when executed.
        Parameters:
        out - the PrintWriter to write the trace to