List of usage examples for org.apache.hadoop.io Text writeString
public static int writeString(DataOutput out, String s) throws IOException
From source file:edu.umd.cloud9.io.pair.PairOfLongString.java
License:Apache License
/** * Serializes this pair.// w w w . jav a 2 s .c om * * @param out where to write the raw byte representation */ public void write(DataOutput out) throws IOException { out.writeLong(leftElement); Text.writeString(out, rightElement); }
From source file:edu.umd.cloud9.io.pair.PairOfStringFloat.java
License:Apache License
/** * Serializes this pair./* w w w . ja v a 2 s .co m*/ * * @param out where to write the raw byte representation */ public void write(DataOutput out) throws IOException { Text.writeString(out, leftElement); out.writeFloat(rightElement); }
From source file:edu.umd.cloud9.io.pair.PairOfStringInt.java
License:Apache License
/** * Serializes this pair./*w w w. j ava 2 s . c o m*/ * * @param out where to write the raw byte representation */ public void write(DataOutput out) throws IOException { Text.writeString(out, leftElement); out.writeInt(rightElement); }
From source file:edu.umd.cloud9.io.pair.PairOfStringLong.java
License:Apache License
/** * Serializes this pair.//from www . j av a 2 s . c o m * * @param out where to write the raw byte representation */ public void write(DataOutput out) throws IOException { Text.writeString(out, leftElement); out.writeLong(rightElement); }
From source file:edu.yale.cs.hadoopdb.connector.DBInputSplit.java
License:Apache License
/** * Serializes the relation and Chunk object. *//*from w w w . j av a 2 s. co m*/ @Override public void write(DataOutput out) throws IOException { Text.writeString(out, relation); serializeChunk(chunk, out); }
From source file:edu.yale.cs.hadoopdb.sms.connector.SMSInputSplit.java
License:Apache License
/** * write is used to serialize InputSplit information associated * with splits created by SMSInputFormat getSplits. SMSInputSplit * serializes Path information in addition to DBInputSplit information *//*from ww w .j a v a 2s.com*/ @Override public void write(DataOutput out) throws IOException { Text.writeString(out, p.toString()); super.write(out); }
From source file:fi.tkk.ics.hadoop.bam.FileVirtualSplit.java
License:Open Source License
@Override public void write(DataOutput out) throws IOException { Text.writeString(out, file.toString()); out.writeLong(vStart); out.writeLong(vEnd); }
From source file:fire.util.fileformats.combinetextfileinputformat.WordOffset.java
License:Apache License
public void write(DataOutput out) throws IOException { out.writeLong(offset); Text.writeString(out, fileName); }
From source file:gaffer.accumulo.iterators.ColumnQualifierColumnVisibilityValueTriple.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { Text.writeString(out, this.columnQualifier); Text.writeString(out, this.columnVisibility); value.write(out);/*from w ww. j a v a2 s. co m*/ }
From source file:gaffer.accumulo.predicate.impl.OtherEndOfEdgePredicate.java
License:Apache License
@Override public void write(DataOutput out) throws IOException { Text.writeString(out, predicate.getClass().getName()); predicate.write(out); }