SingleColumnValueFilter 过滤数据时候,返回的数据不正常问题
来源:互联网 发布:js math 编辑:程序博客网 时间:2024/05/29 19:00
SingleColumnValueFilter 过滤数据时候,返回的数据不正常问题
这是因为 忽略了SingleColumnValueFilter 的一个参数问题。
hbase 权威指南文档原文:
The filter class also exposes a few auxiliary methods you can use to
fine tune its behavior:
boolean getFilterIfMissing()
void setFilterIfMissing(boolean filterIfMissing)
boolean getLatestVersionOnly()
void setLatestVersionOnly(boolean latestVersionOnly)
The former controls what happens to rows that do not have the
column at all. By default they are included in the result, but you can
use setFilterIfMissing(true) to reverse that behavior, i.e., all
rows that do not have the reference column are dropped from the
result.
266
Note
You must include the column you want to filter by, i.e., the reference
column, into the families you query for - using addColumn() for
example. If you fail to do so the column is considered missing and the
result is either empty, or contains all rows, based on the
getFilterIfMissing() result.
要过滤的列必须存在,如果不存在,那么这些列不存在的数据也会返回。如果不想让这些数据返回,做如下设置即可。
filter.setFilterIfMissing(true);
- SingleColumnValueFilter 过滤数据时候,返回的数据不正常问题
- hbase的过滤 Filter 之SingleColumnValueFilter
- [iOS] 过滤后台返回nil的数据
- 在使用ThinkPHP时候数据更新的时候,save()方法返回值为0的问题!!!!
- sqlite3 插入数据的时候,返回SQLITE_CONSTRAINT
- 关于ajax获取数据时候的返回
- iOS开发:过滤网络请求中,服务器返回空值null数据的处理(过滤null显示问题)
- pb数据窗口saveas成xml的时候返回-1的问题处理
- pb数据窗口saveas成xml的时候返回-1的问题处理
- Scrollview嵌套listView数据显示不正常问题
- Mybatis数据过滤问题
- 返回的json数据中过滤掉值是null的属性
- Oracle数据字典的用户过滤问题
- 我能用Windows PowerShell做什么:过滤返回的数据
- springmvc 过滤 不返回值为NULL的数据
- Spring MVC 接口返回的json数据过滤空值
- 导入excel数据时候的问题
- 报表分组统计然后显示数据的时候顺序不正常,即使用order by 也是不可以!见图
- MyEclipse8.5注册码java生成代码(示例代码,亲测)
- Guava缓存器源码分析——CacheBuilderSpec
- cocos2d-x商业级游戏开发第一章——认识cocos2d-x以及cocos2d-x在windows下的开发环境配置
- BALS SCR
- 车载网络,CAN与LIN等
- SingleColumnValueFilter 过滤数据时候,返回的数据不正常问题
- 色调反向投影找特定的内容
- Anagrams (神奇的单词集合)【leetcode】
- GetLastWriteTime-Methode
- Guava缓存器源码分析——CacheBuilder
- Oracle 自动备份 windows 任务计划, 创建表空间,打开1521端口,安装错误解决
- 简单设置固定大小的窗口activity
- 线程和进程的区别
- Java解析CSV文件