hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1676708 - /hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java
Date Wed, 29 Apr 2015 10:22:24 GMT
Author: edwardyoon
Date: Wed Apr 29 10:22:24 2015
New Revision: 1676708

URL: http://svn.apache.org/r1676708
Log:
HAMA-894: writeInt() is used to write the integer core data.

Modified:
    hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java?rev=1676708&r1=1676707&r2=1676708&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java (original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/kcore/KCoreVertex.java Wed Apr 29 10:22:24
2015
@@ -101,8 +101,7 @@ public class KCoreVertex extends
   }
 
   @Override
-  public void readFields(DataInput in) throws IOException {
-    super.readFields(in);
+  public void readState(DataInput in) throws IOException {
     core = in.readInt();
     changed = in.readBoolean();
 
@@ -118,9 +117,8 @@ public class KCoreVertex extends
   }
 
   @Override
-  public void write(DataOutput out) throws IOException {
-    super.write(out);
-    out.writeDouble(core);
+  public void writeState(DataOutput out) throws IOException {
+    out.writeInt(core);
     out.writeBoolean(changed);
 
     if (this.estimates == null) {



Mime
View raw message