/** read the int value */ static int readInt(DataInput in) throws IOException { IntWritable uInt = TL_DATA.get().U_INT; uInt.readFields(in); return uInt.get(); }
@Override public void readFields(DataInput in) throws IOException { yearMonth.readFields(in); day.readFields(in); temperature.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { first.readFields(in); second.readFields(in); } @Override
/** read the int value */ static int readInt(DataInput in) throws IOException { IntWritable uInt = TL_DATA.get().U_INT; uInt.readFields(in); return uInt.get(); }
/** read the int value */ static int readInt(DataInput in) throws IOException { IntWritable uInt = TL_DATA.get().U_INT; uInt.readFields(in); return uInt.get(); }
@Override public void readFields(DataInput in) throws IOException { oldKey.readFields(in); priority.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { id.readFields(in); name.readFields(in); }
public void readFields(DataInput arg0) throws IOException { row.readFields(arg0); column.readFields(arg0); value.readFields(arg0); matrixType.readFields(arg0); }
@Override public void readFields(DataInput in) throws IOException { pointCoordinates.readFields(in); clusterId.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { first.readFields(in); second.readFields(in); } @Override
@Override public void readFields(DataInput in) throws IOException { first.readFields(in); second.readFields(in); } @Override
public void readFields(DataInput arg0) throws IOException { reducerNum.readFields(arg0); matItem.readFields(arg0); }
public void readFields(DataInput dataInput) throws IOException { key.readFields(dataInput); partition.readFields(dataInput); }
private IntWritable Medicion = new IntWritable(); private Text Fecha = new Text(); private Text Hora = new Text(); public void readFields(DataInput in) { Medicion.readFields(in); Fecha.readFields(in); Hora.readFields(in); }
private IntWritable readIntWritable(FSDataInputStream dis) throws IOException { IntWritable intWritable = new IntWritable(); intWritable.readFields(dis); return intWritable; }
public void readAnnotationFields(Annotation annot, DataInput in, List<String> types) throws IOException { IntWritable posType = new IntWritable(); posType.readFields(in); annot.setType(types.get(posType.get())); annot.setStart(WritableUtils.readVLong(in)); annot.setEnd(WritableUtils.readVLong(in)); HashMap<String, String> features = null; int numFeatures = in.readInt(); if (numFeatures > 0) features = new HashMap<String, String>(numFeatures); for (int i = 0; i < numFeatures; i++) { posType.readFields(in); String fname = types.get(posType.get()); String fvalue = WritableUtils.readString(in); features.put(fname, fvalue); } annot.setFeatures(features); }
@Override public void readFields(DataInput in) throws IOException { flag = in.readByte(); if (isVertexMessage()) { vertexId = GraphJobRunner.createVertexIDObject(); vertexId.readFields(in); this.numOfValues = in.readInt(); int bytesLength = in.readInt(); byte[] temp = new byte[bytesLength]; in.readFully(temp); byteBuffer.write(temp); } else if (isMapMessage()) { map = new MapWritable(); map.readFields(in); } else if (isVerticesSizeMessage()) { integerMessage = new IntWritable(); integerMessage.readFields(in); } else if (isPartitioningMessage()) { this.numOfValues = in.readInt(); int bytesLength = in.readInt(); byte[] temp = new byte[bytesLength]; in.readFully(temp); byteBuffer.write(temp); } else { vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS, null); vertexId.readFields(in); } }
public void fastReadFields(DataInput in) throws IOException { flag = in.readByte(); if (isVertexMessage()) { vertexId = GraphJobRunner.createVertexIDObject(); vertexId.readFields(in); /* * vertexValue = GraphJobRunner.createVertexValue(); * vertexValue.readFields(in); */ } else if (isMapMessage()) { map = new MapWritable(); map.readFields(in); } else if (isVerticesSizeMessage()) { integerMessage = new IntWritable(); integerMessage.readFields(in); } else { vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS, null); vertexId.readFields(in); } }
public void fastReadFields(DataInput in) throws IOException { flag = in.readByte(); if (isVertexMessage()) { vertexId = GraphJobRunner.createVertexIDObject(); vertexId.readFields(in); /* * vertexValue = GraphJobRunner.createVertexValue(); * vertexValue.readFields(in); */ } else if (isMapMessage()) { map = new MapWritable(); map.readFields(in); } else if (isVerticesSizeMessage()) { integerMessage = new IntWritable(); integerMessage.readFields(in); } else { vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS, null); vertexId.readFields(in); } }
public class MyDataType implements WritableComparable<MyDataType> { private Text name; private IntWritable age; @Override public void readFields(DataInput in) throws IOException { name.readFields(in); age.readFields(in); } @Override public void write(DataOutput out) throws IOException { name.write(out); age.write(out); } @Override public int compareTo(MyDataType o) { int nameCompare = name.compareTo(o.name); if(nameCompare != 0) { return nameCompare; } else { return age.compareTo(o.age); } } }