Interface SortedSegmentedIndex

  • All Superinterfaces:
    Index
    All Known Subinterfaces:
    InlineIndex
    All Known Implementing Classes:
    InlineIndexImpl

    public interface SortedSegmentedIndex
    extends Index
    Interface for sorted and segmented Ignite indexes.
    • Method Detail

      • find

        GridCursor<IndexRow> find​(@Nullable
                                  @Nullable IndexRow lower,
                                  @Nullable
                                  @Nullable IndexRow upper,
                                  boolean lowerIncl,
                                  boolean upperIncl,
                                  int segment,
                                  IndexQueryContext qryCtx)
                           throws IgniteCheckedException
        Finds index rows by specified range in specifed tree segment with cache filtering. Range can be bound or unbound.
        Parameters:
        lower - Nullable lower bound.
        upper - Nullable upper bound.
        lowerIncl - true for inclusive lower bound, otherwise false.
        upperIncl - true for inclusive upper bound, otherwise false.
        segment - Number of tree segment to find.
        qryCtx - External index query context.
        Returns:
        Cursor of found index rows.
        Throws:
        IgniteCheckedException
      • find

        GridCursor<IndexRow> find​(@Nullable
                                  @Nullable IndexRow lower,
                                  @Nullable
                                  @Nullable IndexRow upper,
                                  boolean lowerIncl,
                                  boolean upperIncl,
                                  IndexQueryContext qryCtx)
                           throws IgniteCheckedException
        Finds index rows by specified range in all tree segments with cache filtering. Range can be bound or unbound.
        Parameters:
        lower - Nullable lower bound.
        upper - Nullable upper bound.
        lowerIncl - true for inclusive lower bound, otherwise false.
        upperIncl - true for inclusive upper bound, otherwise false.
        qryCtx - External index query context.
        Returns:
        Cursor of found index rows.
        Throws:
        IgniteCheckedException
      • count

        long count​(int segment)
            throws IgniteCheckedException
        Counts index rows in specified tree segment.
        Parameters:
        segment - Number of tree segment to find.
        Returns:
        count of index rows for specified segment.
        Throws:
        IgniteCheckedException
      • count

        long count​(int segment,
                   IndexQueryContext qryCtx)
            throws IgniteCheckedException
        Counts index rows in specified tree segment with cache filter.
        Parameters:
        segment - Number of tree segment to find.
        qryCtx - Index query context.
        Returns:
        count of index rows for specified segment.
        Throws:
        IgniteCheckedException
      • segmentsCount

        int segmentsCount()
        Returns amount of index tree segments.
        Returns:
        amount of index tree segments.