gpt4 book ai didi

java - Druid中存储HashMap的数据结构

转载 作者:行者123 更新时间:2023-11-30 10:40:26 25 4
gpt4 key购买 nike

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

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 表存储为 HashMap 并使用以下语句查询上面的两个表:

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

谁能帮帮我?非常感谢。

最佳答案

@VanThaoNguye,

是的,您可以将 HashMap 存储在德鲁伊中,并且可以使用绑定(bind)过滤器进行查询。

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

关于java - Druid中存储HashMap的数据结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38911793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com