Package | Description |
---|---|
org.apache.edgent.analytics.math3.json |
JSON analytics using Apache Commons Math.
|
org.apache.edgent.connectors.file |
File stream connector.
|
org.apache.edgent.connectors.http |
HTTP stream connector.
|
org.apache.edgent.connectors.mqtt |
MQTT (lightweight messaging protocol for small sensors and mobile devices) stream connector.
|
org.apache.edgent.function |
Functional interfaces for lambda expressions.
|
org.apache.edgent.oplet.core |
Core primitive oplets.
|
org.apache.edgent.oplet.plumbing |
Oplets that control the flow of tuples.
|
org.apache.edgent.oplet.window |
Oplets using windows.
|
org.apache.edgent.runtime.jobregistry | |
org.apache.edgent.samples.apps |
Support for some more complex Edgent application samples.
|
org.apache.edgent.topology |
Functional api to build a streaming topology.
|
org.apache.edgent.topology.plumbing |
Plumbing for a streaming topology.
|
org.apache.edgent.topology.spi.graph | |
org.apache.edgent.window |
Window API.
|
Modifier and Type | Method and Description |
---|---|
static <K extends com.google.gson.JsonElement> |
JsonAnalytics.aggregateList(java.lang.String resultPartitionProperty,
java.lang.String resultProperty,
ToDoubleFunction<com.google.gson.JsonObject> valueGetter,
JsonUnivariateAggregate... aggregates)
Create a Function that aggregates against a single
Numeric
variable contained in an JSON object. |
static <K extends com.google.gson.JsonElement> |
JsonAnalytics.mvAggregateList(java.lang.String resultPartitionKeyProperty,
java.lang.String resultProperty,
java.util.List<org.apache.commons.math3.util.Pair<java.lang.String,JsonUnivariateAggregate[]>> aggregateSpecs)
Create a Function that aggregates multiple
Numeric
variables contained in an JSON object. |
Modifier and Type | Method and Description |
---|---|
static TStream<java.lang.String> |
FileStreams.textFileReader(TStream<java.lang.String> pathnames,
Function<java.lang.String,java.lang.String> preFn,
BiFunction<java.lang.String,java.lang.Exception,java.lang.String> postFn)
Declare a stream containing the lines read from the files
whose pathnames correspond to each tuple on the
pathnames
stream. |
Modifier and Type | Method and Description |
---|---|
static <T> BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,T> |
HttpResponders.inputOn(java.lang.Integer... codes)
Return the input tuple on specified codes.
|
static <T> BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,T> |
HttpResponders.inputOn200()
Return the input tuple on OK.
|
static BiFunction<com.google.gson.JsonObject,org.apache.http.client.methods.CloseableHttpResponse,com.google.gson.JsonObject> |
HttpResponders.json()
A HTTP response handler for
application/json . |
Modifier and Type | Method and Description |
---|---|
static <T,R> TStream<R> |
HttpStreams.requests(TStream<T> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<T,java.lang.String> method,
Function<T,java.lang.String> uri,
BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,R> response)
Make an HTTP request for each tuple on a stream.
|
static <T,R> TStream<R> |
HttpStreams.requestsWithBody(TStream<T> stream,
Supplier<org.apache.http.impl.client.CloseableHttpClient> clientCreator,
Function<T,java.lang.String> method,
Function<T,java.lang.String> uri,
Function<T,org.apache.http.HttpEntity> body,
BiFunction<T,org.apache.http.client.methods.CloseableHttpResponse,R> response)
Make an HTTP request with body for each tuple.
|
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
MqttStreams.subscribe(java.lang.String topicFilter,
int qos,
BiFunction<java.lang.String,byte[],T> message2Tuple)
Subscribe to the MQTT topic(s) and create a stream of tuples of type
T . |
Modifier and Type | Method and Description |
---|---|
static <T,U,R> BiFunction<T,U,R> |
Functions.synchronizedBiFunction(BiFunction<T,U,R> function)
Return a thread-safe version of a
BiFunction function. |
Modifier and Type | Method and Description |
---|---|
static <T,U,R> BiFunction<T,U,R> |
Functions.synchronizedBiFunction(BiFunction<T,U,R> function)
Return a thread-safe version of a
BiFunction function. |
Modifier and Type | Method and Description |
---|---|
protected void |
FanIn.setReceiver(BiFunction<T,java.lang.Integer,U> receiver)
Set the receiver function.
|
Constructor and Description |
---|
FanIn(BiFunction<T,java.lang.Integer,U> receiver) |
Modifier and Type | Method and Description |
---|---|
protected BiFunction<T,java.lang.Integer,java.util.List<T>> |
Barrier.receiver() |
Constructor and Description |
---|
Aggregate(Window<T,K,? extends java.util.List<T>> window,
BiFunction<java.util.List<T>,K,U> aggregator) |
Modifier and Type | Method and Description |
---|---|
static <T> TStream<T> |
JobEvents.source(Topology topology,
BiFunction<JobRegistryService.EventType,Job,T> wrapper)
Declares a stream populated by
JobRegistryService events. |
Modifier and Type | Method and Description |
---|---|
static BiFunction<java.util.List<com.google.gson.JsonObject>,java.lang.String,com.google.gson.JsonObject> |
JsonTuples.statistics(Statistic... statistics)
Create a function that computes the specified statistics on the list of
samples and returns a new sample containing the result.
|
Modifier and Type | Method and Description |
---|---|
<U> TStream<U> |
TWindow.aggregate(BiFunction<java.util.List<T>,K,U> aggregator)
Declares a stream that is a continuous, sliding, aggregation of
partitions in this window.
|
<U> TStream<U> |
TWindow.batch(BiFunction<java.util.List<T>,K,U> batcher)
Declares a stream that represents a batched aggregation of
partitions in this window.
|
<J,U,K> TStream<J> |
TStream.join(Function<T,K> keyer,
TWindow<U,K> window,
BiFunction<T,java.util.List<U>,J> joiner)
Join this stream with a partitioned window of type
U with key type K . |
<J,U,K> TStream<J> |
TStream.joinLast(Function<T,K> keyer,
TStream<U> lastStream,
Function<U,K> lastStreamKeyer,
BiFunction<T,U,J> joiner)
Join this stream with the last tuple seen on a stream of type
U
with partitioning. |
Modifier and Type | Method and Description |
---|---|
static <T,R> TStream<R> |
PlumbingStreams.parallel(TStream<T> stream,
int width,
ToIntFunction<T> splitter,
BiFunction<TStream<T>,java.lang.Integer,TStream<R>> pipeline)
Perform an analytic pipeline on tuples in parallel.
|
static <T,R> TStream<R> |
PlumbingStreams.parallelBalanced(TStream<T> stream,
int width,
BiFunction<TStream<T>,java.lang.Integer,TStream<R>> pipeline)
Perform an analytic pipeline on tuples in parallel.
|
static <T,U> TStream<U> |
PlumbingStreams.parallelMap(TStream<T> stream,
int width,
ToIntFunction<T> splitter,
BiFunction<T,java.lang.Integer,U> mapper)
Perform an analytic function on tuples in parallel.
|
Modifier and Type | Method and Description |
---|---|
<U> TStream<U> |
TWindowImpl.aggregate(BiFunction<java.util.List<T>,K,U> processor) |
<U> TStream<U> |
TWindowTimeImpl.aggregate(BiFunction<java.util.List<T>,K,U> processor)
Window behaviour here is that:
Tuples are always inserted into the partition.
|
<U> TStream<U> |
TWindowImpl.batch(BiFunction<java.util.List<T>,K,U> batcher) |
<U> TStream<U> |
TWindowTimeImpl.batch(BiFunction<java.util.List<T>,K,U> batcher) |
<J,U,K> TStream<J> |
ConnectorStream.join(Function<T,K> keyer,
TWindow<U,K> twindow,
BiFunction<T,java.util.List<U>,J> joiner) |
<J,U,K> TStream<J> |
ConnectorStream.joinLast(Function<T,K> keyer,
TStream<U> lastStream,
Function<U,K> lastStreamKeyer,
BiFunction<T,U,J> joiner) |
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Policies.alwaysInsert()
Returns an insertion policy that indicates the tuple
is to be inserted into the partition.
|
BiFunction<Partition<T,K,L>,T,java.lang.Boolean> |
Window.getInsertionPolicy()
Returns the insertion policy of the window.
|
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Windows.window(BiFunction<Partition<T,K,L>,T,java.lang.Boolean> insertionPolicy,
BiConsumer<Partition<T,K,L>,T> contentsPolicy,
Consumer<Partition<T,K,L>> evictDeterminer,
BiConsumer<Partition<T,K,L>,T> triggerPolicy,
Function<T,K> keyFunction,
Supplier<L> listSupplier)
Create a window using the passed in policies.
|
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641