Class HostColumnVectorCore.OffHeapState

java.lang.Object
ai.rapids.cudf.MemoryCleaner.Cleaner
ai.rapids.cudf.HostColumnVectorCore.OffHeapState
Enclosing class:
HostColumnVectorCore

protected static final class HostColumnVectorCore.OffHeapState extends MemoryCleaner.Cleaner
Holds the off heap state of the column vector so we can clean it up, even if it is leaked.
  • Field Details

  • 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 class MemoryCleaner.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 class MemoryCleaner.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 class MemoryCleaner.Cleaner
      Returns:
      true this is clean else false.
    • getHostMemorySize

      public long getHostMemorySize()
      This returns total memory allocated on the host for the ColumnVector.
    • toString

      public String toString()
      Overrides:
      toString in class Object