incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r695765 - in /incubator/hama/trunk/src/java/org/apache/hama: AbstractMatrix.java Constants.java Matrix.java
Date Tue, 16 Sep 2008 08:26:22 GMT
Author: edwardyoon
Date: Tue Sep 16 01:26:21 2008
New Revision: 695765

URL: http://svn.apache.org/viewvc?rev=695765&view=rev
Log:
Trivial renaming.

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java
    incubator/hama/trunk/src/java/org/apache/hama/Constants.java
    incubator/hama/trunk/src/java/org/apache/hama/Matrix.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java?rev=695765&r1=695764&r2=695765&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java Tue Sep 16 01:26:21
2008
@@ -150,13 +150,13 @@
 
   public String getColumnAttribute(int column) throws IOException {
     Cell rows = null;
-    rows = table.get(Constants.COLUMN_INDEX, 
+    rows = table.get(Constants.CINDEX, 
         (Constants.ATTRIBUTE + column));
     return (rows != null) ? Bytes.toString(rows.getValue()) : null;
   }
 
   public void setColumnAttribute(int column, String name) throws IOException {
-    VectorUpdate update = new VectorUpdate(Constants.COLUMN_INDEX);
+    VectorUpdate update = new VectorUpdate(Constants.CINDEX);
     update.put(column, name);
     table.commit(update.getBatchUpdate());
   }

Modified: incubator/hama/trunk/src/java/org/apache/hama/Constants.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Constants.java?rev=695765&r1=695764&r2=695765&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Constants.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/Constants.java Tue Sep 16 01:26:21 2008
@@ -32,7 +32,7 @@
   /**
    * Column index & attributes
    */
-  public final static String COLUMN_INDEX = "columnIndex";
+  public final static String CINDEX = "cIndex";
   
   /**
    * The attribute column family

Modified: incubator/hama/trunk/src/java/org/apache/hama/Matrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Matrix.java?rev=695765&r1=695764&r2=695765&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Matrix.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/Matrix.java Tue Sep 16 01:26:21 2008
@@ -39,20 +39,20 @@
   /**
    * Gets the vector of row
    * 
-   * @param row the row index of the matrix
+   * @param i the row index of the matrix
    * @return the vector of row
    * @throws IOException
    */
-  public Vector getRow(int row) throws IOException;
+  public Vector getRow(int i) throws IOException;
 
   /**
    * Gets the vector of column
    * 
-   * @param column the column index of the matrix
+   * @param j the column index of the matrix
    * @return the vector of column
    * @throws IOException
    */
-  public Vector getColumn(int column) throws IOException;
+  public Vector getColumn(int j) throws IOException;
 
   /**
    * Get the number of row of the matrix from the meta-data column
@@ -75,32 +75,32 @@
    * 
    * @throws IOException
    */
-  public String getRowAttribute(int row) throws IOException;
+  public String getRowAttribute(int i) throws IOException;
   
   /**
    * Sets the attribute of the row
    * 
-   * @param row
+   * @param i
    * @param name
    * @throws IOException
    */
-  public void setRowAttribute(int row, String name) throws IOException;
+  public void setRowAttribute(int i, String name) throws IOException;
   
   /**
    * Gets the attribute of the column
    * 
    * @throws IOException
    */
-  public String getColumnAttribute(int column) throws IOException;
+  public String getColumnAttribute(int j) throws IOException;
   
   /**
    * Sets the attribute of the column
    * 
-   * @param column
+   * @param j
    * @param name
    * @throws IOException
    */
-  public void setColumnAttribute(int column, String name) throws IOException;
+  public void setColumnAttribute(int j, String name) throws IOException;
   
   /**
    * Sets the double value of (i, j)



Mime
View raw message