public class BigTableWriter extends SSTableWriter
SSTableWriter.Factory
Transactional.AbstractTransactional
Modifier and Type | Field and Description |
---|---|
static int |
END_OF_ROW |
keyCount, maxDataAge, metadataCollector, repairedAt, rowIndexEntrySerializer, txnProxy
components, compression, descriptor, first, last, metadata, partitioner, TOMBSTONE_HISTOGRAM_BIN_SIZE
Modifier and Type | Method and Description |
---|---|
RowIndexEntry |
append(AbstractCompactedRow row) |
void |
append(DecoratedKey decoratedKey,
ColumnFamily cf) |
long |
appendFromStream(DecoratedKey key,
CFMetaData metadata,
java.io.DataInput in,
Version version) |
long |
getFilePointer() |
long |
getOnDiskFilePointer() |
void |
mark() |
SSTableReader |
openEarly()
Open the resultant SSTableReader before it has been fully written
|
SSTableReader |
openFinalEarly()
Open the resultant SSTableReader once it has been fully written, but before the
_set_ of tables that are being written together as one atomic operation are all ready
|
void |
resetAndTruncate() |
protected SSTableWriter.TransactionalProxy |
txnProxy() |
abort, abort, close, commit, create, create, create, create, create, create, finalizeMetadata, finish, finish, finished, prepareToCommit, rename, rename, setMaxDataAge, setOpenResult, setRepairedAt, statsMetadata
addComponents, appendTOC, bytesOnDisk, componentsFor, delete, discoverComponentsFor, estimateRowsFromIndex, getColumnFamilyName, getFilename, getIndexFilename, getKeyspaceName, getMinimalKey, readTOC, toString, tryComponentFromFilename
public static final int END_OF_ROW
public void mark()
mark
in class SSTableWriter
public void resetAndTruncate()
resetAndTruncate
in class SSTableWriter
public RowIndexEntry append(AbstractCompactedRow row)
append
in class SSTableWriter
row
- public void append(DecoratedKey decoratedKey, ColumnFamily cf)
append
in class SSTableWriter
public long appendFromStream(DecoratedKey key, CFMetaData metadata, java.io.DataInput in, Version version) throws java.io.IOException
appendFromStream
in class SSTableWriter
java.io.IOException
- if a read from the DataInput failsFSWriteError
- if a write to the dataFile failspublic SSTableReader openEarly()
SSTableWriter
openEarly
in class SSTableWriter
public SSTableReader openFinalEarly()
SSTableWriter
openFinalEarly
in class SSTableWriter
protected SSTableWriter.TransactionalProxy txnProxy()
txnProxy
in class SSTableWriter
public long getFilePointer()
getFilePointer
in class SSTableWriter
public long getOnDiskFilePointer()
getOnDiskFilePointer
in class SSTableWriter
Copyright © 2020 The Apache Software Foundation