private void processIntegerUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullUnsignedInt(name,id), outputRing); } }
private void processIntegerSignedOptional(final String[] fieldNameScript, final long[] fieldIdScript, int fieldCursor, String name, long id) { if (visitor.isAbsent(fieldNameScript[fieldCursor],fieldIdScript[fieldCursor])) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullSignedInt(name,id), outputRing); } }
private void processIntegerSignedOptional(final String[] fieldNameScript, final long[] fieldIdScript, int fieldCursor, String name, long id) { if (visitor.isAbsent(fieldNameScript[fieldCursor],fieldIdScript[fieldCursor])) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullSignedInt(name,id), outputRing); } }
private void processIntegerUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullUnsignedInt(name,id), outputRing); } }
private void processSequenceOpen(int fragmentCursor, String name, long id) { int seqLen = visitor.pullSequenceLength(name,id); Pipe.addIntValue(seqLen, outputRing); LowLevelStateManager.processGroupLength(navState, fragmentCursor, seqLen); }
private void processSequenceOpen(int fragmentCursor, String name, long id) { int seqLen = visitor.pullSequenceLength(name,id); Pipe.addIntValue(seqLen, outputRing); LowLevelStateManager.processGroupLength(navState, fragmentCursor, seqLen); }
private void processDecimal(String name, long id) { int pullDecimalExponent = visitor.pullDecimalExponent(name,id); Pipe.addIntValue(pullDecimalExponent, outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); }
public static <S extends MessageSchema<S>> void writeII(Pipe<S> pipe, int msgIdx, int field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addIntValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
private void processDecimal(String name, long id) { int pullDecimalExponent = visitor.pullDecimalExponent(name,id); Pipe.addIntValue(pullDecimalExponent, outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); }
public static <S extends MessageSchema<S>> void writeII(Pipe<S> pipe, int msgIdx, int field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addIntValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
private void processDecimalOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullDecimalExponent(name,id), outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); } }
public static <S extends MessageSchema<S>> void writeLII(Pipe<S> pipe, int msgIdx, long field1, int field2, int field3) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.addIntValue(field3, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLII(Pipe<S> pipe, int msgIdx, long field1, int field2, int field3) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.addIntValue(field3, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
private void processDecimalOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullDecimalExponent(name,id), outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); } }
public void publishWithChunkPrefix(int headerBlobPosition, long positionOfLen) { int len = closeLowLevelField(this); //end of writing the payload Pipe.addIntValue(context, backingPipe); //real context Pipe.confirmLowLevelWrite(backingPipe); writeChunkPrefix(this, headerBlobPosition, positionOfLen, len); //now publish both header and payload Pipe.publishWrites(backingPipe); //System.out.println("published with chunkPrefix "+backingPipe); }
private static void publishRelease(Pipe<ReleaseSchema> pipe, long conId, long position, int sequenceNo) { assert(position!=-1); //logger.debug("sending release for {} at position {}",conId,position); int size = Pipe.addMsgIdx(pipe, ReleaseSchema.MSG_RELEASEWITHSEQ_101); Pipe.addLongValue(conId, pipe); Pipe.addLongValue(position, pipe); Pipe.addIntValue(sequenceNo, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); } }
public static <S extends MessageSchema<S>> void writeI(Pipe<S> pipe, int msgIdx, int field1) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(3==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addIntValue(field1, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); } }
public static <S extends MessageSchema<S>> void writeI(Pipe<S> pipe, int msgIdx, int field1) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(3==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addIntValue(field1, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); } }
public static <S extends MessageSchema<S>> void writeLI(Pipe<S> pipe, int msgIdx, long field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(5==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLI(Pipe<S> pipe, int msgIdx, long field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(5==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }