Package org.apache.cassandra.io.sstable
Class SSTableZeroCopyWriter
java.lang.Object
org.apache.cassandra.io.sstable.SSTable
org.apache.cassandra.io.sstable.SSTableZeroCopyWriter
- All Implemented Interfaces:
AutoCloseable,SSTableMultiWriter,Transactional
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.io.sstable.SSTable
SSTable.Builder<S extends SSTable,B extends SSTable.Builder<S, B>>, SSTable.Owner Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Transactional
Transactional.AbstractTransactional -
Field Summary
Fields inherited from class org.apache.cassandra.io.sstable.SSTable
chunkCache, components, compression, descriptor, ioOptions, metadata, TOMBSTONE_HISTOGRAM_BIN_SIZE, TOMBSTONE_HISTOGRAM_SPOOL_SIZE, TOMBSTONE_HISTOGRAM_TTL_ROUND_SECONDS -
Constructor Summary
ConstructorsConstructorDescriptionSSTableZeroCopyWriter(SSTable.Builder<?, ?> builder, LifecycleNewTracker lifecycleNewTracker, SSTable.Owner owner) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(UnfilteredRowIterator partition) Writes a partition in an implementation specific wayvoidclose()finish(boolean openResult) finished()longgetFirst()getLast()longvoidsetOpenResult(boolean openResult) voidwriteComponent(Component component, DataInputPlus in, long size) Methods inherited from class org.apache.cassandra.io.sstable.SSTable
addComponents, copy, decorateKey, getAllFilePaths, getColumnFamilyName, getComponents, getFilename, getId, getKeyspaceName, getPartitioner, getStreamingComponents, hardlink, metadata, owner, registerComponents, rename, toString, tryComponentFromFilename, tryComponentFromFilename, tryDescriptorFromFile, unbuildTo, unregisterComponents, validateRepairedMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.io.sstable.SSTableMultiWriter
getFilename
-
Constructor Details
-
SSTableZeroCopyWriter
public SSTableZeroCopyWriter(SSTable.Builder<?, ?> builder, LifecycleNewTracker lifecycleNewTracker, SSTable.Owner owner)
-
-
Method Details
-
getFirst
-
getLast
-
getBounds
-
append
Description copied from interface:SSTableMultiWriterWrites a partition in an implementation specific way- Specified by:
appendin interfaceSSTableMultiWriter- Parameters:
partition- the partition to append
-
finish
- Specified by:
finishin interfaceSSTableMultiWriter
-
finished
- Specified by:
finishedin interfaceSSTableMultiWriter
-
setOpenResult
- Specified by:
setOpenResultin interfaceSSTableMultiWriter
-
getBytesWritten
public long getBytesWritten()- Specified by:
getBytesWrittenin interfaceSSTableMultiWriter
-
getOnDiskBytesWritten
public long getOnDiskBytesWritten()- Specified by:
getOnDiskBytesWrittenin interfaceSSTableMultiWriter
-
getTableId
- Specified by:
getTableIdin interfaceSSTableMultiWriter
-
commit
- Specified by:
commitin interfaceTransactional
-
abort
- Specified by:
abortin interfaceTransactional
-
prepareToCommit
public void prepareToCommit()- Specified by:
prepareToCommitin interfaceTransactional
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTransactional
-
writeComponent
public void writeComponent(Component component, DataInputPlus in, long size) throws ClosedChannelException - Throws:
ClosedChannelException
-