public class MaxSSTableSizeWriter extends CompactionAwareWriter
Transactional.AbstractTransactional.State
Transactional.AbstractTransactional
cfs, maxAge, minRepairedAt, nonExpiredSSTables, sstableWriter, txn
Constructor and Description |
---|
MaxSSTableSizeWriter(ColumnFamilyStore cfs,
LifecycleTransaction txn,
java.util.Set<SSTableReader> nonExpiredSSTables,
long maxSSTableSize,
int level,
boolean offline) |
Modifier and Type | Method and Description |
---|---|
boolean |
append(UnfilteredRowIterator partition)
Writes a partition in an implementation specific way
|
long |
estimatedKeys()
estimated number of keys we should write
|
doAbort, doCommit, doPrepare, finish, getDirectories, getWriteDirectory
abort, abort, close, commit, commit, doPostCleanup, doPreCleanup, permitRedundantTransitions, prepareToCommit, state
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit, prepareToCommit
public MaxSSTableSizeWriter(ColumnFamilyStore cfs, LifecycleTransaction txn, java.util.Set<SSTableReader> nonExpiredSSTables, long maxSSTableSize, int level, boolean offline)
public boolean append(UnfilteredRowIterator partition)
CompactionAwareWriter
append
in class CompactionAwareWriter
partition
- the partition to appendpublic long estimatedKeys()
CompactionAwareWriter
estimatedKeys
in class CompactionAwareWriter
Copyright © 2015 The Apache Software Foundation