Class SSTableReader.InstanceTidier
java.lang.Object
org.apache.cassandra.io.sstable.format.SSTableReader.InstanceTidier
- All Implemented Interfaces:
RefCounted.Tidy
- Enclosing class:
- SSTableReader
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
Modifier and TypeMethodDescriptionname()voidsetup(SSTableReader reader, boolean trackHotness, Collection<? extends AutoCloseable> closeables) voidtidy()
-
Method Details
-
setup
public void setup(SSTableReader reader, boolean trackHotness, Collection<? extends AutoCloseable> closeables) -
tidy
public void tidy()- Specified by:
tidyin interfaceRefCounted.Tidy
-
name
- Specified by:
namein interfaceRefCounted.Tidy
-