com.h3c.util.persistence.cassandra.index

## Interface SecondaryIndexIntegrator.SecondaryIndexReader<C extends Serializable & Comparable<C>>

- Type Parameters:
    `C` - type of the column name in the secondary index column family (row key in the main column family or composite value when sorting information is included).
  Enclosing class:
    SecondaryIndexIntegrator

      public static interface SecondaryIndexIntegrator.SecondaryIndexReader<C extends Serializable & Comparable<C>>

  Secondary index reader. This reader encapsulates the result to be combined with other indexes.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `count()` Returns the size of the query for the particular index.
    `List<Column<C,?>>` | `read()` Reads the index.
    `List<Column<C,?>>` | `read(List<ColumnName<C,?>> indexEntries)` Reads the index entries.

- - ### Method Detail

    - #### count

          long count()

      Returns the size of the query for the particular index.
      Returns:
        the size of the query.

    - #### read

          List<Column<C,?>> read()

      Reads the index.
      Returns:
        the index content.

    - #### read

          List<Column<C,?>> read(List<ColumnName<C,?>> indexEntries)

      Reads the index entries.
      Parameters:
        `indexEntries` - index entries to read.
      Returns:
        the list of indexed columns with the denormalized data. Any entry that does not exist should not be included in the result.

Copyright © 2014. All Rights Reserved.