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,
java.nio.ByteBuffer candidate,
AbstractType<?> comparator)
finds the max column name(s)
if comparator is of CompositeType, candidate will be split into its components, and each
component is compared to the component on the same place in maxSeen, and then returning the list
with the max columns.
|
static java.util.List<java.nio.ByteBuffer> |
mergeMax(java.util.List<java.nio.ByteBuffer> maxColumnNames,
java.util.List<java.nio.ByteBuffer> candidates,
AbstractType<?> columnNameComparator)
if columnNameComparator is CompositeType the columns are compared by components using the subcomparator
on the same position.
|
static java.util.List<java.nio.ByteBuffer> |
mergeMin(java.util.List<java.nio.ByteBuffer> minColumnNames,
java.util.List<java.nio.ByteBuffer> candidates,
AbstractType<?> columnNameComparator)
if columnNameComparator is CompositeType the columns are compared by components using the subcomparator
on the same position.
|
static java.util.List<java.nio.ByteBuffer> |
minComponents(java.util.List<java.nio.ByteBuffer> minSeen,
java.nio.ByteBuffer candidate,
AbstractType<?> comparator)
finds the min column name(s)
if comparator is of CompositeType, candidate will be split into its components, and each
component is compared to the component on the same place in minSeen, and then returning the list
with the min columns.
|
public static java.util.List<java.nio.ByteBuffer> maxComponents(java.util.List<java.nio.ByteBuffer> maxSeen, java.nio.ByteBuffer candidate, AbstractType<?> 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, java.nio.ByteBuffer candidate, AbstractType<?> 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, AbstractType<?> columnNameComparator)
minColumnNames
- lhscandidates
- rhscolumnNameComparator
- 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, AbstractType<?> columnNameComparator)
maxColumnNames
- lhscandidates
- rhscolumnNameComparator
- comparator to useCopyright © 2015 The Apache Software Foundation