Class ByteCodeSerializer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer<Bytecode>
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.ByteCodeSerializer
-
- All Implemented Interfaces:
TypeSerializer<Bytecode>
public class ByteCodeSerializer extends SimpleTypeSerializer<Bytecode>
-
-
Constructor Summary
Constructors Constructor Description ByteCodeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BytecodereadValue(Buffer buffer, GraphBinaryReader context)Reads a non-nullable value according to the type format.protected voidwriteValue(Bytecode value, Buffer buffer, GraphBinaryWriter context)Writes a non-nullable value into a buffer using the provided allocator.-
Methods inherited from class org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer
getDataType, read, readValue, write, writeValue
-
-
-
-
Method Detail
-
readValue
protected Bytecode readValue(Buffer buffer, GraphBinaryReader context) throws IOException
Description copied from class:SimpleTypeSerializerReads a non-nullable value according to the type format.- Specified by:
readValuein classSimpleTypeSerializer<Bytecode>- Parameters:
buffer- A buffer which reader index has been set to the beginning of the {value}.context- The binary reader.- Returns:
- Throws:
IOException
-
writeValue
protected void writeValue(Bytecode value, Buffer buffer, GraphBinaryWriter context) throws IOException
Description copied from class:SimpleTypeSerializerWrites a non-nullable value into a buffer using the provided allocator.- Specified by:
writeValuein classSimpleTypeSerializer<Bytecode>- Parameters:
value- A non-nullable value.buffer- The buffer allocator to use.context- The binary writer.- Throws:
IOException
-
-