@Override public void write(DataOutput dataOutput) throws IOException { Text.writeString(dataOutput, localLocation); Text.writeString(dataOutput, dfsLocation); }
@Override public void write(DataOutput out) throws IOException { Text.writeString(out, "split"); }
/** * writes String value of enum to DataOutput. * @param out Dataoutput stream * @param enumVal enum value * @throws IOException */ public static void writeEnum(DataOutput out, Enum<?> enumVal) throws IOException{ Text.writeString(out, enumVal.name()); } /**
public void write(DataOutput out) throws IOException { Text.writeString(out, brokers); Text.writeString(out, topic); out.writeInt(partition); out.writeLong(offsetStart); out.writeLong(offsetEnd); }
@Override public void write(DataOutput dataOutput) throws IOException { Text.writeString(dataOutput, aliasName); dataOutput.writeInt(paths.size()); for (Path p : paths) { Text.writeString(dataOutput, p.toString()); } }
@Override public void write(DataOutput dataOutput) throws IOException { Text.writeString(dataOutput, this.owner); Text.writeString(dataOutput, this.group); this.fsPermission.write(dataOutput); }
public void write(DataOutput out) throws IOException { Text.writeString(out, inputSplitClass.getName()); inputSplit.write(out); Text.writeString(out, inputFormatClass.getName()); Text.writeString(out, mapperClass.getName()); Text.writeString(out, schema.toString()); }
/** * Serialize a {@link PermissionStatus} from its base components. */ public static void write(DataOutput out, String username, String groupname, FsPermission permission) throws IOException { Text.writeString(out, username, Text.DEFAULT_MAX_LEN); Text.writeString(out, groupname, Text.DEFAULT_MAX_LEN); permission.write(out); }
@Override public void write(DataOutput dataOutput) throws IOException { WritableUtils.writeEnum(dataOutput, this.xlearningContainerStatus); interResultSavedStatus.write(dataOutput); Text.writeString(dataOutput, this.progressLog); Text.writeString(dataOutput, this.containersStartTime); Text.writeString(dataOutput, this.containersFinishTime); }
@Override public void write(DataOutput out) throws IOException { Properties props = getProps(); WritableUtils.writeVInt(out, props.size()); for(Entry<Object, Object> item: props.entrySet()) { org.apache.hadoop.io.Text.writeString(out, (String) item.getKey()); org.apache.hadoop.io.Text.writeString(out, (String) item.getValue()); WritableUtils.writeCompressedStringArray(out, updatingResource.get(item.getKey())); } }
@Override public void write(DataOutput out) throws IOException { Properties props = getProps(); WritableUtils.writeVInt(out, props.size()); for(Map.Entry<Object, Object> item: props.entrySet()) { org.apache.hadoop.io.Text.writeString(out, (String) item.getKey()); org.apache.hadoop.io.Text.writeString(out, (String) item.getValue()); WritableUtils.writeCompressedStringArray(out, updatingResource != null ? updatingResource.get(item.getKey()) : null); } }
/** * Serializes the AccessControlList object */ @Override public void write(DataOutput out) throws IOException { String aclString = getAclString(); Text.writeString(out, aclString); }
@Override public void write(DataOutput dataOutput) throws IOException { WritableUtils.writeEnum(dataOutput, this.logType); Text.writeString(dataOutput, message); }
public void write(DataOutput out) throws IOException { Text.writeString(out, path.toString()); delegate.write(out); }
@Override public void write(DataOutput dataOutput) throws IOException { Text.writeString(dataOutput, this.toString()); }
@Override public void write(DataOutput out) throws IOException { Properties props = getProps(); WritableUtils.writeVInt(out, props.size()); for(Map.Entry<Object, Object> item: props.entrySet()) { org.apache.hadoop.io.Text.writeString(out, (String) item.getKey()); org.apache.hadoop.io.Text.writeString(out, (String) item.getValue()); WritableUtils.writeCompressedStringArray(out, updatingResource != null ? updatingResource.get(item.getKey()) : null); } }
/** Write and flush the file header. */ void writeFileHeader() throws IOException { if (useNewMagic) { out.writeBoolean(isCompressed()); } else { Text.writeString(out, KeyBuffer.class.getName()); Text.writeString(out, ValueBuffer.class.getName()); out.writeBoolean(isCompressed()); out.writeBoolean(false); } if (isCompressed()) { Text.writeString(out, (codec.getClass()).getName()); } metadata.write(out); }
/** Write and flush the file header. */ private void writeFileHeader() throws IOException { out.write(VERSION); Text.writeString(out, keyClass.getName()); Text.writeString(out, valClass.getName()); out.writeBoolean(this.isCompressed()); out.writeBoolean(this.isBlockCompressed()); if (this.isCompressed()) { Text.writeString(out, (codec.getClass()).getName()); } this.metadata.write(out); out.write(sync); // write the sync bytes out.flush(); // flush header }
/** Write and flush the file header. */ void writeFileHeader() throws IOException { if (useNewMagic) { out.writeBoolean(isCompressed()); } else { Text.writeString(out, KeyBuffer.class.getName()); Text.writeString(out, ValueBuffer.class.getName()); out.writeBoolean(isCompressed()); out.writeBoolean(false); } if (isCompressed()) { Text.writeString(out, (codec.getClass()).getName()); } metadata.write(out); }
/** * Serializes this pair. * * @param out where to write the raw byte representation */ @Override public void write(DataOutput out) throws IOException { Text.writeString(out, leftElement); Text.writeString(out, rightElement); }