public class MaxSSTableSizeWriter extends CompactionAwareWriter
Transactional.AbstractTransactional.State
Transactional.AbstractTransactional
cfs, maxAge, minRepairedAt, nonExpiredSSTables, sstableWriter
Constructor and Description |
---|
MaxSSTableSizeWriter(ColumnFamilyStore cfs,
java.util.Set<SSTableReader> allSSTables,
java.util.Set<SSTableReader> nonExpiredSSTables,
long maxSSTableSize,
int level,
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 MaxSSTableSizeWriter(ColumnFamilyStore cfs, java.util.Set<SSTableReader> allSSTables, java.util.Set<SSTableReader> nonExpiredSSTables, long maxSSTableSize, int level, 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