Package ai.rapids.cudf
Class HostColumnVectorCore.OffHeapState
java.lang.Object
ai.rapids.cudf.MemoryCleaner.Cleaner
ai.rapids.cudf.HostColumnVectorCore.OffHeapState
- Enclosing class:
- HostColumnVectorCore
Holds the off heap state of the column vector so we can clean it up, even if it is leaked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class ai.rapids.cudf.MemoryCleaner.Cleaner
id
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
cleanImpl
(boolean logErrorIfNotClean) Clean up any resources not previously released.long
This returns total memory allocated on the host for the ColumnVector.boolean
isClean()
Check if the underlying memory has been cleaned up or not.void
toString()
Methods inherited from class ai.rapids.cudf.MemoryCleaner.Cleaner
addRef, clean, delRef, isLeakExpected, logRefCountDebug
-
Field Details
-
data
-
valid
-
offsets
-
-
Method Details
-
cleanImpl
protected boolean cleanImpl(boolean logErrorIfNotClean) Description copied from class:MemoryCleaner.Cleaner
Clean up any resources not previously released.- Specified by:
cleanImpl
in classMemoryCleaner.Cleaner
- Parameters:
logErrorIfNotClean
- if true and there are resources to clean up a leak has happened so log it.- Returns:
- true if resources were cleaned up else false.
-
noWarnLeakExpected
public void noWarnLeakExpected()- Overrides:
noWarnLeakExpected
in classMemoryCleaner.Cleaner
-
isClean
public boolean isClean()Description copied from class:MemoryCleaner.Cleaner
Check if the underlying memory has been cleaned up or not.- Specified by:
isClean
in classMemoryCleaner.Cleaner
- Returns:
- true this is clean else false.
-
getHostMemorySize
public long getHostMemorySize()This returns total memory allocated on the host for the ColumnVector. -
toString
-