Package org.apache.druid.common.utils
Class SerializerUtils
java.lang.Object
org.apache.druid.common.utils.SerializerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]readBytes(ByteBuffer in, int length) readString(ByteBuffer in) voidwriteFloat(OutputStream out, float floatValue) static voidwriteInt(WritableByteChannel out, int intValue) voidwriteLong(WritableByteChannel out, long longValue) voidwriteString(WritableByteChannel out, String name) <T extends OutputStream>
voidwriteString(T out, String name)
-
Constructor Details
-
SerializerUtils
public SerializerUtils()
-
-
Method Details
-
writeString
- Throws:
IOException
-
writeString
- Throws:
IOException
-
readString
-
readBytes
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
getSerializedStringByteSize
-