| Package | Description |
|---|---|
| org.apache.flink.streaming.api.windowing.deltafunction | |
| org.apache.flink.streaming.api.windowing.helper | |
| org.apache.flink.streaming.api.windowing.policy |
| Modifier and Type | Class and Description |
|---|---|
class |
CosineDistance<DATA>
This delta function calculates the cosine distance between two given vectors.
|
class |
EuclideanDistance<DATA>
This delta function calculates the euclidean distance between two given
points.
|
class |
ExtractionAwareDeltaFunction<DATA,TO>
Extend this abstract class to implement a delta function which is aware of
extracting the data on which the delta is calculated from a more complex data
structure.
|
| Modifier and Type | Method and Description |
|---|---|
static <DATA> Delta<DATA> |
Delta.of(double threshold,
DeltaFunction<DATA> deltaFunction,
DATA initVal)
Creates a delta helper representing a delta trigger or eviction policy.
|
| Constructor and Description |
|---|
Delta(DeltaFunction<DATA> deltaFunction,
DATA initVal,
double threshold)
Creates a delta helper representing a delta count or eviction policy
|
| Modifier and Type | Field and Description |
|---|---|
protected DeltaFunction<DATA> |
DeltaPolicy.deltaFuntion |
| Constructor and Description |
|---|
DeltaPolicy(DeltaFunction<DATA> deltaFuntion,
DATA init,
double threshold,
org.apache.flink.api.common.typeutils.TypeSerializer typeSerializer)
Creates a delta policy which calculates a delta between the data point
which triggered last and the currently arrived data point.
|
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.