accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kini, Ameet M." <ak...@mitre.org>
Subject setting maxVersions programatically
Date Fri, 25 May 2012 18:19:19 GMT


The docs (http://accumulo.apache.org/1.4/user_manual/Table_Configuration.html) talk about
setting maxVersions on the shell

user@myinstance mytable> config -t mytable -s
table.iterator.minc.vers.opt.maxVersions=3

I'm looking for a corresponding API call to do the same?

I tried doing this:

IteratorSetting versionSetting = new IteratorSetting(22, VersioningIterator.class);
VersioningIterator.setMaxVersions(3);
Connector.tableOperations.attachIterator(tableName, versionSetting, scopes);

But looks like that adds a second iterator at priority 22 with maxVersions=3 whereas there
is already an existing versioning iterator at a lower priority with maxVersions=1, and I end
up with only 1 version.

Thanks,
-Ameet Kini


Mime
View raw message