com.exasol.adapter.document.queryplan.FetchQueryPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtual-schema-common-document Show documentation
Show all versions of virtual-schema-common-document Show documentation
Common module of Exasol Virtual Schema Adapters for Document Data Sources.
The newest version!
package com.exasol.adapter.document.queryplan;
import java.util.List;
import com.exasol.adapter.document.UdfCallBuilder;
import com.exasol.adapter.document.documentfetcher.DocumentFetcher;
import com.exasol.adapter.document.querypredicate.QueryPredicate;
/**
* This class describes a non-empty {@link QueryPlan} for execution of a query.
*/
public class FetchQueryPlan implements QueryPlan {
private final List documentFetcher;
private final QueryPredicate postSelection;
/**
* Create a new instance of {@link FetchQueryPlan}.
*
* @param documentFetcher {@link DocumentFetcher}s that will be executed as UDFs
* @param postSelection post selection that will be added to the push down SQL by the {@link UdfCallBuilder}.
*/
public FetchQueryPlan(final List documentFetcher, final QueryPredicate postSelection) {
this.documentFetcher = documentFetcher;
this.postSelection = postSelection;
}
/**
* Get the {@link DocumentFetcher}s.
*
* @return {@link DocumentFetcher}s that will be executed as UDFs
*/
public List getDocumentFetcher() {
return this.documentFetcher;
}
/**
* Get the post selection.
*
* @return post selection that will be added to the push down SQL by the {@link UdfCallBuilder}
*/
public QueryPredicate getPostSelection() {
return this.postSelection;
}
}