org.apache.olingo.ext.proxy.api

## Interface CollectionQuery<CT extends CollectionQuery<?>>

- All Superinterfaces:
    CommonQuery
  All Known Subinterfaces:
    PrimitiveCollection<T>, PrimitiveCollectionInvoker<T>, StructuredCollectionComposableInvoker<CT,O>, StructuredCollectionInvoker<CT>, StructuredCollectionQuery<CT>

      public interface CollectionQuery<CT extends CollectionQuery<?>>
      extends CommonQuery

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `CT` | `skip(int skip)` Sets the position of the first result to retrieve (`$skip`).
    `CT` | `top(int top)` Sets the maximum number of results to retrieve (`$top`).

    - ### Methods inherited from interface org.apache.olingo.ext.proxy.api.CommonQuery

      `clearQueryOptions`

- - ### Method Detail

    - #### top

          CT top(int top)
          throws IllegalArgumentException

      Sets the maximum number of results to retrieve (`$top`).
      Parameters:
        `top` - maximum number of results to retrieve
      Returns:
        the same query instance.
      Throws:
        `IllegalArgumentException` - if the argument is negative

    - #### skip

          CT skip(int skip)
           throws IllegalArgumentException

      Sets the position of the first result to retrieve (`$skip`).
      Parameters:
        `skip` - position of the first result, numbered from 0
      Returns:
        the same query instance.
      Throws:
        `IllegalArgumentException` - if the argument is negative

Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.