public abstract class CompactionAwareWriter extends Transactional.AbstractTransactional implements Transactional
Transactional.AbstractTransactional.StateTransactional.AbstractTransactional| Modifier and Type | Field and Description |
|---|---|
protected ColumnFamilyStore |
cfs |
protected long |
estimatedTotalKeys |
protected long |
maxAge |
protected long |
minRepairedAt |
protected java.util.Set<SSTableReader> |
nonExpiredSSTables |
protected SSTableRewriter |
sstableWriter |
protected LifecycleTransaction |
txn |
| Constructor and Description |
|---|
CompactionAwareWriter(ColumnFamilyStore cfs,
LifecycleTransaction txn,
java.util.Set<SSTableReader> nonExpiredSSTables,
boolean offline) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
append(UnfilteredRowIterator partition)
Writes a partition in an implementation specific way
|
protected java.lang.Throwable |
doAbort(java.lang.Throwable accumulate) |
protected java.lang.Throwable |
doCommit(java.lang.Throwable accumulate) |
protected void |
doPrepare()
Do any preparatory work prior to commit.
|
long |
estimatedKeys()
estimated number of keys we should write
|
java.util.List<SSTableReader> |
finish()
we are done, return the finished sstables so that the caller can mark the old ones as compacted
|
Directories |
getDirectories()
The directories we can write to
|
Directories.DataDirectory |
getWriteDirectory(long expectedWriteSize)
Return a directory where we can expect expectedWriteSize to fit.
|
abort, abort, close, commit, commit, doPostCleanup, doPreCleanup, permitRedundantTransitions, prepareToCommit, stateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, commit, prepareToCommitprotected final ColumnFamilyStore cfs
protected final java.util.Set<SSTableReader> nonExpiredSSTables
protected final long estimatedTotalKeys
protected final long maxAge
protected final long minRepairedAt
protected final LifecycleTransaction txn
protected final SSTableRewriter sstableWriter
public CompactionAwareWriter(ColumnFamilyStore cfs, LifecycleTransaction txn, java.util.Set<SSTableReader> nonExpiredSSTables, boolean offline)
public abstract boolean append(UnfilteredRowIterator partition)
partition - the partition to appendprotected java.lang.Throwable doAbort(java.lang.Throwable accumulate)
doAbort in class Transactional.AbstractTransactionalprotected java.lang.Throwable doCommit(java.lang.Throwable accumulate)
doCommit in class Transactional.AbstractTransactionalprotected void doPrepare()
Transactional.AbstractTransactionaldoPrepare in class Transactional.AbstractTransactionalpublic java.util.List<SSTableReader> finish()
finish in class Transactional.AbstractTransactionalpublic long estimatedKeys()
public Directories getDirectories()
public Directories.DataDirectory getWriteDirectory(long expectedWriteSize)
Copyright © 2015 The Apache Software Foundation