public class ColumnNameHelper
extends java.lang.Object
Constructor and Description |
---|
ColumnNameHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.nio.ByteBuffer> |
maxComponents(java.util.List<java.nio.ByteBuffer> maxSeen,
Composite candidate,
CellNameType comparator)
finds the max cell name component(s)
Note that this method *can modify maxSeen*.
|
static java.util.List<java.nio.ByteBuffer> |
mergeMax(java.util.List<java.nio.ByteBuffer> maxColumnNames,
java.util.List<java.nio.ByteBuffer> candidates,
CellNameType comparator)
Merge 2 lists of max cell name components.
|
static java.util.List<java.nio.ByteBuffer> |
mergeMin(java.util.List<java.nio.ByteBuffer> minColumnNames,
java.util.List<java.nio.ByteBuffer> candidates,
CellNameType comparator)
Merge 2 lists of min cell name components.
|
static java.util.List<java.nio.ByteBuffer> |
minComponents(java.util.List<java.nio.ByteBuffer> minSeen,
Composite candidate,
CellNameType comparator)
finds the min cell name component(s)
Note that this method *can modify maxSeen*.
|
static boolean |
overlaps(java.util.List<java.nio.ByteBuffer> minColumnNames1,
java.util.List<java.nio.ByteBuffer> maxColumnNames1,
java.util.List<java.nio.ByteBuffer> minColumnNames2,
java.util.List<java.nio.ByteBuffer> maxColumnNames2,
CellNameType comparator)
Checks if the given min/max column names could overlap (i.e they could share some column names based on the max/min column names in the sstables)
|
public static java.util.List<java.nio.ByteBuffer> maxComponents(java.util.List<java.nio.ByteBuffer> maxSeen, Composite candidate, CellNameType comparator)
maxSeen
- the max columns seen so farcandidate
- the candidate column(s)comparator
- the comparator to usepublic static java.util.List<java.nio.ByteBuffer> minComponents(java.util.List<java.nio.ByteBuffer> minSeen, Composite candidate, CellNameType comparator)
minSeen
- the max columns seen so farcandidate
- the candidate column(s)comparator
- the comparator to usepublic static java.util.List<java.nio.ByteBuffer> mergeMin(java.util.List<java.nio.ByteBuffer> minColumnNames, java.util.List<java.nio.ByteBuffer> candidates, CellNameType comparator)
minColumnNames
- lhscandidates
- rhscomparator
- comparator to usepublic static java.util.List<java.nio.ByteBuffer> mergeMax(java.util.List<java.nio.ByteBuffer> maxColumnNames, java.util.List<java.nio.ByteBuffer> candidates, CellNameType comparator)
maxColumnNames
- lhscandidates
- rhscomparator
- comparator to usepublic static boolean overlaps(java.util.List<java.nio.ByteBuffer> minColumnNames1, java.util.List<java.nio.ByteBuffer> maxColumnNames1, java.util.List<java.nio.ByteBuffer> minColumnNames2, java.util.List<java.nio.ByteBuffer> maxColumnNames2, CellNameType comparator)
Copyright © 2020 The Apache Software Foundation