Class ByteArrayWrapper
java.lang.Object
org.apache.flink.streaming.api.utils.ByteArrayWrapper
- All Implemented Interfaces:
Serializable
A wrapper of the byte array. This class is used to calculate a deterministic hash code of a byte
array.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayWrapper(byte[] data) ByteArrayWrapper(byte[] data, int offset) ByteArrayWrapper(byte[] data, int offset, int limit) -
Method Summary
-
Constructor Details
-
ByteArrayWrapper
public ByteArrayWrapper(byte[] data) -
ByteArrayWrapper
public ByteArrayWrapper(byte[] data, int offset) -
ByteArrayWrapper
public ByteArrayWrapper(byte[] data, int offset, int limit)
-
-
Method Details
-
getData
public byte[] getData() -
setData
public void setData(byte[] data) -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getLimit
public int getLimit() -
setLimit
public void setLimit(int limit) -
get
public byte get(int i) -
hashCode
public int hashCode() -
equals
-
copy
-