Skip to content

Instantly share code, notes, and snippets.

@rtyler
Created May 20, 2019 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtyler/1984c7c9e62146b9a09aa82842523ea5 to your computer and use it in GitHub Desktop.
Save rtyler/1984c7c9e62146b9a09aa82842523ea5 to your computer and use it in GitHub Desktop.
/home/tyler/source/github/jruby-gradle/redspark/src/main/java/com/github/jrubygradle/redspark/App.java:10: error: reference to filter is ambiguous
long numAs = logData.filter(s -> s.contains("a")).count();
^
both method filter(Function1<T,Object>) in Dataset and method filter(FilterFunction<T>) in Dataset match
where T is a type-variable:
T extends Object declared in class Dataset
/home/tyler/source/github/jruby-gradle/redspark/src/main/java/com/github/jrubygradle/redspark/App.java:11: error: reference to filter is ambiguous
long numBs = logData.filter(s -> s.contains("b")).count();
^
both method filter(Function1<T,Object>) in Dataset and method filter(FilterFunction<T>) in Dataset match
where T is a type-variable:
T extends Object declared in class Dataset
2 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment