T - the Value type@TypeInfo(value=ValueArrayTypeInfoFactory.class) public interface ValueArray<T> extends Iterable<T>, org.apache.flink.core.io.IOReadableWritable, Serializable, org.apache.flink.types.NormalizableKey<ValueArray<T>>, org.apache.flink.types.ResettableValue<ValueArray<T>>, org.apache.flink.types.CopyableValue<ValueArray<T>>
Value arrays are usable as grouping keys but not sorting keys.
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T value)
Appends the value to this array if and only if the array capacity would
not be exceeded.
|
boolean |
addAll(ValueArray<T> source)
Appends all of the values in the specified array to the end of this
array.
|
void |
clear()
Resets the array to the empty state.
|
boolean |
isFull()
An bounded array fills when the allocated capacity has been fully used.
|
void |
mark()
Saves the array index, which can be restored by calling
reset(). |
void |
reset()
Restores the array index to when
mark() was last called. |
int |
size()
Returns the number of elements stored in the array.
|
forEach, iterator, spliteratorcopyNormalizedKey, getMaxNormalizedKeyLencompareToint size()
boolean isFull()
boolean add(T value)
value - the value to add to this arrayboolean addAll(ValueArray<T> source)
source - array containing values to be added to this arrayvoid mark()
reset().
This is not serialized and is not part of the contract for
Key.equals(Object).
void reset()
mark() was last called.void clear()
This may reset the mark() in order to allow arrays be shrunk.
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.