本文整理汇总了Java中org.apache.hadoop.io.UTF8.writeString方法的典型用法代码示例。如果您正苦于以下问题:Java UTF8.writeString方法的具体用法?Java UTF8.writeString怎么用?Java UTF8.writeString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.io.UTF8
的用法示例。
在下文中一共展示了UTF8.writeString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, methodName);
out.writeInt(parameterClasses.length);
for(int i = 0; i < parameterClasses.length; i++){
ObjectWritable.writeObject(out, parameters[i], parameterClasses[i], conf);
}
}
示例2: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, getBuildVersion());
out.writeInt(getLayoutVersion());
out.writeInt(getNamespaceID());
out.writeLong(getCTime());
out.writeInt(getDistributedUpgradeVersion());
}
示例3: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
@Override
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, topic);
UTF8.writeString(out, leaderId);
if (uri != null)
UTF8.writeString(out, uri.toString());
else
UTF8.writeString(out, "");
out.writeInt(partition);
out.writeLong(offset);
out.writeLong(latestOffset);
}
示例4: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
@Override
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, this.leaderId);
out.writeInt(this.partition);
out.writeLong(this.beginOffset);
out.writeLong(this.offset);
out.writeLong(this.checksum);
out.writeUTF(this.topic);
out.writeLong(this.time);
out.writeUTF(this.server); // left for legacy
out.writeUTF(this.service); // left for legacy
this.partitionMap.write(out);
}
示例5: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, methodName);
out.writeInt(parameterClasses.length);
for (int i = 0; i < parameterClasses.length; i++) {
ObjectWritable.writeObject(out, parameters[i], parameterClasses[i],
conf);
}
}
示例6: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, file.toString());
out.writeLong(start);
out.writeLong(length);
}
示例7: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, file);
out.writeLong(start);
out.writeLong(length);
}
示例8: toBinary
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
@Override
@SuppressWarnings("deprecation")
public void toBinary(DataOutputStream out) throws IOException {
UTF8.writeString(out, value);
}
示例9: write
import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, name);
UTF8.writeString(out, storageID);
out.writeShort(infoPort);
}