/** * Set the value of KeyFieldName. * * @param newKeyFieldName Value to assign to KeyFieldName. */ public void setKeyFieldName(String newKeyFieldName) { m_KeyFieldName = newKeyFieldName; m_CountFieldName = "Num_" + m_KeyFieldName; findKeyIndex(); }
/** * Set the value of KeyFieldName. * * @param newKeyFieldName Value to assign to KeyFieldName. */ public void setKeyFieldName(String newKeyFieldName) { m_KeyFieldName = newKeyFieldName; m_CountFieldName = "Num_" + m_KeyFieldName; findKeyIndex(); }
/** * Set the ResultProducer. * * @param newResultProducer new ResultProducer to use. */ public void setResultProducer(ResultProducer newResultProducer) { m_ResultProducer = newResultProducer; m_ResultProducer.setResultListener(this); findKeyIndex(); }
/** * Set the ResultProducer. * * @param newResultProducer new ResultProducer to use. */ public void setResultProducer(ResultProducer newResultProducer) { m_ResultProducer = newResultProducer; m_ResultProducer.setResultListener(this); findKeyIndex(); }
/** * Prepare to generate results. The ResultProducer should call * preProcess(this) on the ResultListener it is to send results to. * * @throws Exception if an error occurs during preprocessing. */ @Override public void preProcess() throws Exception { if (m_ResultProducer == null) { throw new Exception("No ResultProducer set"); } // Tell the resultproducer to send results to us m_ResultProducer.setResultListener(this); findKeyIndex(); if (m_KeyIndex == -1) { throw new Exception("No key field called " + m_KeyFieldName + " produced by " + m_ResultProducer.getClass().getName()); } m_ResultProducer.preProcess(); }
/** * Prepare to generate results. The ResultProducer should call * preProcess(this) on the ResultListener it is to send results to. * * @throws Exception if an error occurs during preprocessing. */ @Override public void preProcess() throws Exception { if (m_ResultProducer == null) { throw new Exception("No ResultProducer set"); } // Tell the resultproducer to send results to us m_ResultProducer.setResultListener(this); findKeyIndex(); if (m_KeyIndex == -1) { throw new Exception("No key field called " + m_KeyFieldName + " produced by " + m_ResultProducer.getClass().getName()); } m_ResultProducer.preProcess(); }