Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/366.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Infinispan:通过HotRod进行不区分大小写的查询_Java_Case Insensitive_Infinispan_Querying - Fatal编程技术网

Java Infinispan:通过HotRod进行不区分大小写的查询

Java Infinispan:通过HotRod进行不区分大小写的查询,java,case-insensitive,infinispan,querying,Java,Case Insensitive,Infinispan,Querying,是否可以通过Infinispan 8.1.2中的hotrod使用不区分大小写的查询? 例如: RemoteCacheManager remoteCacheManager = ...; RemoteCache<Integer, Book> remoteCache = remoteCacheManager.getCache(); Book book1 = new Book(); book1.setTitle("Hibernate"); remoteCache.put(1, book1)


是否可以通过Infinispan 8.1.2中的hotrod使用不区分大小写的查询?
例如:

RemoteCacheManager remoteCacheManager = ...;
RemoteCache<Integer, Book> remoteCache = remoteCacheManager.getCache();

Book book1 = new Book();
book1.setTitle("Hibernate");
remoteCache.put(1, book1);

Book book2 = new Book();
book2.setTile("Infinispan");
remoteCache.put(2, book2);

QueryFactory qf = Search.getQueryFactory(remoteCache);
Query query = qf.from(Book.class)
  .having("title").in("infinispan").toBuilder()
  .build();

List<Book> list = query.list(); // Voila! We have our book back from the cache!
RemoteCacheManager RemoteCacheManager=。。。;
RemoteCache RemoteCache=remoteCacheManager.getCache();
Book book1=新书();
book1.设置标题(“休眠”);
remoteCache.put(1,book1);
Book book2=新书();
第2册:固定资产(“Infinispan”);
remoteCache.put(2,book2);
QueryFactory qf=Search.getQueryFactory(远程缓存);
Query Query=qf.from(Book.class)
在(“infinispan”)toBuilder()中拥有(“所有权”)
.build();
List=query.List();//瞧!我们从缓存中取回了我们的书!
已回答