Search code examples
searchrangeaccumulo

input arguments in setRange() in Accumulo


I have code like the following:

Scanner s = conn.createScanner("userdata", auths);
s.setRange(new Range(input));
s.fetchColumnFamily(new Text("age"));

My question is, does anyone know that what should be the "input" part in the "new Range(input)"? is the input RowId?


Solution

  • The input to Range would be what you are looking for. Have a look at the docs:

    http://accumulo.apache.org/1.6/apidocs/org/apache/accumulo/core/data/Range.html#Range(java.lang.CharSequence)

    An example might be:

    s.setRange(new Range(new Text("Foo")));