本文整理了Java中org.apache.avro.io.Encoder.writeString()
方法的一些代码示例,展示了Encoder.writeString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Encoder.writeString()
方法的具体详情如下:
包路径:org.apache.avro.io.Encoder
类名称:Encoder
方法名:writeString
[英]Write a Unicode character string. If the CharSequence is an org.apache.avro.util.Utf8 it writes this directly, otherwise the CharSequence is converted to a String via toString() and written.
[中]写一个Unicode字符串。如果CharSequence是一个组织。阿帕奇。阿夫罗。util。Utf8直接写入,否则通过toString()将CharSequence转换为字符串并写入。
代码示例来源:origin: org.apache.avro/avro
/** Called to write a string. May be overridden for alternate string
* representations.*/
protected void writeString(Object datum, Encoder out) throws IOException {
out.writeString((CharSequence) datum);
}
代码示例来源:origin: apache/avro
/** Called to write a string. May be overridden for alternate string
* representations.*/
protected void writeString(Object datum, Encoder out) throws IOException {
out.writeString((CharSequence) datum);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.to);
out.writeString(this.from);
out.writeString(this.body);
}
代码示例来源:origin: apache/avro
@Override
public void writeString(CharSequence charSequence) throws IOException {
parser.advance(Symbol.STRING);
out.writeString(charSequence);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.org);
out.writeString(this.avro);
out.writeString(this.com);
out.writeString(this.net);
out.writeString(this.nl);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.label);
}
代码示例来源:origin: apache/avro
@Override
public void writeString(Utf8 utf8) throws IOException {
parser.advance(Symbol.STRING);
out.writeString(utf8);
}
代码示例来源:origin: apache/avro
@Override
public void writeString(String str) throws IOException {
parser.advance(Symbol.STRING);
out.writeString(str);
}
代码示例来源:origin: org.apache.avro/avro
@Override
public void writeString(CharSequence charSequence) throws IOException {
parser.advance(Symbol.STRING);
out.writeString(charSequence);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.product);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.to);
out.writeString(this.from);
out.writeString(this.body);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.name);
out.writeLong(this.value);
out.writeString(this.data);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.name);
out.writeInt(this.count);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.name);
out.writeLong(this.value);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.rootName);
this.nested.customEncode(out);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.name);
if (this.value == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeString(this.value);
}
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
if (this.id == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeString(this.id);
}
out.writeString(this.useragent);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
if (this.this$ == null) {
out.writeIndex(0);
out.writeNull();
} else {
out.writeIndex(1);
out.writeString(this.this$);
}
out.writeString(this.String);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.station);
out.writeLong(this.time);
out.writeInt(this.temp);
}
代码示例来源:origin: apache/avro
@Override protected void customEncode(org.apache.avro.io.Encoder out)
throws java.io.IOException
{
out.writeString(this.name);
out.writeEnum(this.kind.ordinal());
out.writeFixed(this.hash.bytes(), 0, 16);
}
内容来源于网络,如有侵权,请联系作者删除!