Class SSTableReader.InstanceTidier

  • All Implemented Interfaces:
    RefCounted.Tidy
    Enclosing class:
    SSTableReader

    protected static final class SSTableReader.InstanceTidier
    extends java.lang.Object
    implements RefCounted.Tidy
    One instance per SSTableReader we create.

    We can create many InstanceTidiers (one for every time we reopen an sstable with MOVED_START for example), but there can only be one GlobalTidy for one single logical sstable.

    When the InstanceTidier cleansup, it releases its reference to its GlobalTidy; when all InstanceTidiers for that type have run, the GlobalTidy cleans up.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()  
      void setup​(SSTableReader reader, boolean trackHotness, java.util.Collection<? extends java.lang.AutoCloseable> closeables)  
      void tidy()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setup

        public void setup​(SSTableReader reader,
                          boolean trackHotness,
                          java.util.Collection<? extends java.lang.AutoCloseable> closeables)