Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-9180 Remote compat mode from remote query
- Loading branch information
Showing
26 changed files
with
318 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
...rver/src/main/java/org/infinispan/query/remote/impl/AbstractCompatRemoteQueryManager.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...query-server/src/main/java/org/infinispan/query/remote/impl/CompatibilityQueryEngine.java
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
...erver/src/main/java/org/infinispan/query/remote/impl/GenericCompatRemoteQueryManager.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...-query-server/src/main/java/org/infinispan/query/remote/impl/ObjectReflectionMatcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
package org.infinispan.query.remote.impl; | |||
|
|||
import org.hibernate.search.spi.SearchIntegrator; | |||
import org.infinispan.objectfilter.impl.ReflectionMatcher; | |||
import org.infinispan.objectfilter.impl.syntax.parser.EntityNameResolver; | |||
import org.infinispan.query.dsl.embedded.impl.HibernateSearchPropertyHelper; | |||
|
|||
/** | |||
* @since 9.4 | |||
*/ | |||
final class ObjectReflectionMatcher extends ReflectionMatcher { | |||
|
|||
private ObjectReflectionMatcher(HibernateSearchPropertyHelper hibernateSearchPropertyHelper) { | |||
super(hibernateSearchPropertyHelper); | |||
} | |||
|
|||
private ObjectReflectionMatcher(EntityNameResolver entityNameResolver) { | |||
super(entityNameResolver); | |||
} | |||
|
|||
static ObjectReflectionMatcher create(EntityNameResolver entityNameResolver, SearchIntegrator searchIntegrator) { | |||
if (searchIntegrator == null) return new ObjectReflectionMatcher(entityNameResolver); | |||
return new ObjectReflectionMatcher(new HibernateSearchPropertyHelper(searchIntegrator, entityNameResolver)); | |||
} | |||
|
|||
} |
16 changes: 16 additions & 0 deletions
16
...-query-server/src/main/java/org/infinispan/query/remote/impl/ObjectRemoteQueryEngine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
package org.infinispan.query.remote.impl; | |||
|
|||
import org.infinispan.AdvancedCache; | |||
import org.infinispan.commons.dataconversion.IdentityEncoder; | |||
import org.infinispan.objectfilter.Matcher; | |||
|
|||
/** | |||
* @author anistor@redhat.com | |||
* @since 9.0 | |||
*/ | |||
final class ObjectRemoteQueryEngine extends BaseRemoteQueryEngine { | |||
|
|||
ObjectRemoteQueryEngine(AdvancedCache<?, ?> cache, Class<? extends Matcher> matcherImplClass, boolean isIndexed) { | |||
super(cache.getAdvancedCache().withEncoding(IdentityEncoder.class), isIndexed, matcherImplClass, null); | |||
} | |||
} |
Oops, something went wrong.