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 ByteArrayWrapper
copy()
boolean
equals(Object other)
byte
get(int i)
byte[]
getData()
int
getLimit()
int
getOffset()
int
hashCode()
void
setData(byte[] data)
void
setLimit(int limit)
void
setOffset(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()
-
-