当前位置: 首页>>代码示例>>Java>>正文


Java UTF8.writeString方法代码示例

本文整理汇总了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);
	}
}
 
开发者ID:spafka,项目名称:spark_deep,代码行数:8,代码来源:RPC.java

示例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());
}
 
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:8,代码来源:NamespaceInfo.java

示例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);
}
 
开发者ID:HiveKa,项目名称:HiveKa,代码行数:13,代码来源:KafkaRequest.java

示例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);
}
 
开发者ID:HiveKa,项目名称:HiveKa,代码行数:14,代码来源:KafkaKey.java

示例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);
  }
}
 
开发者ID:Seagate,项目名称:hadoop-on-lustre,代码行数:9,代码来源:RPC.java

示例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);
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:6,代码来源:FileSplit.java

示例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);
}
 
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:6,代码来源:FileSplit.java

示例8: toBinary

import org.apache.hadoop.io.UTF8; //导入方法依赖的package包/类
@Override
@SuppressWarnings("deprecation")
public void toBinary(DataOutputStream out) throws IOException {
  UTF8.writeString(out, value);
}
 
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:6,代码来源:Tokenizer.java

示例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);
}
 
开发者ID:Seagate,项目名称:hadoop-on-lustre,代码行数:7,代码来源:DatanodeID.java


注:本文中的org.apache.hadoop.io.UTF8.writeString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。