Modifier and Type | Field and Description |
---|---|
static int |
NULL_HASH_CODE
The hash code when the arrow buffer is null.
|
Constructor and Description |
---|
ArrowBufPointer()
The default constructor.
|
ArrowBufPointer(ArrowBufHasher hasher)
Constructs an arrow buffer pointer with the specified hasher.
|
ArrowBufPointer(ArrowBuf buf,
long offset,
long length)
Constructs an Arrow buffer pointer.
|
ArrowBufPointer(ArrowBuf buf,
long offset,
long length,
ArrowBufHasher hasher)
Constructs an Arrow buffer pointer.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ArrowBufPointer that)
Compare two arrow buffer pointers.
|
boolean |
equals(Object o) |
ArrowBuf |
getBuf()
Gets the underlying buffer, or null if the underlying data is invalid or null.
|
long |
getLength() |
long |
getOffset() |
int |
hashCode() |
void |
set(ArrowBuf buf,
long offset,
long length)
Sets this pointer.
|
public static final int NULL_HASH_CODE
public ArrowBufPointer()
public ArrowBufPointer(ArrowBufHasher hasher)
hasher
- the hasher to use.public ArrowBufPointer(ArrowBuf buf, long offset, long length)
buf
- the underlying ArrowBuf
, which can be null.offset
- the start off set of the memory region pointed to.length
- the length off set of the memory region pointed to.public ArrowBufPointer(ArrowBuf buf, long offset, long length, ArrowBufHasher hasher)
buf
- the underlying ArrowBuf
, which can be null.offset
- the start off set of the memory region pointed to.length
- the length off set of the memory region pointed to.hasher
- the hasher used to calculate the hash code.public void set(ArrowBuf buf, long offset, long length)
buf
- the underlying ArrowBuf
, which can be null.offset
- the start off set of the memory region pointed to.length
- the length off set of the memory region pointed to.public ArrowBuf getBuf()
public long getOffset()
public long getLength()
public int compareTo(ArrowBufPointer that)
that
- the other pointer to compare.Copyright © 2023 The Apache Software Foundation. All rights reserved.