Oracle Coherence - 列组合的不同值

时间:2014-08-16 06:01:51

标签: oracle-coherence

我想构建基于Oracle Coherence网格中两列检索不同值的查询。例如,网格包含列 InvoiceID,ProductName,Description,BookedAtTime,Updated By(etc ...)

用于检索不同值的列组合是ProductName-BookedAtTime,因此应提取具有不同Product和BookedAtTime的任何记录。这是一个包含数百万条记录的高容量网格,我需要在特定时间间隔内查看新值。

我尝试探索Coherence文档以找到构建此查询的方法, 我可以找到DistinctValues过滤器http://download.oracle.com/otn_hosted_doc/coherence/341/com/tangosol/util/aggregator/DistinctValues.html

但是,构造函数只允许使用字符串。我需要知道可以使用哪个过滤器来构建

  • 此处可用于提取值的查询
  • 从中继续从Coherence网格检索数据的最佳方法 像这样的高容量场景。

我是Coherence的新手,非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

该类具有以下构造函数:

DistinctValues(ValueExtractor extractor)

您可以使用MultiExtractor获取属性组合。

  

MultiExtractor:基于提取器数组的复合ValueExtractor实现。数组中的所有提取器都应用于同一目标对象,提取结果是提取值列表。

     

使用MultiExtractor的常见方案涉及DistinctValues或GroupAggregator聚合器,它们允许客户端收集给定属性集的所有不同组合,或者针对相应的条目组收集和运行其他聚合。

     

请参阅:   http://download.oracle.com/otn_hosted_doc/coherence/341/com/tangosol/util/extractor/MultiExtractor.html

相关问题