@InterfaceAudience.Private public class MemStoreCompactor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MemStoreCompactor.Action
Types of actions to be done on the pipeline upon MemStoreCompaction invocation.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPACTING_MEMSTORE_THRESHOLD_DEFAULT |
static String |
COMPACTING_MEMSTORE_THRESHOLD_KEY |
static long |
DEEP_OVERHEAD |
| Constructor and Description |
|---|
MemStoreCompactor(CompactingMemStore compactingMemStore,
MemoryCompactionPolicy compactionPolicy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIndexCompaction()
----------------------------------------------------------------------
The interface to check whether user requested the index-compaction
|
boolean |
start()
----------------------------------------------------------------------
The request to dispatch the compaction asynchronous task.
|
void |
stop()
----------------------------------------------------------------------
The request to cancel the compaction asynchronous task
The compaction may still happen if the request was sent too late
Non-blocking request
|
public static final String COMPACTING_MEMSTORE_THRESHOLD_KEY
public static final int COMPACTING_MEMSTORE_THRESHOLD_DEFAULT
public static final long DEEP_OVERHEAD
public MemStoreCompactor(CompactingMemStore compactingMemStore, MemoryCompactionPolicy compactionPolicy)
public boolean start()
throws IOException
IOExceptionpublic void stop()
public boolean isIndexCompaction()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.