Author: edwardyoon
Date: Mon Aug 11 05:40:02 2008
New Revision: 684738
URL: http://svn.apache.org/viewvc?rev=684738&view=rev
Log: (empty)
Modified:
incubator/hama/trunk/src/java/org/apache/hama/Constants.java
incubator/hama/trunk/src/java/org/apache/hama/HamaConfiguration.java
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=684738&r1=684737&r2=684738&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Constants.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/Constants.java Mon Aug 11
05:40:02 2008
@@ -20,20 +20,36 @@
package org.apache.hama;
/**
- * Some constants used in the hama
+ * Some constants used in the Hama
*/
public class Constants {
- /** Meta-columnfamily to store the matrix-info */
+ /**
+ * Meta-columnFamily to store the matrix-info
+ */
public final static String METADATA = "metadata:";
- /** The number of the matrix rows */
+
+ /**
+ * The number of the matrix rows
+ */
public final static String METADATA_ROWS = "metadata:rows";
- /** The number of the matrix columns */
+
+ /**
+ * The number of the matrix columns
+ */
public final static String METADATA_COLUMNS = "metadata:columns";
- /** The type of the matrix */
+
+ /**
+ * The type of the matrix
+ */
public final static String METADATA_TYPE = "metadata:type";
- /** Default columnfamily name */
+
+ /**
+ * Default columnFamily name
+ */
public final static String COLUMN = "column:";
- /** Temporary random matices name prefix */
+ /**
+ * Temporary random matrices name prefix
+ */
public final static String RANDOM = "rand";
}
Modified: incubator/hama/trunk/src/java/org/apache/hama/HamaConfiguration.java
URL:
http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/HamaConfiguration.java?rev=684738&r1=684737&r2=684738&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/HamaConfiguration.java
(original)
+++ incubator/hama/trunk/src/java/org/apache/hama/HamaConfiguration.java Mon
Aug 11 05:40:02 2008
@@ -14,18 +14,19 @@
super();
addHbaseResources();
}
-
+
/**
* Create a clone of passed configuration.
+ *
* @param c Configuration to clone.
*/
public HamaConfiguration(final Configuration c) {
this();
- for (Entry<String, String>e: c) {
+ for (Entry<String, String> e : c) {
set(e.getKey(), e.getValue());
}
}
-
+
private void addHbaseResources() {
addResource("hama-site.xml");
}