List of usage examples for org.apache.hadoop.io WritableUtils readString
public static String readString(DataInput in) throws IOException
From source file:AllLab_Skeleton.Lab2.CompositeKeyWritable.java
@Override public void readFields(DataInput di) throws IOException { deptNo = WritableUtils.readString(di); lastName = WritableUtils.readString(di); }
From source file:Assignment3_P4_DateStock.DateStock_CompositeValueWritable.java
@Override public void readFields(DataInput di) throws IOException { date = WritableUtils.readString(di); volume = WritableUtils.readString(di); maxStockPrice = WritableUtils.readString(di); }
From source file:Assignment4_P2_StockAverageWithCombiner.StockAverage_CompositeValueWritable.java
@Override public void readFields(DataInput di) throws IOException { count = WritableUtils.readVInt(di); average = WritableUtils.readString(di); }
From source file:Average.YearPrice.java
@Override public void readFields(DataInput di) throws IOException { year = WritableUtils.readString(di); symbol = WritableUtils.readString(di); }
From source file:cascading.tap.hadoop.ZipSplit.java
License:Open Source License
public void readFields(DataInput in) throws IOException { super.readFields(in); entryPath = WritableUtils.readString(in); }
From source file:cascading.tuple.hadoop.io.HadoopTupleInputStream.java
License:Open Source License
public String readString() throws IOException { return WritableUtils.readString(this); }
From source file:cascading.tuple.hadoop.SerializationElementReader.java
License:Open Source License
public String getClassNameFor(int token, DataInputStream inputStream) throws IOException { String className = tupleSerialization.getClassNameFor(token); if (className == null) className = WritableUtils.readString(inputStream); return className; }
From source file:cascading.tuple.hadoop.TestTextComparator.java
License:Open Source License
@Override public int compare(BufferedInputStream lhsStream, BufferedInputStream rhsStream) { try {/*from ww w . ja v a 2 s . co m*/ if (lhsStream == null && rhsStream == null) return 0; if (lhsStream == null) { WritableUtils.readString(new DataInputStream(rhsStream)); return -1; } if (rhsStream == null) { WritableUtils.readString(new DataInputStream(lhsStream)); return 1; } String lhsString = WritableUtils.readString(new DataInputStream(lhsStream)); String rhsString = WritableUtils.readString(new DataInputStream(rhsStream)); if (lhsString == null && rhsString == null) return 0; if (lhsString == null) return -1; if (rhsString == null) return 1; return lhsString.compareTo(rhsString); } catch (IOException exception) { throw new CascadingException(exception); } }
From source file:cascading.tuple.hadoop.TestWritableComparable.java
License:Open Source License
public void readFields(DataInput dataInput) throws IOException { value = WritableUtils.readString(dataInput); }
From source file:co.cask.cdap.data.stream.StreamInputSplit.java
License:Apache License
@Override public void readFields(DataInput in) throws IOException { super.readFields(in); boolean hasIndex = in.readBoolean(); if (hasIndex) { indexPath = new Path(WritableUtils.readString(in)); }//from ww w . ja va 2s.co m startTime = WritableUtils.readVLong(in); endTime = WritableUtils.readVLong(in); }