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 booleancleanImpl(boolean logErrorIfNotClean) Clean up any resources not previously released.longThis returns total memory allocated on the host for the ColumnVector.booleanisClean()Check if the underlying memory has been cleaned up or not.voidtoString()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.CleanerClean up any resources not previously released.- Specified by:
cleanImplin 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:
noWarnLeakExpectedin classMemoryCleaner.Cleaner
-
isClean
public boolean isClean()Description copied from class:MemoryCleaner.CleanerCheck if the underlying memory has been cleaned up or not.- Specified by:
isCleanin 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
-