| Package | Description |
|---|---|
| org.apache.apex.malhar.stream.api | |
| org.apache.apex.malhar.stream.api.impl |
| Modifier and Type | Method and Description |
|---|---|
<O,ACCU,STREAM extends WindowedStream<Tuple.WindowedTuple<O>>> |
WindowedStream.accumulate(Accumulation<T,ACCU,O> accumulation,
Option... opts)
Add
WindowedOperatorImpl with specified Accumulation Accumulate tuples by some key within the window definition in this stream Also give a name to the accumulation |
<K,V,O,ACCU,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,O>>>> |
WindowedStream.accumulateByKey(Accumulation<V,ACCU,O> accumulation,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts)
Add
KeyedWindowedOperatorImpl with specified Accumulation Accumulate tuples by some key within the window definition in this stream Also give a name to the accumulation |
<STREAM extends WindowedStream<Tuple.WindowedTuple<Long>>> |
WindowedStream.count(Option... opts)
Count of all tuples
|
<K,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,Long>>>> |
WindowedStream.countByKey(Function.ToKeyValue<T,K,Long> convertToKeyValue,
Option... opts)
Count tuples by the key
|
<O,STREAM extends WindowedStream<Tuple.WindowedTuple<O>>> |
WindowedStream.fold(FoldFn<T,O> fold,
Option... opts)
|
<K,V,O,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,O>>>> |
WindowedStream.foldByKey(FoldFn<V,O> fold,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts)
|
<STREAM extends WindowedStream<Iterable<T>>> |
WindowedStream.group()
Return tuples for each window
|
<O,K,STREAM extends WindowedStream<KeyValPair<K,Iterable<O>>>> |
WindowedStream.groupByKey(Function.ToKeyValue<T,K,O> convertToKeyVal,
Option... opts)
Return tuples for each key for each window
|
<STREAM extends WindowedStream<Tuple.WindowedTuple<T>>> |
WindowedStream.reduce(ReduceFn<T> reduce,
Option... opts)
|
<K,V,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,V>>>> |
WindowedStream.reduceByKey(ReduceFn<V> reduce,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts)
Add
KeyedWindowedOperatorImpl with specified ReduceFn Reduce transformation by selected key Add an operator to the DAG which merge tuple t1, t2 to new tuple by key |
<STREAM extends WindowedStream<T>> |
WindowedStream.resetAllowedLateness(org.joda.time.Duration allowedLateness)
Reset the allowedLateness settings for next transforms
|
<STREAM extends WindowedStream<T>> |
WindowedStream.resetTrigger(TriggerOption triggerOption)
Reset the trigger settings for next transforms
|
<STREAM extends WindowedStream<Tuple.WindowedTuple<List<T>>>> |
WindowedStream.top(int N,
Option... opts)
Return top N tuples of all tuples in the window
|
<K,V,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,List<V>>>>> |
WindowedStream.topByKey(int N,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts)
Return top N tuples by the selected key
|
| Modifier and Type | Method and Description |
|---|---|
WindowedStream<T> |
ApexStream.window(WindowOption windowOption)
Chunk tuples into Windows
Window Transform are defined in
WindowedStream |
WindowedStream<T> |
ApexStream.window(WindowOption windowOption,
TriggerOption triggerOption)
Chunk tuple into windows with window option and trigger option
|
WindowedStream<T> |
ApexStream.window(WindowOption windowOption,
TriggerOption triggerOption,
org.joda.time.Duration allowLateness)
Chunk tuple into windows with window option and trigger option and allowed lateness
|
| Modifier and Type | Class and Description |
|---|---|
class |
ApexWindowedStreamImpl<T>
Default windowed stream implementation for WindowedStream interface.
|
| Modifier and Type | Method and Description |
|---|---|
<O,ACCU,STREAM extends WindowedStream<Tuple.WindowedTuple<O>>> |
ApexWindowedStreamImpl.accumulate(Accumulation<T,ACCU,O> accumulation,
Option... opts) |
<K,V,O,ACCU,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,O>>>> |
ApexWindowedStreamImpl.accumulateByKey(Accumulation<V,ACCU,O> accumulation,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts) |
<STREAM extends WindowedStream<Tuple.WindowedTuple<Long>>> |
ApexWindowedStreamImpl.count(Option... opts) |
<K,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,Long>>>> |
ApexWindowedStreamImpl.countByKey(Function.ToKeyValue<T,K,Long> convertToKeyValue,
Option... opts) |
<O,STREAM extends WindowedStream<Tuple.WindowedTuple<O>>> |
ApexWindowedStreamImpl.fold(FoldFn<T,O> fold,
Option... opts) |
<K,V,O,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,O>>>> |
ApexWindowedStreamImpl.foldByKey(FoldFn<V,O> fold,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts) |
<STREAM extends WindowedStream<Iterable<T>>> |
ApexWindowedStreamImpl.group() |
<O,K,STREAM extends WindowedStream<KeyValPair<K,Iterable<O>>>> |
ApexWindowedStreamImpl.groupByKey(Function.ToKeyValue<T,K,O> convertToKeyVal,
Option... opts) |
<STREAM extends WindowedStream<Tuple.WindowedTuple<T>>> |
ApexWindowedStreamImpl.reduce(ReduceFn<T> reduce,
Option... opts) |
<K,V,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,V>>>> |
ApexWindowedStreamImpl.reduceByKey(ReduceFn<V> reduce,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts) |
<STREAM extends WindowedStream<T>> |
ApexWindowedStreamImpl.resetAllowedLateness(org.joda.time.Duration allowedLateness) |
<STREAM extends WindowedStream<T>> |
ApexWindowedStreamImpl.resetTrigger(TriggerOption option) |
<STREAM extends WindowedStream<Tuple.WindowedTuple<List<T>>>> |
ApexWindowedStreamImpl.top(int N,
Option... opts) |
<K,V,STREAM extends WindowedStream<Tuple.WindowedTuple<KeyValPair<K,List<V>>>>> |
ApexWindowedStreamImpl.topByKey(int N,
Function.ToKeyValue<T,K,V> convertToKeyVal,
Option... opts) |
| Modifier and Type | Method and Description |
|---|---|
WindowedStream<T> |
ApexStreamImpl.window(WindowOption option) |
WindowedStream<T> |
ApexStreamImpl.window(WindowOption windowOption,
TriggerOption triggerOption) |
WindowedStream<T> |
ApexStreamImpl.window(WindowOption windowOption,
TriggerOption triggerOption,
org.joda.time.Duration allowLateness) |
Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.