public final class DataOutputEncoder
extends org.apache.avro.io.Encoder
Encoder that writes data to a DataOutput.| 构造器和说明 |
|---|
DataOutputEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
flush() |
void |
setItemCount(long itemCount) |
void |
setOut(DataOutput out) |
void |
startItem() |
void |
writeArrayEnd() |
void |
writeArrayStart() |
void |
writeBoolean(boolean b) |
void |
writeBytes(byte[] bytes,
int start,
int len) |
void |
writeBytes(ByteBuffer bytes) |
void |
writeDouble(double d) |
void |
writeEnum(int e) |
void |
writeFixed(byte[] bytes,
int start,
int len) |
void |
writeFloat(float f) |
void |
writeIndex(int unionIndex) |
void |
writeInt(int n) |
void |
writeLong(long n) |
void |
writeMapEnd() |
void |
writeMapStart() |
void |
writeNull() |
void |
writeString(String str) |
void |
writeString(org.apache.avro.util.Utf8 utf8) |
static void |
writeVarLongCount(DataOutput out,
long val) |
public void setOut(DataOutput out)
public void flush()
throws IOException
IOExceptionpublic void writeNull()
writeNull 在类中 org.apache.avro.io.Encoderpublic void writeBoolean(boolean b)
throws IOException
writeBoolean 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeInt(int n)
throws IOException
writeInt 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeLong(long n)
throws IOException
writeLong 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeFloat(float f)
throws IOException
writeFloat 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeDouble(double d)
throws IOException
writeDouble 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeEnum(int e)
throws IOException
writeEnum 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeFixed(byte[] bytes,
int start,
int len)
throws IOException
writeFixed 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeBytes(byte[] bytes,
int start,
int len)
throws IOException
writeBytes 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeBytes(ByteBuffer bytes) throws IOException
writeBytes 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeString(String str) throws IOException
writeString 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeString(org.apache.avro.util.Utf8 utf8)
throws IOException
writeString 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeArrayStart()
writeArrayStart 在类中 org.apache.avro.io.Encoderpublic void setItemCount(long itemCount)
throws IOException
setItemCount 在类中 org.apache.avro.io.EncoderIOExceptionpublic void startItem()
startItem 在类中 org.apache.avro.io.Encoderpublic void writeArrayEnd()
throws IOException
writeArrayEnd 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeMapStart()
writeMapStart 在类中 org.apache.avro.io.Encoderpublic void writeMapEnd()
throws IOException
writeMapEnd 在类中 org.apache.avro.io.EncoderIOExceptionpublic void writeIndex(int unionIndex)
throws IOException
writeIndex 在类中 org.apache.avro.io.EncoderIOExceptionpublic static void writeVarLongCount(DataOutput out, long val) throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.