Skip to content

Commit

Permalink
apache#21 [euphoria-core] Code/Javadoc style
Browse files Browse the repository at this point in the history
  • Loading branch information
Novotnik, Petr authored and David Moravek committed May 15, 2018
1 parent 11d7f17 commit 6f595c4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@
import java.util.concurrent.CompletableFuture;

/**
* Interface for any executor.
* The client side, public, technology independent interface to an executor.
*/
public interface Executor {

/**
* Execution (job) result.
*/
class Result {}

/**
* Submit flow as a job. Asynchronous operation.
* @param flow {@link Flow} to be submitted
Expand All @@ -44,19 +49,14 @@ public interface Executor {
void shutdown();

/**
* Operators that are considered to be basic and each executor has to
* implement them.
* Operators that are considered to be basic and expected to be natively
* supported by each executor implementation.
*
* @return set of basic operators
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
static Set<Class<? extends Operator<?, ?>>> getBasicOps() {
return (Set) Sets.newHashSet(
FlatMap.class, Repartition.class, ReduceStateByKey.class, Union.class);
}

/**
* Execution (job) result. Should contain aggregators, etc.
*/
public static class Result {
}
}

0 comments on commit 6f595c4

Please sign in to comment.