Class Constraints
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.domain.predicate.Constraints
-
- All Implemented Interfaces:
AutoCloseable
public class Constraints extends Object implements AutoCloseable
Container which holds and maps column names to the corresponding constraint (e.g. ValueSet).
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_NO_LIMIT
-
Constructor Summary
Constructors Constructor Description Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit, Map<String,String> queryPassthroughArguments, QueryPlan queryPlan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)List<FederationExpression>getExpression()longgetLimit()List<OrderByField>getOrderByClause()Map<String,String>getQueryPassthroughArguments()QueryPlangetQueryPlan()Map<String,ValueSet>getSummary()Provides access to the associative predicates that are part of the Constraints.inthashCode()booleanhasLimit()booleanhasNonEmptyOrderByClause()booleanisQueryPassThrough()StringtoString()
-
-
-
Field Detail
-
DEFAULT_NO_LIMIT
public static final long DEFAULT_NO_LIMIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Constraints
public Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit, Map<String,String> queryPassthroughArguments, QueryPlan queryPlan)
- Parameters:
summary-expression-orderByClause-limit-queryPassthroughArguments-queryPlan-
-
-
Method Detail
-
getSummary
public Map<String,ValueSet> getSummary()
Provides access to the associative predicates that are part of the Constraints.- Returns:
- A Map of column name to ValueSet representing the associative predicates on each column.
-
getExpression
public List<FederationExpression> getExpression()
-
getLimit
public long getLimit()
-
hasLimit
public boolean hasLimit()
-
getOrderByClause
public List<OrderByField> getOrderByClause()
-
hasNonEmptyOrderByClause
public boolean hasNonEmptyOrderByClause()
-
getQueryPlan
public QueryPlan getQueryPlan()
-
isQueryPassThrough
public boolean isQueryPassThrough()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-