@InterfaceAudience.Private public class MemStoreWrapper extends Object
| Constructor and Description |
|---|
MemStoreWrapper(org.apache.hadoop.mapreduce.Reducer.Context context,
org.apache.hadoop.fs.FileSystem fs,
HTable table,
HColumnDescriptor hcd,
MemStore memstore,
CacheConfig cacheConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToMemstore(KeyValue kv)
Adds a KeyValue into the memstore.
|
void |
flushMemStore()
Flushes the memstore anyway.
|
void |
setPartitionId(SweepReducer.SweepPartitionId partitionId) |
public MemStoreWrapper(org.apache.hadoop.mapreduce.Reducer.Context context,
org.apache.hadoop.fs.FileSystem fs,
HTable table,
HColumnDescriptor hcd,
MemStore memstore,
CacheConfig cacheConfig)
throws IOException
IOExceptionpublic void setPartitionId(SweepReducer.SweepPartitionId partitionId)
public void flushMemStore()
throws IOException
IOExceptionpublic void addToMemstore(KeyValue kv) throws IOException
kv - The KeyValue to be added.IOExceptionCopyright © 2007–2016 Cloudera. All rights reserved.