fluo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [1/2] incubator-fluo git commit: #639 added some string method for consistency
Date Fri, 15 Jul 2016 18:17:33 GMT
Repository: incubator-fluo
Updated Branches:
  refs/heads/master bf15cef61 -> d70b8606f


#639 added some string method for consistency


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

Branch: refs/heads/master
Commit: d2238df9da6304d1997fae6e72e9f1d17033019c
Parents: bf15cef
Author: Keith Turner <kturner@apache.org>
Authored: Fri Jul 15 13:56:03 2016 -0400
Committer: Keith Turner <kturner@apache.org>
Committed: Fri Jul 15 13:56:03 2016 -0400

----------------------------------------------------------------------
 .../org/apache/fluo/api/client/scanner/ColumnScanner.java     | 5 +++++
 .../src/main/java/org/apache/fluo/api/data/ColumnValue.java   | 7 +++++++
 .../org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java  | 5 +++++
 3 files changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fluo/blob/d2238df9/modules/api/src/main/java/org/apache/fluo/api/client/scanner/ColumnScanner.java
----------------------------------------------------------------------
diff --git a/modules/api/src/main/java/org/apache/fluo/api/client/scanner/ColumnScanner.java
b/modules/api/src/main/java/org/apache/fluo/api/client/scanner/ColumnScanner.java
index 9e790ea..dd28ce9 100644
--- a/modules/api/src/main/java/org/apache/fluo/api/client/scanner/ColumnScanner.java
+++ b/modules/api/src/main/java/org/apache/fluo/api/client/scanner/ColumnScanner.java
@@ -27,4 +27,9 @@ public interface ColumnScanner extends Iterable<ColumnValue> {
    * @return the row for all column values
    */
   Bytes getRow();
+
+  /**
+   * @return the row for all column values decoded as UTF-8
+   */
+  String getsRow();
 }

http://git-wip-us.apache.org/repos/asf/incubator-fluo/blob/d2238df9/modules/api/src/main/java/org/apache/fluo/api/data/ColumnValue.java
----------------------------------------------------------------------
diff --git a/modules/api/src/main/java/org/apache/fluo/api/data/ColumnValue.java b/modules/api/src/main/java/org/apache/fluo/api/data/ColumnValue.java
index 23a3741..4080e8c 100644
--- a/modules/api/src/main/java/org/apache/fluo/api/data/ColumnValue.java
+++ b/modules/api/src/main/java/org/apache/fluo/api/data/ColumnValue.java
@@ -45,6 +45,13 @@ public class ColumnValue implements Serializable, Comparable<ColumnValue>
{
     return val;
   }
 
+  /**
+   * @return value as UTF-8 decoded string
+   */
+  public String getsValue() {
+    return val.toString();
+  }
+
   @Override
   public int compareTo(ColumnValue o) {
     int comp = column.compareTo(o.column);

http://git-wip-us.apache.org/repos/asf/incubator-fluo/blob/d2238df9/modules/core/src/main/java/org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java
b/modules/core/src/main/java/org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java
index c85dfeb..7cde4a5 100644
--- a/modules/core/src/main/java/org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java
+++ b/modules/core/src/main/java/org/apache/fluo/core/impl/scanner/ColumnScannerImpl.java
@@ -68,4 +68,9 @@ public class ColumnScannerImpl implements ColumnScanner {
   public Bytes getRow() {
     return row;
   }
+
+  @Override
+  public String getsRow() {
+    return getRow().toString();
+  }
 }


Mime
View raw message