2 . .
(51) 国 际 专 利 分 类 号 : (72) 发 明 人 :毕 杰 山 (BI, Jieshan) : 中 国 广 东 省 深 圳
G06F 9/50 (2006.01)
市 龙 岗 区 坂 田 华 为 总 部 办 公 楼 , Guangdong
(21) 国 际 申 请 号 :
PCT/CN2018/100561
5 18129 (CN) 。 钟 超 强 (ZHONG ,Chaoqiang) ; 中
国 广 东 省 深 圳 市 龙 岗 区 坂 田 华 为 总 部 办
(22) 国 际 申 请 曰 :
2018 年 8 月 15 日 (15.08.2018)
公 楼 ,Guangdong 518129 (CN ) 。
(25) 申 请 语 言 :
中 文
(81 ) 指 定 国 ( 除 另 有 指 明 , 要 求 每 一 种 可 提 供 的 国 家
(26) 公 布 语 言 :
中 文
保 护 ) :AE, AG, AL, AM, AO, AT, AU, AZ, BA, BB, BG,
B H ,BN, BR, BW, BY, BZ, CA, CH, CL, CN, CO, CR, CU ,
(30) 优 先 权 :
CZ, D E ,D J,D K ,DM, DO, D Z ,EC, EE, E G,E S,FI, GB ,
201810168880. 1 2018 年 2 月 28 日 (28.02.2018) CN
GD, GE, GH, GM, GT, HN, HR, HU, ID, IL, IN, IR ,I S,
(71) 申 请 人 : 华 为 技 术 有 限 公 司 (HUAWEI
JO, JP, KE, KG, KH, KN, KP, KR, KW, KZ, LA, L C ,L K ,
TECHNOLOGIES CO., LTD.) [CN/CN] ; 中 国 广 东
L R ,LS, LU, LY, MA, MD, ME, MG, MK, MN, MW, MX,
省 深 圳 市 龙 岗 区 坂 田 华 为 总 部 办 公 楼 ,
MY, MZ, NA, N G,NI, NO, NZ, OM, PA, PE, PG, PH, PL ,
Guangdong 5 18129 (CN ) 。
PT ,QA, RO, RS, RU, RW, SA, SC, SD, SE, SG, SK, SL ,
(54) Title :SAMPLING QUERY METHOD AND DEVICE
(54) 发 明 名 称 : 一 种 抽 样 查 询 的 方 法 和 装 置
(57) Abstract: A sampling query method and device. The method comprises: obtaining a query condition; determining, according t o
a sampling query ratio, N target index partitions from among M index partitions so that the ratio between N and M corresponds t o
= the sampling query ratio, wherein the M index partitions are index partitions to be queried that are determined according to a query
condition, M i s an integer greater than 1,N i s an integer greater than or equal to 1, and N i s less than M ; according to the query condition,
querying data in the N target index partitions, and generating a query result according to the queried data, the query result comprising
at least one of the following items: the amount of data which meets the query condition i n the M index partitions, and data which meets
the query condition i n the N target index partitions; and feeding back the query result. Therefore, a response time delay for feeding
back the query result may b e effectively shortened ,and the user experience may be improved.
(57) 摘 要 : 一 种 抽 样 查 询 的 方 法 和 装 置 。 该 方 法 包 括 : 获 取 查 询 条 件 ; 根 据 抽 样 查 询 比 例 , 从 M 个 索 引 分
VO 区 中 确 定 N 个 目 标 索 引 分 区 , 以 使 得 N 与 M 的 比 值 与 该 抽 样 查 询 比 例 对 应 , 其 中 , 该 M 个 索 引 分 区 为 根 据
S 该 查 询 条 件 确 定 的 待 查 询 索 引 分 区 , M 为 大 于 1 的 整 数 , N 为 大 于 或 等 于 1的 整 数 , 并 且 , N 小 于 M ; 根 据
)
0 该 查 询 条 件 在 该 N 个 目 标 索 引 分 区 中 查 询 数 据 , 并 根 据 查 询 到 的 数 据 生 成 查 询 结 果 , 该 查 询 结 果 包 括 以
下 至 少 一 项 : 该 M 个 索 引 分 区 中 满 足 该 查 询 条 件 的 数 据 的 数 量 、 该 N 个 目标 索 引 分 区 中 满 足 该 查 询 条 件 的
S 数 据 ; 反 馈 该 查 询 结 果 。 这 样 , 能 够 有 效 减 少 反 馈 查 询 结 果 的 响 应 时 延 , 提 高 用 户 体 验 。
O
[ 见 续 页 ]
评论