Exemplo n.º 1
0
 @Override
 public DependencyPair executeSysProcPlanFragment(
     TransactionState txnState,
     Map<Integer, List<VoltTable>> dependencies,
     long fragmentId,
     ParameterSet params) {
   ProcedureRunner runner = m_loadedProcedures.getSysproc(fragmentId);
   return runner.executePlanFragment(txnState, dependencies, fragmentId, params);
 }
Exemplo n.º 2
0
  /** Update the catalog. If we're the MPI, don't bother with the EE. */
  public boolean updateCatalog(
      String diffCmds, CatalogContext context, CatalogSpecificPlanner csp, boolean isMPI) {
    m_context = context;
    m_loadedProcedures.loadProcedures(m_context, m_backend, csp);

    if (!isMPI) {
      // Necessary to quiesce before updating the catalog
      // so export data for the old generation is pushed to Java.
      m_ee.quiesce(m_lastCommittedTxnId);
      m_ee.updateCatalog(m_context.m_timestamp, diffCmds);
    }

    return true;
  }
Exemplo n.º 3
0
 @Override
 public ProcedureRunner getProcedureRunner(String procedureName) {
   return m_loadedProcedures.getProcByName(procedureName);
 }