@InterfaceAudience.Private public final class SegmentFactory extends Object
public static SegmentFactory instance()
public CompositeImmutableSegment createCompositeImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments)
public ImmutableSegment createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSegmentsIterator iterator, int numOfCells, CompactingMemStore.IndexType idxType, MemStoreCompactionStrategy.Action action) throws IOException
IOException
public ImmutableSegment createImmutableSegment(CellComparator comparator)
comparator
- comparatorpublic ImmutableSegment createImmutableSegment(MutableSegment segment, MemStoreSizing memstoreSizing)
public MutableSegment createMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, MemStoreSizing memstoreSizing)
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
IOException
public ImmutableSegment createImmutableSegmentByFlattening(CSLMImmutableSegment segment, CompactingMemStore.IndexType idxType, MemStoreSizing memstoreSizing, MemStoreCompactionStrategy.Action action)
Copyright © 2007–2019 Cloudera. All rights reserved.