public void addProcedurePartitionInfoTo ( String procedureName , ProcedurePartitionData data ) throws VoltCompilerException { ProcedureDescriptor descriptor = m_procedureMap . get ( procedureName ) ; if ( descriptor == null ) { throw m_compiler . new VoltCompilerException ( String . format ( "Partition references an undefined procedure \"%s\"" , procedureName ) ) ; } // need to re-instantiate as descriptor fields are final if ( descriptor . m_stmtLiterals == null ) { // the longer form constructor asserts on singleStatement descriptor = m_compiler . new ProcedureDescriptor ( descriptor . m_authGroups , descriptor . m_class , data ) ; } else { descriptor = m_compiler . new ProcedureDescriptor ( descriptor . m_authGroups , descriptor . m_className , descriptor . m_stmtLiterals , descriptor . m_joinOrder , data , false , descriptor . m_class ) ; } m_procedureMap . put ( procedureName , descriptor ) ; }
Associates the given partition info to the given tracked procedure