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:
  • 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • copy

      public ByteArrayWrapper copy()