/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if something goes wrong. */ @Override public Object[] getKeyTypes() throws Exception { return m_ResultProducer.getKeyTypes(); }
/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if something goes wrong. */ @Override public Object[] getKeyTypes() throws Exception { return m_ResultProducer.getKeyTypes(); }
/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if the key types could not be determined (perhaps because * of a problem from a nested sub-resultproducer) */ @Override public Object[] getKeyTypes() throws Exception { Object[] keyTypes = m_ResultProducer.getKeyTypes(); Object[] newKeyTypes = new Object[keyTypes.length + 1]; System.arraycopy(keyTypes, 0, newKeyTypes, 0, keyTypes.length); newKeyTypes[keyTypes.length] = ""; return newKeyTypes; }
/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if the key types could not be determined (perhaps because * of a problem from a nested sub-resultproducer) */ @Override public Object[] getKeyTypes() throws Exception { Object[] keyTypes = m_ResultProducer.getKeyTypes(); Object[] newKeyTypes = new Object[keyTypes.length + 1]; System.arraycopy(keyTypes, 0, newKeyTypes, 0, keyTypes.length); newKeyTypes[keyTypes.length] = ""; return newKeyTypes; }
/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if the key types could not be determined (perhaps because * of a problem from a nested sub-resultproducer) */ @Override public Object[] getKeyTypes() throws Exception { if (m_KeyIndex == -1) { throw new Exception("No key field called " + m_KeyFieldName + " produced by " + m_ResultProducer.getClass().getName()); } Object[] keyTypes = m_ResultProducer.getKeyTypes(); // Find and remove the key field that is being averaged over Object[] newKeyTypes = new String[keyTypes.length - 1]; System.arraycopy(keyTypes, 0, newKeyTypes, 0, m_KeyIndex); System.arraycopy(keyTypes, m_KeyIndex + 1, newKeyTypes, m_KeyIndex, keyTypes.length - m_KeyIndex - 1); return newKeyTypes; }
/** * Gets the data types of each of the columns produced for a single run. This * method should really be static. * * @return an array containing objects of the type of each column. The objects * should be Strings, or Doubles. * @throws Exception if the key types could not be determined (perhaps because * of a problem from a nested sub-resultproducer) */ @Override public Object[] getKeyTypes() throws Exception { if (m_KeyIndex == -1) { throw new Exception("No key field called " + m_KeyFieldName + " produced by " + m_ResultProducer.getClass().getName()); } Object[] keyTypes = m_ResultProducer.getKeyTypes(); // Find and remove the key field that is being averaged over Object[] newKeyTypes = new String[keyTypes.length - 1]; System.arraycopy(keyTypes, 0, newKeyTypes, 0, m_KeyIndex); System.arraycopy(keyTypes, m_KeyIndex + 1, newKeyTypes, m_KeyIndex, keyTypes.length - m_KeyIndex - 1); return newKeyTypes; }
Object[] keyTypes = m_RP.getKeyTypes(); Object[] resultTypes = m_RP.getResultTypes();
Object[] keyTypes = m_RP.getKeyTypes(); Object[] resultTypes = m_RP.getResultTypes();
Object[] types = rp.getKeyTypes(); if (names.length != types.length) { throw new Exception("key names types differ in length");
Object[] types = rp.getKeyTypes(); if (names.length != types.length) { throw new Exception("key names types differ in length");