@InterfaceAudience.Private public class CellChunkMap extends CellFlatMap
Modifier and Type | Field and Description |
---|---|
private Chunk[] |
chunks |
private int |
numOfCellRepsInChunk |
maxCellIdx, minCellIdx
Constructor and Description |
---|
CellChunkMap(Comparator<? super Cell> comparator,
Chunk[] chunks,
int min,
int max,
boolean descending)
C-tor for creating CellChunkMap from existing Chunk array, which must be ordered
(decreasingly or increasingly according to parameter "descending")
|
Modifier and Type | Method and Description |
---|---|
protected CellFlatMap |
createSubCellFlatMap(int min,
int max,
boolean descending) |
protected Cell |
getCell(int i) |
ceilingEntry, ceilingKey, clear, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
private final int numOfCellRepsInChunk
public CellChunkMap(Comparator<? super Cell> comparator, Chunk[] chunks, int min, int max, boolean descending)
comparator
- a tool for comparing cellschunks
- ordered array of index chunk with cell representationsmin
- the index of the first cell (usually 0)max
- number of Cells or the index of the cell after the maximal celldescending
- the order of the given arrayprotected CellFlatMap createSubCellFlatMap(int min, int max, boolean descending)
createSubCellFlatMap
in class CellFlatMap
protected Cell getCell(int i)
getCell
in class CellFlatMap
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.