accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [02/15] ACCUMULO-652 initial mods to RFile to keep track of extra block statistics
Date Mon, 22 Sep 2014 20:45:00 GMT
http://git-wip-us.apache.org/repos/asf/accumulo/blob/3fcd07de/examples/wikisearch/query/src/main/java/org/apache/accumulo/examples/wikisearch/parser/EventFields.java
----------------------------------------------------------------------
diff --git a/examples/wikisearch/query/src/main/java/org/apache/accumulo/examples/wikisearch/parser/EventFields.java
b/examples/wikisearch/query/src/main/java/org/apache/accumulo/examples/wikisearch/parser/EventFields.java
index bd43088..ca2d22d 100644
--- a/examples/wikisearch/query/src/main/java/org/apache/accumulo/examples/wikisearch/parser/EventFields.java
+++ b/examples/wikisearch/query/src/main/java/org/apache/accumulo/examples/wikisearch/parser/EventFields.java
@@ -72,14 +72,14 @@ public class EventFields implements SetMultimap<String,FieldValue>,
CustomSerial
     }
     
     public int size() {
-      return visibility.flatten().length + value.length;
+      return visibility.getExpression().length + value.length;
     }
     
     @Override
     public String toString() {
       StringBuilder buf = new StringBuilder();
       if (null != visibility)
-        buf.append(" visibility: ").append(new String(visibility.flatten()));
+        buf.append(" visibility: ").append(new String(visibility.getExpression()));
       if (null != value)
         buf.append(" value size: ").append(value.length);
       if (null != value)
@@ -219,7 +219,7 @@ public class EventFields implements SetMultimap<String,FieldValue>,
CustomSerial
       // Write the key
       StringSerializer.put(buf, entry.getKey());
       // Write the fields in the value
-      valueSerializer.writeObjectData(buf, entry.getValue().getVisibility().flatten());
+      valueSerializer.writeObjectData(buf, entry.getValue().getVisibility().getExpression());
       valueSerializer.writeObjectData(buf, entry.getValue().getValue());
     }
   }


Mime
View raw message