public class NullValueArray extends Object implements ValueArray<org.apache.flink.types.NullValue>
NullValue.| Constructor and Description |
|---|
NullValueArray()
Initializes an expandable array with default capacity.
|
NullValueArray(int bytes)
Initializes a fixed-size array with the provided number of bytes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.flink.types.NullValue value)
Appends the value to this array if and only if the array capacity would
not be exceeded.
|
boolean |
addAll(ValueArray<org.apache.flink.types.NullValue> other)
Appends all of the values in the specified array to the end of this
array.
|
void |
clear()
Resets the array to the empty state.
|
int |
compareTo(ValueArray<org.apache.flink.types.NullValue> o) |
ValueArray<org.apache.flink.types.NullValue> |
copy() |
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
void |
copyNormalizedKey(org.apache.flink.core.memory.MemorySegment target,
int offset,
int len) |
void |
copyTo(ValueArray<org.apache.flink.types.NullValue> target) |
boolean |
equals(Object obj) |
int |
getBinaryLength() |
int |
getMaxNormalizedKeyLen() |
int |
hashCode() |
boolean |
isFull()
An bounded array fills when the allocated capacity has been fully used.
|
Iterator<org.apache.flink.types.NullValue> |
iterator() |
void |
mark()
Saves the array index, which can be restored by calling
reset(). |
void |
read(org.apache.flink.core.memory.DataInputView in) |
void |
reset()
Restores the array index to when
mark() was last called. |
void |
setValue(ValueArray<org.apache.flink.types.NullValue> value) |
int |
size()
Returns the number of elements stored in the array.
|
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic NullValueArray()
public NullValueArray(int bytes)
bytes - number of bytes of the encapsulated arraypublic Iterator<org.apache.flink.types.NullValue> iterator()
public void write(org.apache.flink.core.memory.DataOutputView out)
throws IOException
write in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic void read(org.apache.flink.core.memory.DataInputView in)
throws IOException
read in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic int getMaxNormalizedKeyLen()
getMaxNormalizedKeyLen in interface org.apache.flink.types.NormalizableKey<ValueArray<org.apache.flink.types.NullValue>>public void copyNormalizedKey(org.apache.flink.core.memory.MemorySegment target,
int offset,
int len)
copyNormalizedKey in interface org.apache.flink.types.NormalizableKey<ValueArray<org.apache.flink.types.NullValue>>public int compareTo(ValueArray<org.apache.flink.types.NullValue> o)
compareTo in interface Comparable<ValueArray<org.apache.flink.types.NullValue>>public int hashCode()
hashCode in interface org.apache.flink.types.Key<ValueArray<org.apache.flink.types.NullValue>>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface org.apache.flink.types.Key<ValueArray<org.apache.flink.types.NullValue>>equals in class Objectpublic void setValue(ValueArray<org.apache.flink.types.NullValue> value)
setValue in interface org.apache.flink.types.ResettableValue<ValueArray<org.apache.flink.types.NullValue>>public int getBinaryLength()
getBinaryLength in interface org.apache.flink.types.CopyableValue<ValueArray<org.apache.flink.types.NullValue>>public void copyTo(ValueArray<org.apache.flink.types.NullValue> target)
copyTo in interface org.apache.flink.types.CopyableValue<ValueArray<org.apache.flink.types.NullValue>>public ValueArray<org.apache.flink.types.NullValue> copy()
copy in interface org.apache.flink.types.CopyableValue<ValueArray<org.apache.flink.types.NullValue>>public void copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
copy in interface org.apache.flink.types.CopyableValue<ValueArray<org.apache.flink.types.NullValue>>IOExceptionpublic int size()
ValueArraysize in interface ValueArray<org.apache.flink.types.NullValue>public boolean isFull()
ValueArrayisFull in interface ValueArray<org.apache.flink.types.NullValue>public boolean add(org.apache.flink.types.NullValue value)
ValueArrayadd in interface ValueArray<org.apache.flink.types.NullValue>value - the value to add to this arraypublic boolean addAll(ValueArray<org.apache.flink.types.NullValue> other)
ValueArrayaddAll in interface ValueArray<org.apache.flink.types.NullValue>other - array containing values to be added to this arraypublic void clear()
ValueArrayThis may reset the ValueArray.mark() in order to allow arrays be shrunk.
clear in interface ValueArray<org.apache.flink.types.NullValue>public void mark()
ValueArrayreset().
This is not serialized and is not part of the contract for
Key.equals(Object).
mark in interface ValueArray<org.apache.flink.types.NullValue>public void reset()
ValueArraymark() was last called.reset in interface ValueArray<org.apache.flink.types.NullValue>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.