accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject git commit: ACCUMULO-1471: more doc on SortedMapIterator explaining what you want if you're just looking for a simple Map-backed Iterator
Date Thu, 31 Oct 2013 16:01:23 GMT
Updated Branches:
  refs/heads/1.5.1-SNAPSHOT ee37ea49d -> e328eab6e


ACCUMULO-1471: more doc on SortedMapIterator explaining what you want if you're just looking
for a simple Map-backed Iterator

Signed-off-by: John Vines <jvines@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/e328eab6
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/e328eab6
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/e328eab6

Branch: refs/heads/1.5.1-SNAPSHOT
Commit: e328eab6e25f3d3bbcb7e4ed2690c1373e8d2a26
Parents: ee37ea4
Author: Michael Berman <mberman@sqrrl.com>
Authored: Thu Oct 31 11:32:47 2013 -0400
Committer: John Vines <jvines@gmail.com>
Committed: Thu Oct 31 12:00:02 2013 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/core/iterators/SortedMapIterator.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/e328eab6/core/src/main/java/org/apache/accumulo/core/iterators/SortedMapIterator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/iterators/SortedMapIterator.java
b/core/src/main/java/org/apache/accumulo/core/iterators/SortedMapIterator.java
index 8928bb2..2371e4d 100644
--- a/core/src/main/java/org/apache/accumulo/core/iterators/SortedMapIterator.java
+++ b/core/src/main/java/org/apache/accumulo/core/iterators/SortedMapIterator.java
@@ -33,6 +33,12 @@ import org.apache.accumulo.core.iterators.system.InterruptibleIterator;
 /**
  * A simple iterator over a Java SortedMap
  * 
+ * Note that this class is intended as an in-memory replacement for RFile$Reader, so its
behavior reflects
+ * the same assumptions; namely, that this iterator is not responsible for respecting the
columnFamilies
+ * passed into seek().  If you want a Map-backed Iterator that returns only sought CFs, construct
a new 
+ * ColumnFamilySkippingIterator(new SortedMapIterator(map)).
+ * 
+ * @see org.apache.accumulo.core.iterators.system.ColumnFamilySkippingIterator
  * 
  */
 


Mime
View raw message