@InterfaceAudience.Private public abstract class CellFlatMap extends Object implements NavigableMap<Cell,Cell>
Modifier and Type | Class and Description |
---|---|
private class |
CellFlatMap.CellFlatMapCollection |
private static class |
CellFlatMap.CellFlatMapEntry |
private class |
CellFlatMap.CellFlatMapIterator |
Modifier and Type | Field and Description |
---|---|
private Comparator<? super Cell> |
comparator |
private boolean |
descending |
private static org.slf4j.Logger |
LOG |
protected int |
maxCellIdx |
protected int |
minCellIdx |
Constructor and Description |
---|
CellFlatMap(Comparator<? super Cell> comparator,
int min,
int max,
boolean d) |
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 static final org.slf4j.Logger LOG
private final Comparator<? super Cell> comparator
protected int minCellIdx
protected int maxCellIdx
private boolean descending
public CellFlatMap(Comparator<? super Cell> comparator, int min, int max, boolean d)
protected abstract CellFlatMap createSubCellFlatMap(int min, int max, boolean descending)
private int find(Cell needle)
needle
- The key to look for in all of the entriesprivate int getValidIndex(Cell key, boolean inclusive, boolean tail)
public Comparator<? super Cell> comparator()
comparator
in interface SortedMap<Cell,Cell>
public NavigableMap<Cell,Cell> subMap(Cell fromKey, boolean fromInclusive, Cell toKey, boolean toInclusive)
subMap
in interface NavigableMap<Cell,Cell>
public NavigableMap<Cell,Cell> headMap(Cell toKey, boolean inclusive)
headMap
in interface NavigableMap<Cell,Cell>
public NavigableMap<Cell,Cell> tailMap(Cell fromKey, boolean inclusive)
tailMap
in interface NavigableMap<Cell,Cell>
public NavigableMap<Cell,Cell> descendingMap()
descendingMap
in interface NavigableMap<Cell,Cell>
public NavigableMap<Cell,Cell> headMap(Cell k)
public NavigableMap<Cell,Cell> tailMap(Cell k)
public Cell ceilingKey(Cell k)
ceilingKey
in interface NavigableMap<Cell,Cell>
public Cell higherKey(Cell k)
higherKey
in interface NavigableMap<Cell,Cell>
public boolean containsKey(Object o)
containsKey
in interface Map<Cell,Cell>
public boolean containsValue(Object o)
containsValue
in interface Map<Cell,Cell>
public Map.Entry<Cell,Cell> lowerEntry(Cell k)
lowerEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> higherEntry(Cell k)
higherEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> ceilingEntry(Cell k)
ceilingEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> floorEntry(Cell k)
floorEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> firstEntry()
firstEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> lastEntry()
lastEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> pollFirstEntry()
pollFirstEntry
in interface NavigableMap<Cell,Cell>
public Map.Entry<Cell,Cell> pollLastEntry()
pollLastEntry
in interface NavigableMap<Cell,Cell>
public NavigableSet<Cell> navigableKeySet()
navigableKeySet
in interface NavigableMap<Cell,Cell>
public NavigableSet<Cell> descendingKeySet()
descendingKeySet
in interface NavigableMap<Cell,Cell>
public NavigableSet<Cell> keySet()
public Collection<Cell> values()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.