org.apache.hadoop.io.UTF8.set()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中org.apache.hadoop.io.UTF8.set()方法的一些代码示例,展示了UTF8.set()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UTF8.set()方法的具体详情如下:
包路径:org.apache.hadoop.io.UTF8
类名称:UTF8
方法名:set

UTF8.set介绍

[英]Set to contain the contents of a string.
[中]设置为包含字符串的内容。

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: org.apache.hadoop/hadoop-common

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** Set to contain the contents of a string. */
public void set(String string) {
 set(string, false);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: io.hops/hadoop-common

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: io.hops/hadoop-common

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/** Construct from a given string. */
public UTF8(UTF8 utf8) {
 set(utf8);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/** Construct from a given string. */
public UTF8(String string) {
 set(string);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

public UTF8(String string, boolean optimized) {
 set(string, optimized);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

@SuppressWarnings("deprecation")
static void writeString(String str, DataOutputStream out) throws IOException {
 UTF8 ustr = TL_DATA.get().U_STR;
 ustr.set(str, true);
 ustr.write(out);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

static void writeString(String str, DataOutputStream out) throws IOException {
  U_STR.set(str);
  U_STR.write(out);
 }
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** write the long value */
static void writeLongAsString(long value, DataOutputStream out) throws IOException {
 UTF8 ustr = TL_DATA.get().U_STR;
 ustr.set(toLogLong(value), true);
 ustr.write(out);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** write the long value */
static void writeShortAsString(short value, DataOutputStream out) throws IOException {
 UTF8 ustr = TL_DATA.get().U_STR;
 ustr.set(toLogShort(value), true);
 ustr.write(out);
}

相关文章