Skip to content

Commit

Permalink
TEIID-4166 setting defaults for MaxDependentInPredicates and MaxInCri…
Browse files Browse the repository at this point in the history
…teriaSize for accessing JDG caches
  • Loading branch information
vhalbert committed May 27, 2016
1 parent 116d907 commit e8de472
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Expand Up @@ -51,26 +51,33 @@
@Translator(name = "infinispan-cache", description = "The Infinispan Cache Translator")
public class InfinispanCacheExecutionFactory extends ObjectExecutionFactory {

public static final int MAX_SET_SIZE = 10000;
// max available without having to try to override
// BooleanQuery.setMaxClauseCount(), and
// infinispan doesn't currently support that option.
// https://issues.jboss.org/browse/ISPN-6728
public static final int MAX_SET_SIZE = 1024;

private boolean supportsLuceneSearching = false;
private boolean supportsDSLSearching = true;

private boolean supportsCompareCriteriaOrdered = false;
private boolean supportNotCriteria = false;
private boolean supportsIsNullCriteria = false;


public InfinispanCacheExecutionFactory() {
super();
setSourceRequiredForMetadata(true);
setMaxInCriteriaSize(MAX_SET_SIZE);
setMaxDependentInPredicates(1);
setMaxDependentInPredicates(5);

setSupportsSelectDistinct(false);
setSupportsInnerJoins(true);
setSupportsFullOuterJoins(false);
setSupportsOuterJoins(true);

setSupportsDSLSearching(true);

setSupportedJoinCriteria(SupportedJoinCriteria.EQUI);

}
Expand Down
Expand Up @@ -52,15 +52,19 @@
@Translator(name = "infinispan-cache-dsl", description = "The Infinispan Translator Using DSL to Query Cache")
public class InfinispanExecutionFactory extends ObjectExecutionFactory {

public static final int MAX_SET_SIZE = 10000;
// max available without having to try to override
// BooleanQuery.setMaxClauseCount(), and
// infinispan doesn't currently support that option.
// https://issues.jboss.org/browse/ISPN-6728
public static final int MAX_SET_SIZE = 1024;

private boolean supportsCompareCriteriaOrdered = false;

public InfinispanExecutionFactory() {
super();
setSourceRequiredForMetadata(true);
setMaxInCriteriaSize(MAX_SET_SIZE);
setMaxDependentInPredicates(1);
setMaxDependentInPredicates(5);

setSupportsOrderBy(true);
setSupportsSelectDistinct(false);
Expand Down

0 comments on commit e8de472

Please sign in to comment.