Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有如下代码:
Scanner s = conn.createScanner("userdata", auths); s.setRange(new Range(input)); s.fetchColumnFamily(new Text("age"));
我的问题是,有谁知道“新范围(输入)”中的“输入”部分应该是什么?是输入 RowId 吗?
输入Range将是您正在寻找的内容。看看文档:
Range
http://accumulo.apache.org/1.6/apidocs/org/apache/accumulo/core/data/Range.html#Range(java.lang.CharSequence)
一个例子可能是:
s.setRange(new Range(new Text("Foo")));