2

我是德鲁伊的新手。我的问题是如何在 Druid 中使用 java 来存储和查询 HashMap 进行交互。我有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表存储为 aHashMap并使用以下语句查询上面的两个表:

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

谁能帮我 ?非常感谢。

4

1 回答 1

1

@VanThaoNguye,

是的,您可以将哈希图存储在 druid 中,并且可以使用绑定过滤器进行查询。

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

于 2017-03-30T20:40:13.953 回答