T
- type of the written elements.@FunctionalInterface public static interface KeyGroupPartitioner.ElementWriterFunction<T>
DataOutputView
.Modifier and Type | Method and Description |
---|---|
void |
writeElement(T element,
DataOutputView dov)
This method defines how to write a single element to the output.
|
void writeElement(@Nonnull T element, @Nonnull DataOutputView dov) throws IOException
element
- the element to be written.dov
- the output view to write the element.IOException
- on write-related problems.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.