public abstract class SSTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_DATA |
static java.lang.String |
COMPONENT_DIGEST |
static java.lang.String |
COMPONENT_FILTER |
static java.lang.String |
COMPONENT_INDEX |
static java.lang.String |
COMPONENT_STATS |
protected java.util.Set<Component> |
components |
boolean |
compression |
Descriptor |
descriptor |
DecoratedKey |
first |
DecoratedKey |
last |
static java.util.Comparator<SSTableReader> |
maxTimestampComparator |
CFMetaData |
metadata |
IPartitioner |
partitioner |
static java.util.Comparator<SSTableReader> |
sstableComparator |
static com.google.common.collect.Ordering<SSTableReader> |
sstableOrdering |
static java.lang.String |
TEMPFILE_MARKER |
static int |
TOMBSTONE_HISTOGRAM_BIN_SIZE |
Modifier | Constructor and Description |
---|---|
protected |
SSTable(Descriptor descriptor,
CFMetaData metadata,
IPartitioner partitioner) |
protected |
SSTable(Descriptor descriptor,
java.util.Set<Component> components,
CFMetaData metadata,
IPartitioner partitioner) |
Modifier and Type | Method and Description |
---|---|
void |
addComponents(java.util.Collection<Component> newComponents)
Registers new custom components.
|
protected static void |
appendTOC(Descriptor descriptor,
java.util.Collection<Component> components)
Appends new component names to the TOC component.
|
long |
bytesOnDisk() |
static boolean |
delete(Descriptor desc,
java.util.Set<Component> components)
We use a ReferenceQueue to manage deleting files that have been compacted
and for which no more SSTable references exist.
|
java.lang.String |
getColumnFamilyName() |
java.lang.String |
getFilename() |
java.lang.String |
getIndexFilename() |
java.lang.String |
getKeyspaceName() |
static DecoratedKey |
getMinimalKey(DecoratedKey key)
If the given @param key occupies only part of a larger buffer, allocate a new buffer that is only
as large as necessary.
|
static long |
getTotalBytes(java.lang.Iterable<SSTableReader> sstables) |
protected static java.util.Set<Component> |
readTOC(Descriptor descriptor)
Reads the list of components from the TOC component.
|
java.lang.String |
toString() |
static Pair<Descriptor,Component> |
tryComponentFromFilename(java.io.File dir,
java.lang.String name) |
public static final java.lang.String COMPONENT_DATA
public static final java.lang.String COMPONENT_INDEX
public static final java.lang.String COMPONENT_FILTER
public static final java.lang.String COMPONENT_STATS
public static final java.lang.String COMPONENT_DIGEST
public static final java.lang.String TEMPFILE_MARKER
public static final int TOMBSTONE_HISTOGRAM_BIN_SIZE
public static final java.util.Comparator<SSTableReader> maxTimestampComparator
public final Descriptor descriptor
protected final java.util.Set<Component> components
public final CFMetaData metadata
public final IPartitioner partitioner
public final boolean compression
public DecoratedKey first
public DecoratedKey last
public static final java.util.Comparator<SSTableReader> sstableComparator
public static final com.google.common.collect.Ordering<SSTableReader> sstableOrdering
protected SSTable(Descriptor descriptor, CFMetaData metadata, IPartitioner partitioner)
protected SSTable(Descriptor descriptor, java.util.Set<Component> components, CFMetaData metadata, IPartitioner partitioner)
public static boolean delete(Descriptor desc, java.util.Set<Component> components)
public static DecoratedKey getMinimalKey(DecoratedKey key)
public java.lang.String getFilename()
public java.lang.String getIndexFilename()
public java.lang.String getColumnFamilyName()
public java.lang.String getKeyspaceName()
public static Pair<Descriptor,Component> tryComponentFromFilename(java.io.File dir, java.lang.String name)
public static long getTotalBytes(java.lang.Iterable<SSTableReader> sstables)
public long bytesOnDisk()
public java.lang.String toString()
toString
in class java.lang.Object
protected static java.util.Set<Component> readTOC(Descriptor descriptor) throws java.io.IOException
java.io.IOException
protected static void appendTOC(Descriptor descriptor, java.util.Collection<Component> components)
public void addComponents(java.util.Collection<Component> newComponents)
newComponents
- collection of components to be addedCopyright © 2013 The Apache Software Foundation