Class SegmentFactory
java.lang.Object
org.apache.hadoop.hbase.regionserver.SegmentFactory
A singleton store segment factory. Generate concrete store segments.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompositeImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments) private ImmutableSegmentcreateImmutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, MemStoreLAB memStoreLAB, int numOfCells, MemStoreCompactionStrategy.Action action, CompactingMemStore.IndexType idxType) createImmutableSegment(CellComparator comparator) create empty immutable segment for initializations This ImmutableSegment is used as a place holder for snapshot in Memstore.createImmutableSegment(MutableSegment segment, MemStoreSizing memstoreSizing) createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) createImmutableSegmentByFlattening(CSLMImmutableSegment segment, CompactingMemStore.IndexType idxType, MemStoreSizing memstoreSizing, MemStoreCompactionStrategy.Action action) createImmutableSegmentByMerge(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, List<ImmutableSegment> segments, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) createMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSizing memstoreSizing) private MutableSegmentgenerateMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing) private MemStoreLABgetMergedMemStoreLAB(org.apache.hadoop.conf.Configuration conf, List<ImmutableSegment> segments) static SegmentFactoryinstance()
-
Field Details
-
instance
-
-
Constructor Details
-
SegmentFactory
private SegmentFactory()
-
-
Method Details
-
instance
-
createCompositeImmutableSegment
public CompositeImmutableSegment createCompositeImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments) -
createImmutableSegmentByCompaction
public ImmutableSegment createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) throws IOException - Throws:
IOException
-
createImmutableSegment
create empty immutable segment for initializations This ImmutableSegment is used as a place holder for snapshot in Memstore. It won't flush later, So it is not necessary to record the initial size for it.- Parameters:
comparator- comparator
-
createImmutableSegment
public ImmutableSegment createImmutableSegment(MutableSegment segment, MemStoreSizing memstoreSizing) -
createMutableSegment
public MutableSegment createMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSizing memstoreSizing) -
createImmutableSegmentByMerge
public ImmutableSegment createImmutableSegmentByMerge(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, List<ImmutableSegment> segments, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) throws IOException - Throws:
IOException
-
createImmutableSegmentByFlattening
public ImmutableSegment createImmutableSegmentByFlattening(CSLMImmutableSegment segment, CompactingMemStore.IndexType idxType, MemStoreSizing memstoreSizing, MemStoreCompactionStrategy.Action action) -
createImmutableSegment
private ImmutableSegment createImmutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, MemStoreLAB memStoreLAB, int numOfCells, MemStoreCompactionStrategy.Action action, CompactingMemStore.IndexType idxType) -
generateMutableSegment
private MutableSegment generateMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing) -
getMergedMemStoreLAB
private MemStoreLAB getMergedMemStoreLAB(org.apache.hadoop.conf.Configuration conf, List<ImmutableSegment> segments)
-