Class BinaryWriterSchemaHolder
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryWriterSchemaHolder
-
public class BinaryWriterSchemaHolder extends Object
Binary writer schema holder.
-
-
Constructor Summary
Constructors Constructor Description BinaryWriterSchemaHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(BinarySchema.Builder builder, int fieldCnt)Build the schema.voidpop(int fieldCnt)Pop current object's frame.voidpush(int id, int off)Push another frame.intwrite(BinaryOutputStream out, int fieldCnt, boolean compactFooter)Write collected frames.
-
-
-
Method Detail
-
push
public void push(int id, int off)Push another frame.- Parameters:
id- Field ID.off- Field offset.
-
build
public void build(BinarySchema.Builder builder, int fieldCnt)
Build the schema.- Parameters:
builder- Builder.fieldCnt- Fields count.
-
write
public int write(BinaryOutputStream out, int fieldCnt, boolean compactFooter)
Write collected frames. Note, that after writing collected frames, you must callpop(int)method with the total number of written frames as an argument.- Parameters:
out- Output stream.fieldCnt- Count.compactFooter- Whether footer should be written in compact form.- Returns:
- Amount of bytes dedicated to each field offset. Could be 1, 2 or 4.
-
pop
public void pop(int fieldCnt)
Pop current object's frame.
-
-