public class DefaultCompactionWriter extends CompactionAwareWriter
Transactional.AbstractTransactional.State
Transactional.AbstractTransactional
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
cfs, estimatedTotalKeys, maxAge, minRepairedAt, nonExpiredSSTables, sstableWriter
Constructor and Description |
---|
DefaultCompactionWriter(ColumnFamilyStore cfs,
java.util.Set<SSTableReader> allSSTables,
java.util.Set<SSTableReader> nonExpiredSSTables,
boolean offline,
OperationType compactionType) |
Modifier and Type | Method and Description |
---|---|
boolean |
append(AbstractCompactedRow row)
Writes a row in an implementation specific way
|
long |
estimatedKeys()
estimated number of keys we should write
|
doAbort, doCleanup, doCommit, doPrepare, finish, getDirectories, getWriteDirectory
abort, abort, close, commit, commit, prepareToCommit, state
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit, prepareToCommit
public DefaultCompactionWriter(ColumnFamilyStore cfs, java.util.Set<SSTableReader> allSSTables, java.util.Set<SSTableReader> nonExpiredSSTables, boolean offline, OperationType compactionType)
public boolean append(AbstractCompactedRow row)
CompactionAwareWriter
append
in class CompactionAwareWriter
row
- the row to appendpublic long estimatedKeys()
CompactionAwareWriter
estimatedKeys
in class CompactionAwareWriter
Copyright © 2015 The Apache Software Foundation