protected Object[] mapToObjects( String type, QualifiedName name, List<FieldSignature> inputSignature, AnyValue[] input ) throws ProcedureException { // Verify that the number of passed arguments matches the number expected in the mthod signature if ( inputSignature.size() != input.length ) { throw new ProcedureException( Status.Procedure.ProcedureCallFailed, "%s `%s` takes %d arguments but %d was provided.", type, name, inputSignature.size(), input.length ); } Object[] args = new Object[input.length]; for ( int i = 0; i < input.length; i++ ) { args[i] = inputSignature.get( i ).map( input[i], mapper ); } return args; } }
input[indexToMap] = inputSignature.get( indexToMap ).map( input[indexToMap] );
input[indexToMap] = inputSignature.get( indexToMap ).map( input[indexToMap] );
protected Object[] mapToObjects( String type, QualifiedName name, List<FieldSignature> inputSignature, AnyValue[] input ) throws ProcedureException { // Verify that the number of passed arguments matches the number expected in the mthod signature if ( inputSignature.size() != input.length ) { throw new ProcedureException( Status.Procedure.ProcedureCallFailed, "%s `%s` takes %d arguments but %d was provided.", type, name, inputSignature.size(), input.length ); } Object[] args = new Object[input.length]; for ( int i = 0; i < input.length; i++ ) { args[i] = inputSignature.get( i ).map( input[i], mapper ); } return args; } }
input[indexToMap] = inputSignature.get( indexToMap ).map( input[indexToMap] );
input[indexToMap] = inputSignature.get( indexToMap ).map( input[indexToMap] );