/** Deserializes object - needed for Writable. */ public void readFields(DataInput in) throws IOException { Text tmp = new Text(); tmp.readFields(in); a = tmp.toString(); tmp.readFields(in); b = tmp.toString(); }
@Override public void readFields(DataInput in) throws IOException { date.readFields(in); type.readFields(in); group.readFields(in); begin.readFields(in); end.readFields(in); source.readFields(in); target.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { Text text = new Text(); text.readFields(in); this.jobId = text.toString(); text.readFields(in); this.taskId = text.toString(); this.setId(this.taskId); this.startTime = in.readLong(); this.endTime = in.readLong(); this.duration = in.readLong(); super.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { docId = new Text(); docId.readFields(in); distance = new DoubleWritable(in.readDouble()); vector = new VectorWritable(); vector.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { if (key == null) { key = new Text(); value = new IntWritable(); } key.readFields(in); value.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { int len = in.readInt(); tuple = Lists.newArrayListWithCapacity(len); Text value = new Text(); for (int i = 0; i < len; i++) { value.readFields(in); tuple.add(value.toString()); } }
private void readOnDiskMapOutput( Configuration conf, FileSystem fs, Path path, List<String> keys, List<String> values) throws IOException { FSDataInputStream in = CryptoUtils.wrapIfNecessary(conf, fs.open(path)); IFile.Reader<Text, Text> reader = new IFile.Reader<Text, Text>(conf, in, fs.getFileStatus(path).getLen(), null, null); DataInputBuffer keyBuff = new DataInputBuffer(); DataInputBuffer valueBuff = new DataInputBuffer(); Text key = new Text(); Text value = new Text(); while (reader.nextRawKey(keyBuff)) { key.readFields(keyBuff); keys.add(key.toString()); reader.nextRawValue(valueBuff); value.readFields(valueBuff); values.add(value.toString()); } }
@Override public void readFields(DataInput in) throws IOException { for (int i = 0; i < values.size(); i++) { Text value = values.get(i); value.readFields(in); if (!isLastIndex(i)) { this.fieldTerminator.readFields(in); } } if (this.fileFormat != Table.FILE_FORMAT.TEXTFILE) { this.lineTerminator.readFields(in); } }
/** Implement readFields of Writable */ public void readFields(DataInput in) throws IOException { this.offset = in.readLong(); this.length = in.readLong(); int numNames = in.readInt(); this.names = new String[numNames]; for (int i = 0; i < numNames; i++) { Text name = new Text(); name.readFields(in); names[i] = name.toString(); } int numHosts = in.readInt(); for (int i = 0; i < numHosts; i++) { Text host = new Text(); host.readFields(in); hosts[i] = host.toString(); } int numTops = in.readInt(); Text path = new Text(); for (int i = 0; i < numTops; i++) { path.readFields(in); topologyPaths[i] = path.toString(); } }
@Override public void readFields(DataInput input) throws IOException { element.readFields(input); neighbour.readFields(input); }
@Override public void readFields(DataInput in) throws IOException { first.readFields(in); second.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { __term.readFields(in); __documentId.readFields(in); }
public void readFields(DataInput in) throws IOException { keyWritable.readFields(in); typeWritable.readFields(in); }
@Override public void readFields(DataInput in) throws IOException { k.readFields(in); v.readFields(in); }