Interface WindowFunction
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
OverlappingTimeWindowFunction
,TimeWindowFunction
public interface WindowFunction extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<List<List<Writable>>>
applyToSequence(List<List<Writable>> sequence)
Apply the windowing function to the given sequenceSchema
getInputSchema()
void
setInputSchema(Schema schema)
Schema
transform(Schema inputSchema)
Get the output schema, given the input schema.
-
-
-
Method Detail
-
applyToSequence
List<List<List<Writable>>> applyToSequence(List<List<Writable>> sequence)
Apply the windowing function to the given sequence- Parameters:
sequence
- the input sequence- Returns:
- the sequence with the window function applied
-
setInputSchema
void setInputSchema(Schema schema)
- Parameters:
schema
-
-
getInputSchema
Schema getInputSchema()
- Returns:
-
transform
Schema transform(Schema inputSchema)
Get the output schema, given the input schema. Typically the output schema is the same as the input schema, but not necessarily (for example, if the window function adds columns for the window start/end times)- Parameters:
inputSchema
- Schema of the input data- Returns:
- Schema of the output windows
-
-