hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r566291 - in /lucene/hadoop/trunk/src/contrib/hbase: CHANGES.txt src/java/org/apache/hadoop/hbase/HAbstractScanner.java src/java/org/apache/hadoop/hbase/HScannerInterface.java src/java/org/apache/hadoop/hbase/HTable.java
Date Wed, 15 Aug 2007 18:20:54 GMT
Author: jimk
Date: Wed Aug 15 11:20:53 2007
New Revision: 566291

URL: http://svn.apache.org/viewvc?view=rev&rev=566291
Log:
HADOOP-1711 HTable API should use interfaces instead of concrete classes as method parameters
and return values

Modified:
    lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
    lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HAbstractScanner.java
    lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HScannerInterface.java
    lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java

Modified: lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt?view=diff&rev=566291&r1=566290&r2=566291
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt (original)
+++ lucene/hadoop/trunk/src/contrib/hbase/CHANGES.txt Wed Aug 15 11:20:53 2007
@@ -93,4 +93,5 @@
      serve daughter splits. Phase 2: Master assigns children of split region
      instead of HRegionServer serving both children.
  58. HADOOP-1710 All updates should be batch updates
-
+ 59. HADOOP-1711 HTable API should use interfaces instead of concrete classes as
+     method parameters and return values

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HAbstractScanner.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HAbstractScanner.java?view=diff&rev=566291&r1=566290&r2=566291
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HAbstractScanner.java
(original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HAbstractScanner.java
Wed Aug 15 11:20:53 2007
@@ -206,7 +206,7 @@
    * @return true if a match was found
    * @throws IOException
    * 
-   * @see org.apache.hadoop.hbase.HScannerInterface#next(org.apache.hadoop.hbase.HStoreKey,
java.util.TreeMap)
+   * @see org.apache.hadoop.hbase.HScannerInterface#next(org.apache.hadoop.hbase.HStoreKey,
java.util.SortedMap)
    */
   public boolean next(HStoreKey key, TreeMap<Text, byte []> results)
   throws IOException {

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HScannerInterface.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HScannerInterface.java?view=diff&rev=566291&r1=566290&r2=566291
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HScannerInterface.java
(original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HScannerInterface.java
Wed Aug 15 11:20:53 2007
@@ -19,10 +19,10 @@
  */
 package org.apache.hadoop.hbase;
 
-import org.apache.hadoop.io.*;
+import org.apache.hadoop.io.Text;
 
-import java.io.*;
-import java.util.*;
+import java.io.IOException;
+import java.util.SortedMap;
 
 /**
  * HScannerInterface iterates through a set of rows.  It's implemented by
@@ -36,7 +36,7 @@
    * @return true if data was returned
    * @throws IOException
    */
-  public boolean next(HStoreKey key, TreeMap<Text, byte[]> results)
+  public boolean next(HStoreKey key, SortedMap<Text, byte[]> results)
   throws IOException;
   
   /**

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java?view=diff&rev=566291&r1=566290&r2=566291
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java (original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java Wed
Aug 15 11:20:53 2007
@@ -727,7 +727,7 @@
     /**
      * {@inheritDoc}
      */
-    public boolean next(HStoreKey key, TreeMap<Text, byte[]> results) throws IOException
{
+    public boolean next(HStoreKey key, SortedMap<Text, byte[]> results) throws IOException
{
       checkClosed();
       if (this.closed) {
         return false;



Mime
View raw message