Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1003 Bytes

File metadata and controls

32 lines (25 loc) · 1003 Bytes

lambda-runner

A simple command line tool for defining and running lambda pipelines in Java 8

Features:

  • Define a pipeline specifying method name and parameters, just like you would in a Java class
  • Only supports Streams of Strings - only supports Stream methods returning Stream and lambda return type must be String

Compiling:

Get dependencies:

Then compile.

Running:

java -cp (...) it.sorintlab.lambda.Main [ options ]

Options are like: - { arguments }

Supported methods are:

  • distinct()
  • filter(Predicate<String>)
  • flatMap(Function<String, Stream<String>>)
  • limit(long)
  • map(Function<String, String>)
  • peek(Consumer<String>)
  • skip(long)
  • sorted()
  • sorted(Comparator<String>)

Arguments have to be supplied just like you would in a standard invocation, enclosed in quotes as usual if necessary.