Skip to content

Commit

Permalink
TEIID-3054 added support for negation, some cleanup and adding tracin…
Browse files Browse the repository at this point in the history
…g to show which type of searching is being used
  • Loading branch information
vhalbert committed Jul 28, 2014
1 parent c9a7b36 commit 2ebfa94
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
Expand Up @@ -65,21 +65,6 @@ public ResultSetExecution createResultSetExecution(QueryExpression command,
return new ObjectExecution((Select) command, metadata, this, connection, executionContext);
}

@Override
public boolean supportsInnerJoins() {
return false;
}

@Override
public boolean supportsOuterJoins() {
return false;
}

@Override
public boolean supportsFullOuterJoins() {
return false;
}

@Override
public boolean supportsCompareCriteriaEquals() {
return true;
Expand All @@ -94,6 +79,7 @@ public boolean supportsInCriteria() {
public boolean supportsOnlyLiteralComparison() {
return true;
}

public List<Object> search(Select command, String cacheName, ObjectConnection connection,ExecutionContext executionContext) throws TranslatorException {
SearchByKey sbk = new SearchByKey();
Class<?> type = connection.getType(cacheName);
Expand Down
Expand Up @@ -45,6 +45,9 @@ public class SearchByKey {

public List<Object> search(Select command, Class<?> rootClass, String cacheName, CacheContainerWrapper cache)
throws TranslatorException {
LogManager.logTrace(LogConstants.CTX_CONNECTOR,
"Perform search by key."); //$NON-NLS-1$

Condition criterion = command.getWhere();
List<Object> results = new ArrayList<Object>();

Expand Down
Expand Up @@ -80,6 +80,10 @@ public boolean supportsCompareCriteriaOrdered() {
return isFullTextSearchingSupported();
}

@Override
public boolean supportsNotCriteria() {
return isFullTextSearchingSupported(); }

@Override
public boolean supportsLikeCriteria() {
// at this point, i've been unable to get the Like to work.
Expand Down
Expand Up @@ -56,6 +56,9 @@ public final class LuceneSearch {

public static List<Object> performSearch(Select command, Class<?> type, String cacheName, CacheContainerWrapper cache)
throws TranslatorException {
LogManager.logTrace(LogConstants.CTX_CONNECTOR,
"Perform lucene search."); //$NON-NLS-1$

//Map<?, ?> cache,
SearchManager searchManager = Search
.getSearchManager((Cache<?, ?>) cache.getCache(cacheName) );
Expand Down

0 comments on commit 2ebfa94

Please sign in to comment.