List of usage examples for org.apache.hadoop.io WritableUtils writeString
public static void writeString(DataOutput out, String s) throws IOException
From source file:com.soteradefense.dga.louvain.giraph.LouvainNodeState.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, community); out.writeLong(communitySigmaTotal);//from ww w . j av a2 s . c o m out.writeLong(internalWeight); out.writeLong(changed); out.writeLong(nodeWeight); out.writeInt(changeHistory.size()); for (Long i : changeHistory) { out.writeLong(i); } }
From source file:com.soteradefense.dga.louvain.giraph.LouvainVertexWritable.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { out.writeLong(weight);//ww w . j a v a2 s. c om out.writeInt(edges.size()); for (Map.Entry<String, Long> entry : edges.entrySet()) { WritableUtils.writeString(out, entry.getKey()); out.writeLong(entry.getValue()); } }
From source file:com.veera.secondarysort.demo2.StockKey.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, symbol); out.writeLong(timestamp); }
From source file:cosmos.records.values.BooleanRecordValue.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, BooleanRecordValue.class.getName()); writeVisibility(out);//from w w w . j ava 2s .c o m WritableUtils.writeString(out, value.toString()); }
From source file:cosmos.records.values.DoubleRecordValue.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, DoubleRecordValue.class.getName()); writeVisibility(out);//from w w w . j a va 2 s . c o m out.writeDouble(value); }
From source file:cosmos.records.values.IntegerRecordValue.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, IntegerRecordValue.class.getName()); writeVisibility(out);//from w ww .j a v a 2s . c o m WritableUtils.writeVInt(out, value); }
From source file:cosmos.records.values.LongRecordValue.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, LongRecordValue.class.getName()); writeVisibility(out);// w w w . j a va2s .c om WritableUtils.writeVLong(out, value); }
From source file:cosmos.records.values.StringRecordValue.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, StringRecordValue.class.getName()); writeVisibility(out);//from w w w . jav a 2 s. com WritableUtils.writeString(out, value); }
From source file:de.tudarmstadt.lt.nlkg.ConvertedWritable.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { WritableUtils.writeString(out, val1); out.writeInt(val2); }
From source file:fi.tkk.ics.hadoop.bam.ReferenceFragment.java
License:Open Source License
public void write(DataOutput out) throws IOException { sequence.write(out);//from w w w . ja v a 2 s. c o m WritableUtils.writeString(out, indexSequence); WritableUtils.writeVInt(out, position); }