本文整理了Java中org.apache.hadoop.io.UTF8.set()
方法的一些代码示例,展示了UTF8.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UTF8.set()
方法的具体详情如下:
包路径:org.apache.hadoop.io.UTF8
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!