protected static final class ColumnVector.OffHeapState extends Object
| Modifier and Type | Field and Description |
|---|---|
long |
id |
static long |
UNKNOWN_NULL_COUNT |
| Constructor and Description |
|---|
OffHeapState(DType type,
int rows,
Optional<Long> nullCount,
DeviceMemoryBuffer data,
DeviceMemoryBuffer valid,
DeviceMemoryBuffer offsets)
Create a cudf::column_view from device side data.
|
OffHeapState(long columnHandle)
Make a column form an existing cudf::column *.
|
OffHeapState(long viewHandle,
DeviceMemoryBuffer contiguousBuffer)
Create a cudf::column_view from contiguous device side data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRef() |
boolean |
clean(boolean logErrorIfNotClean)
Clean up any resources not previously released.
|
protected boolean |
cleanImpl(boolean logErrorIfNotClean)
Clean up any resources not previously released.
|
void |
delRef() |
BaseDeviceMemoryBuffer |
getData() |
long |
getDeviceMemorySize()
This returns total memory allocated in device for the ColumnVector.
|
long |
getNativeNullCount() |
long |
getNativeRowCount() |
DType |
getNativeType() |
BaseDeviceMemoryBuffer |
getOffsets() |
BaseDeviceMemoryBuffer |
getValid() |
long |
getViewHandle() |
boolean |
isClean()
Check if the underlying memory has been cleaned up or not.
|
boolean |
isLeakExpected()
Return true if a leak is expected for this object else false.
|
void |
logRefCountDebug(String message) |
void |
noWarnLeakExpected() |
String |
toString() |
public static final long UNKNOWN_NULL_COUNT
public final long id
public OffHeapState(long columnHandle)
public OffHeapState(DType type, int rows, Optional<Long> nullCount, DeviceMemoryBuffer data, DeviceMemoryBuffer valid, DeviceMemoryBuffer offsets)
public OffHeapState(long viewHandle,
DeviceMemoryBuffer contiguousBuffer)
public long getViewHandle()
public long getNativeRowCount()
public long getNativeNullCount()
public DType getNativeType()
public BaseDeviceMemoryBuffer getData()
public BaseDeviceMemoryBuffer getValid()
public BaseDeviceMemoryBuffer getOffsets()
public void noWarnLeakExpected()
protected boolean cleanImpl(boolean logErrorIfNotClean)
logErrorIfNotClean - if true and there are resources to clean up a leak has happened
so log it.public boolean isClean()
public long getDeviceMemorySize()
public final void addRef()
public final void delRef()
public final void logRefCountDebug(String message)
public final boolean clean(boolean logErrorIfNotClean)
logErrorIfNotClean - if true we should log a leak unless it is expected.public final boolean isLeakExpected()
Copyright © 2020. All rights reserved.