Class RawBuffer
java.lang.Object
com.yahoo.search.grouping.request.RawBuffer
- All Implemented Interfaces:
Cloneable
,Comparable<RawBuffer>
This class represents a buffer of byte values to be used as a backing buffer
for raw buckets.
- Author:
- Ulf Lilleengen
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RawBuffer
public RawBuffer()Create an empty buffer. -
RawBuffer
Create a buffer with initial content.- Parameters:
buffer
- A buffer of values to be assigned this buffer.
-
RawBuffer
public RawBuffer(byte[] bytes) Create a buffer with initial content.- Parameters:
bytes
- A buffer of bytes to be assigned this buffer.
-
-
Method Details
-
put
Insert a byte value into this buffer.- Parameters:
value
- The value to add to the buffer.- Returns:
- Reference to this.
-
put
Insert an array of byte values into this buffer.- Parameters:
values
- The array to add to the buffer.- Returns:
- Reference to this.
-
getBytes
public byte[] getBytes()Create a copy of data in the internal buffer.- Returns:
- A copy of the data.
-
toString
-
clone
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RawBuffer>
-
hashCode
public int hashCode() -
equals
-