Class ByteArrayWrapper
- java.lang.Object
-
- org.apache.flink.streaming.api.utils.ByteArrayWrapper
-
- All Implemented Interfaces:
Serializable
@Internal public class ByteArrayWrapper extends Object implements Serializable
A wrapper of the byte array. This class is used to calculate a deterministic hash code of a byte array.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteArrayWrapper(byte[] data)ByteArrayWrapper(byte[] data, int offset)ByteArrayWrapper(byte[] data, int offset, int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayWrappercopy()booleanequals(Object other)byteget(int i)byte[]getData()intgetLimit()intgetOffset()inthashCode()voidsetData(byte[] data)voidsetLimit(int limit)voidsetOffset(int offset)
-
-
-
Method Detail
-
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)
-
copy
public ByteArrayWrapper copy()
-
-