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)Deprecated.Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit)
-
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,ValueSet>getSummary()Provides access to the associative predicates that are part of the Constraints.inthashCode()booleanhasLimit()booleanhasNonEmptyOrderByClause()StringtoString()
-
-
-
Field Detail
-
DEFAULT_NO_LIMIT
public static final long DEFAULT_NO_LIMIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Constraints
@Deprecated public Constraints(Map<String,ValueSet> summary)
Deprecated.
-
Constraints
public Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit)
-
-
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()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-