com.holonplatform.core.query

## Interface QueryAdapter<C extends QueryConfiguration>

- Type Parameters:
    `C` - Query configuration type
  All Known Subinterfaces:
    LockQueryAdapter<C>

      public interface QueryAdapter<C extends QueryConfiguration>

  Adapter to perform a query execution using a `QueryOperation`.
  Since:
    5.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<R> Stream<R>` | `stream(QueryOperation<C,R> queryOperation)` Execute a query using provided `QueryOperation` and return query results as a `Stream`.

- - ### Method Detail

    - #### stream

          <R> Stream<R> stream(QueryOperation<C,R> queryOperation)
                        throws DataAccessException

      Execute a query using provided `QueryOperation` and return query results as a `Stream`.
      Type Parameters:
        `R` - Query results type
      Parameters:
        `queryOperation` - Query operation (not null)
      Returns:
        Query results stream. The stream elements type must match the query projection type
      Throws:
        `DataAccessException` - If a query execution error occurred

Copyright © 2019 The Holon Platform. All rights reserved.