All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ravendb.client.documents.queries.facets.AggregationRawDocumentQuery Maven / Gradle / Ivy

package net.ravendb.client.documents.queries.facets;

import net.ravendb.client.documents.queries.IndexQuery;
import net.ravendb.client.documents.queries.QueryResult;
import net.ravendb.client.documents.session.IRawDocumentQuery;
import net.ravendb.client.documents.session.InMemoryDocumentSessionOperations;

public class AggregationRawDocumentQuery extends AggregationQueryBase {
    private final IRawDocumentQuery _source;

    public AggregationRawDocumentQuery(IRawDocumentQuery source, InMemoryDocumentSessionOperations session) {
        super(session);
        _source = source;

        if (source == null) {
            throw new IllegalArgumentException("Source cannot be null");
        }
    }

    @Override
    protected IndexQuery getIndexQuery() {
        return _source.getIndexQuery();
    }

    @Override
    protected IndexQuery getIndexQuery(boolean updateAfterQueryExecuted) {
        return _source.getIndexQuery();
    }

    @Override
    protected void invokeAfterQueryExecuted(QueryResult result) {
        _source.invokeAfterQueryExecuted(result);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy