/** * Get the structure of the result produced by this function. * * @return the structure of the result produced by this function. */ public Attribute getOutputDef() { return m_expression.getOutputDef(); }
/** * Get the structure of the result produced by this function. * * @return the structure of the result produced by this function. */ public Attribute getOutputDef() { return m_expression.getOutputDef(); }
/** * Get this derived field as an Attribute. * * @return an Attribute for this derived field. */ @Override public Attribute getFieldAsAttribute() { return m_expression.getOutputDef().copy(m_fieldName); }
/** * Get this derived field as an Attribute. * * @return an Attribute for this derived field. */ @Override public Attribute getFieldAsAttribute() { return m_expression.getOutputDef().copy(m_fieldName); }
private void updateDefsForArgumentsAndFunction() throws Exception { for (int i = 0; i < m_arguments.size(); i++) { m_arguments.get(i).setFieldDefs(m_fieldDefs); } // set the parameter defs for the function here so that we can determine // the structure of the output we produce ArrayList<Attribute> functionFieldDefs = new ArrayList<Attribute>(m_arguments.size()); for (int i = 0; i < m_arguments.size(); i++) { functionFieldDefs.add(m_arguments.get(i).getOutputDef()); } m_function.setParameterDefs(functionFieldDefs); m_outputStructure = m_function.getOutputDef(); }
private void updateDefsForArgumentsAndFunction() throws Exception { for (int i = 0; i < m_arguments.size(); i++) { m_arguments.get(i).setFieldDefs(m_fieldDefs); } // set the parameter defs for the function here so that we can determine // the structure of the output we produce ArrayList<Attribute> functionFieldDefs = new ArrayList<Attribute>(m_arguments.size()); for (int i = 0; i < m_arguments.size(); i++) { functionFieldDefs.add(m_arguments.get(i).getOutputDef()); } m_function.setParameterDefs(functionFieldDefs); m_outputStructure = m_function.getOutputDef(); }