@InterfaceAudience.Private public final class SegmentFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
CompositeImmutableSegment |
createCompositeImmutableSegment(org.apache.hadoop.hbase.CellComparator comparator,
List<ImmutableSegment> segments) |
ImmutableSegment |
createImmutableSegment(org.apache.hadoop.hbase.CellComparator comparator)
create empty immutable segment for initializations
This ImmutableSegment is used as a place holder for snapshot in Memstore.
|
ImmutableSegment |
createImmutableSegment(MutableSegment segment,
MemStoreSizing memstoreSizing) |
ImmutableSegment |
createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.CellComparator comparator,
MemStoreSegmentsIterator iterator,
int numOfCells,
CompactingMemStore.IndexType idxType,
MemStoreCompactionStrategy.Action action) |
ImmutableSegment |
createImmutableSegmentByFlattening(CSLMImmutableSegment segment,
CompactingMemStore.IndexType idxType,
MemStoreSizing memstoreSizing,
MemStoreCompactionStrategy.Action action) |
ImmutableSegment |
createImmutableSegmentByMerge(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.CellComparator comparator,
MemStoreSegmentsIterator iterator,
int numOfCells,
List<ImmutableSegment> segments,
CompactingMemStore.IndexType idxType,
MemStoreCompactionStrategy.Action action) |
MutableSegment |
createMutableSegment(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.CellComparator comparator,
MemStoreSizing memstoreSizing) |
static SegmentFactory |
instance() |
public static SegmentFactory instance()
public CompositeImmutableSegment createCompositeImmutableSegment(org.apache.hadoop.hbase.CellComparator comparator, List<ImmutableSegment> segments)
public ImmutableSegment createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) throws IOException
IOExceptionpublic ImmutableSegment createImmutableSegment(org.apache.hadoop.hbase.CellComparator comparator)
comparator - comparatorpublic ImmutableSegment createImmutableSegment(MutableSegment segment, MemStoreSizing memstoreSizing)
public MutableSegment createMutableSegment(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparator comparator, MemStoreSizing memstoreSizing)
public ImmutableSegment createImmutableSegmentByMerge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, List<ImmutableSegment> segments, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) throws IOException
IOExceptionpublic ImmutableSegment createImmutableSegmentByFlattening(CSLMImmutableSegment segment, CompactingMemStore.IndexType idxType, MemStoreSizing memstoreSizing, MemStoreCompactionStrategy.Action action)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.