Druid中存储HashMap的数据结构

Data structure to store HashMap in Druid

我是德鲁伊新手。我的问题是如何在 Druid 中存储和查询 HashMap 使用 java 进行交互。 我有 network table 如下:

Network    f1    f1    f3  .... fn
value       1    3      2  ..... 2

另外,我还有range-time table

time             impression
2016-08-10-00      1000
2016-08-10-00      3000
2016-08-10-00      4000
2016-08-10-00      2000
2016-08-10-00      8000

在 Druid 中,我可以将 range-time table 存储为 HashMap 并使用以下语句查询上面的两个 tables:

Filter f1 = 1 and f2 = 1 and range-time between [t1, t2].

谁能帮帮我?非常感谢。

@VanThaoNguye,

是的,您可以将哈希映射存储在德鲁伊中,并且可以使用绑定过滤器进行查询。

您可以在此处阅读有关绑定过滤器的更多信息:http://druid.io/docs/latest/querying/filters.html#bound-filter