@Test void args() { when(arg1.args(scope)).thenReturn(Stream.of("foo", 123L)); OlapFunction<Integer> sut = new OlapFunction<>("bar", TypeToken.of(Integer.class), arg1); Object[] result = sut.args(scope).toArray(); assertThat(result, is(toArray("foo", 123L))); }
Stream<Object> args(Scope scope) { return Stream.concat( Stream.concat( Arrays.stream(arguments), partitionBy.stream().flatMap(Collection::stream) ).flatMap(e -> e.args(scope)), orderBy.stream().flatMap(Collection::stream).flatMap(o -> o.args(scope)) ); }
OlapFunction { Stream<Object> args(Scope scope) { return Stream.concat( Stream.concat( Arrays.stream(arguments), partitionBy.stream().flatMap(Collection::stream) ).flatMap(e -> e.args(scope)), orderBy.stream().flatMap(Collection::stream).flatMap(o -> o.args(scope)) ); } }
OlapFunction { Stream<Object> args(Scope scope) { return Stream.concat( Stream.concat( Arrays.stream(arguments), partitionBy.stream().flatMap(Collection::stream) ).flatMap(e -> e.args(scope)), orderBy.stream().flatMap(Collection::stream).flatMap(o -> o.args(scope)) ); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments); }
OlapFunction { Stream<Object> args(Scope scope) { return Stream.concat( Stream.concat( Arrays.stream(arguments), partitionBy.stream().flatMap(Collection::stream) ).flatMap(e -> e.args(scope)), orderBy.stream().flatMap(Collection::stream).flatMap(o -> o.args(scope)) ); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments);  }
OlapFunction { Stream<Object> args(Scope scope) { return Stream.concat( Stream.concat( Arrays.stream(arguments), partitionBy.stream().flatMap(Collection::stream) ).flatMap(e -> e.args(scope)), orderBy.stream().flatMap(Collection::stream).flatMap(o -> o.args(scope)) ); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments);   }