ColumnNameHelper (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.io.sstable

## Class ColumnNameHelper

- java.lang.Object
- - org.apache.cassandra.io.sstable.ColumnNameHelper

-     public class ColumnNameHelper
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ColumnNameHelper()`

  - ### Method Summary

    Methods
    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*.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ColumnNameHelper

          public ColumnNameHelper()

  - ### Method Detail

    - #### maxComponents

          public 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*.
      Parameters:
        `maxSeen` - the max columns seen so far
        `candidate` - the candidate column(s)
        `comparator` - the comparator to use
      Returns:
        a list with the max column(s)

    - #### minComponents

          public 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*.
      Parameters:
        `minSeen` - the max columns seen so far
        `candidate` - the candidate column(s)
        `comparator` - the comparator to use
      Returns:
        a list with the min column(s)

    - #### mergeMin

          public 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.
      Parameters:
        `minColumnNames` - lhs
        `candidates` - rhs
        `comparator` - comparator to use
      Returns:
        a list with smallest column names according to (sub)comparator

    - #### mergeMax

          public 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.
      Parameters:
        `maxColumnNames` - lhs
        `candidates` - rhs
        `comparator` - comparator to use
      Returns:
        a list with biggest column names according to (sub)comparator

Copyright © 2014 The Apache Software Foundation