Package | Description |
---|---|
org.apache.edgent.connectors.command |
Command / OS Process connector.
|
org.apache.edgent.connectors.jdbc |
JDBC based database stream connector.
|
org.apache.edgent.connectors.pubsub.service |
Publish subscribe service.
|
org.apache.edgent.connectors.serial |
Serial port connector API.
|
org.apache.edgent.function |
Functional interfaces for lambda expressions.
|
org.apache.edgent.metrics.oplets | |
org.apache.edgent.oplet |
Oplets API.
|
org.apache.edgent.oplet.core |
Core primitive oplets.
|
org.apache.edgent.oplet.functional |
Oplets that process tuples using functions.
|
org.apache.edgent.oplet.plumbing |
Oplets that control the flow of tuples.
|
org.apache.edgent.oplet.window |
Oplets using windows.
|
org.apache.edgent.runtime.etiao |
A runtime for executing an Edgent streaming topology, designed as an embeddable library
so that it can be executed in a simple Java application.
|
org.apache.edgent.streamscope.oplets |
Stream Oscilloscope underlying implementation oplets.
|
org.apache.edgent.topology |
Functional api to build a streaming topology.
|
org.apache.edgent.topology.spi | |
org.apache.edgent.topology.spi.graph | |
org.apache.edgent.window |
Window API.
|
Modifier and Type | Method and Description |
---|---|
static Consumer<java.lang.String> |
CommandStreams.commandWriter(java.lang.ProcessBuilder cmd)
Create a
Consumer<String> to write UTF8 string data to a command's input. |
Modifier and Type | Method and Description |
---|---|
void |
ResultsHandler.handleResults(T tuple,
java.sql.ResultSet resultSet,
java.lang.Exception exc,
Consumer<R> consumer)
Process the
ResultSet and add 0 or more tuples to consumer . |
Modifier and Type | Method and Description |
---|---|
<T> Consumer<T> |
ProviderPubSub.getPublishDestination(java.lang.String topic,
java.lang.Class<? super T> streamType) |
<T> Consumer<T> |
PublishSubscribeService.getPublishDestination(java.lang.String topic,
java.lang.Class<? super T> streamType)
Get the destination for a publisher.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
ProviderPubSub.addSubscriber(java.lang.String topic,
java.lang.Class<T> streamType,
Consumer<T> subscriber) |
<T> void |
PublishSubscribeService.addSubscriber(java.lang.String topic,
java.lang.Class<T> streamType,
Consumer<T> subscriber)
Add a subscriber to a published topic.
|
void |
ProviderPubSub.removeSubscriber(java.lang.String topic,
Consumer<?> subscriber) |
void |
PublishSubscribeService.removeSubscriber(java.lang.String topic,
Consumer<?> subscriber) |
Modifier and Type | Method and Description |
---|---|
void |
SerialDevice.setInitializer(Consumer<SerialPort> initializer)
Set the initialization function for this port.
|
Modifier and Type | Method and Description |
---|---|
static <T> Consumer<T> |
Functions.discard()
A Consumer that discards all items passed to it.
|
static <T> Consumer<T> |
Functions.synchronizedConsumer(Consumer<T> function)
Return a thread-safe version of a
Consumer function. |
Modifier and Type | Method and Description |
---|---|
static <T> java.lang.Runnable |
Functions.delayedConsume(Consumer<T> consumer,
T value)
Create a
Runnable that calls
consumer.accept(value) when run() is called. |
static <T> Consumer<T> |
Functions.synchronizedConsumer(Consumer<T> function)
Return a thread-safe version of a
Consumer function. |
Modifier and Type | Class and Description |
---|---|
class |
CounterOp<T>
A metrics oplet which counts the number of tuples peeked at.
|
class |
RateMeter<T>
A metrics oplet which measures current tuple throughput and one-, five-,
and fifteen-minute exponentially-weighted moving averages.
|
class |
SingleMetricAbstractOplet<T>
Base for metrics oplets which use a single metric object.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Consumer<I>> |
Oplet.getInputs()
Get the input stream data handlers for this oplet.
|
java.util.List<? extends Consumer<O>> |
OpletContext.getOutputs()
Get the mechanism to submit tuples on an output port.
|
Modifier and Type | Class and Description |
---|---|
class |
FanOut<T> |
class |
Peek<T>
Oplet that allows a peek at each tuple and always forwards a tuple onto
its single output port.
|
class |
Pipe<I,O>
Pipe oplet with a single input and output.
|
class |
Split<T>
Split a stream into multiple streams depending
on the result of a splitter function.
|
Modifier and Type | Method and Description |
---|---|
protected Consumer<T> |
FanIn.consumer(int iportIndex)
Create a Consumer for the input port that invokes the
receiver and submits a generated tuple, if any, to the output.
|
protected Consumer<U> |
FanIn.getDestination() |
protected Consumer<O> |
Pipe.getDestination() |
protected Consumer<T> |
Source.getDestination() |
protected Consumer<T> |
Sink.getSinker()
Get the sink function that processes each tuple.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Consumer<T>> |
FanIn.getInputs() |
java.util.List<? extends Consumer<T>> |
FanOut.getInputs() |
java.util.List<Consumer<I>> |
Pipe.getInputs() |
java.util.List<Consumer<T>> |
Sink.getInputs() |
java.util.List<Consumer<java.lang.Void>> |
Source.getInputs() |
java.util.List<Consumer<T>> |
Split.getInputs() |
Modifier and Type | Method and Description |
---|---|
protected void |
Sink.setSinker(Consumer<T> sinker)
Set the sink function.
|
Constructor and Description |
---|
Sink(Consumer<T> sinker)
Create a
Sink oplet. |
Modifier and Type | Class and Description |
---|---|
class |
Events<T>
Generate tuples from events.
|
class |
Filter<T> |
class |
FlatMap<I,O>
Map an input tuple to 0-N output tuples.
|
class |
Map<I,O>
Map an input tuple to 0-1 output tuple
|
Modifier and Type | Method and Description |
---|---|
protected Consumer<T> |
Peek.getPeeker() |
Constructor and Description |
---|
Events(Consumer<Consumer<T>> eventSetup) |
Peek(Consumer<T> peeker)
Peek oplet using a function to peek.
|
Constructor and Description |
---|
Events(Consumer<Consumer<T>> eventSetup) |
Modifier and Type | Class and Description |
---|---|
class |
Isolate<T>
Isolate upstream processing from downstream
processing guaranteeing tuple order.
|
class |
PressureReliever<T,K>
Relieve pressure on upstream oplets by discarding tuples.
|
class |
UnorderedIsolate<T>
Isolate upstream processing from downstream
processing without guaranteeing tuple order.
|
Modifier and Type | Class and Description |
---|---|
class |
Aggregate<T,U,K>
Aggregate a window.
|
Modifier and Type | Class and Description |
---|---|
class |
SettableForwarder<T>
A forwarding Streamer whose destination
can be changed.
|
Modifier and Type | Method and Description |
---|---|
Consumer<T> |
SettableForwarder.getDestination()
Get the destination.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Consumer<I>> |
Invocation.getInputs()
Returns the list of input stream forwarders for this invocation.
|
java.util.List<? extends Consumer<O>> |
InvocationContext.getOutputs() |
Modifier and Type | Method and Description |
---|---|
void |
SettableForwarder.setDestination(Consumer<T> destination)
Change the destination.
|
void |
Invocation.setTarget(int port,
Consumer<O> target)
Disconnects the specified port and reconnects it to the specified target.
|
Constructor and Description |
---|
SettableForwarder(Consumer<T> destination)
Create with the specified destination.
|
Constructor and Description |
---|
InvocationContext(java.lang.String id,
JobContext job,
RuntimeServices services,
int inputCount,
java.util.List<? extends Consumer<O>> outputs,
java.util.List<OutputPortContext> outputContext)
Creates an
InvocationContext with the specified parameters. |
Modifier and Type | Class and Description |
---|---|
class |
StreamScope<T>
A Stream "oscilloscope" oplet.
|
Constructor and Description |
---|
StreamScope(Consumer<T> streamScope)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
Topology.events(Consumer<Consumer<T>> eventSetup)
Declare a stream populated by an event system.
|
TStream<T> |
TStream.peek(Consumer<T> peeker)
Declare a stream that contains the same contents as this stream while
peeking at each element using
peeker . |
TSink<T> |
TStream.sink(Consumer<T> sinker)
Sink (terminate) this stream using a function.
|
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
Topology.events(Consumer<Consumer<T>> eventSetup)
Declare a stream populated by an event system.
|
Modifier and Type | Method and Description |
---|---|
TSink<T> |
AbstractTStream.sink(Consumer<T> sinker) |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
GraphTopology.events(Consumer<Consumer<T>> eventSetup) |
TStream<T> |
ConnectorStream.peek(Consumer<T> peeker) |
Modifier and Type | Method and Description |
---|---|
<T> TStream<T> |
GraphTopology.events(Consumer<Consumer<T>> eventSetup) |
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Policies.evictAll()
Returns a Consumer representing an evict determiner that evict all tuples
from the window.
|
static <T,K> Consumer<Partition<T,K,java.util.List<T>>> |
Policies.evictAllAndScheduleEvictWithProcess(long time,
java.util.concurrent.TimeUnit unit)
An eviction policy which processes the window, evicts all tuples, and
schedules the next eviction after the appropriate interval.
|
static <T,K> Consumer<Partition<T,K,InsertionTimeList<T>>> |
Policies.evictOlderWithProcess(long time,
java.util.concurrent.TimeUnit unit)
An eviction policy which evicts all tuples that are older than a specified time.
|
static <T,K,L extends java.util.List<T>> |
Policies.evictOldest()
Returns an evict determiner that evicts the oldest tuple.
|
Consumer<Partition<T,K,L>> |
Window.getEvictDeterminer()
Returns the window's eviction determiner.
|
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