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 long
DEFAULT_NO_LIMIT
-
Constructor Summary
Constructors Constructor Description Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit)
Deprecated.Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit, Map<String,String> queryPassthroughArguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
List<FederationExpression>
getExpression()
long
getLimit()
List<OrderByField>
getOrderByClause()
Map<String,String>
getQueryPassthroughArguments()
Map<String,ValueSet>
getSummary()
Provides access to the associative predicates that are part of the Constraints.int
hashCode()
boolean
hasLimit()
boolean
hasNonEmptyOrderByClause()
boolean
isQueryPassThrough()
String
toString()
-
-
-
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, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit)
Deprecated.
-
Constraints
public Constraints(Map<String,ValueSet> summary, List<FederationExpression> expression, List<OrderByField> orderByClause, long limit, Map<String,String> queryPassthroughArguments)
- Parameters:
summary
-expression
-orderByClause
-limit
-queryPassthroughArguments
-
-
-
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()
-
isQueryPassThrough
public boolean isQueryPassThrough()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-