Class ComponentContext
- java.lang.Object
-
- org.apache.cassandra.db.streaming.ComponentContext
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ComponentContext extends java.lang.Object implements java.lang.AutoCloseable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.FileChannel
channel(Descriptor descriptor, Component component, long size)
void
close()
static ComponentContext
create(SSTable sstable)
ComponentManifest
manifest()
-
-
-
Method Detail
-
create
public static ComponentContext create(SSTable sstable)
-
manifest
public ComponentManifest manifest()
-
channel
public java.nio.channels.FileChannel channel(Descriptor descriptor, Component component, long size) throws java.io.IOException
- Returns:
- file channel to be streamed, either original component or hardlinked component.
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-