Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.7.0
Description
In org.apache.accumulo.core.iterators.system.TimeSettingIterator we make a copy of the key before setting the time. Seems like this is a completely superfluous copy, and we should avoid it. In the current code we do the following:
@Override public Key getTopKey() { Key key = new Key(source.getTopKey()); key.setTimestamp(time); return key; }
Instead we should do this:
@Override public Key getTopKey() { Key key = source.getTopKey(); key.setTimestamp(time); return key; }