/** * Take optional Long which may be null. Null is defined as specific long value in FROM * @param pipe Ping source * @return Long value */ public static <S extends MessageSchema<S>> Long takeOptionalLong(Pipe<S> pipe) { long absent64Value = FieldReferenceOffsetManager.getAbsent64Value(Pipe.from(pipe)); return takeOptionalLong(pipe, absent64Value); }
private void processLongSignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitSignedLong(name,id,value); } }
/** * Take optional Long which may be null. Null is defined as specific long value in FROM * @param pipe Ping source * @return Long value */ public static <S extends MessageSchema<S>> Long takeOptionalLong(Pipe<S> pipe) { long absent64Value = FieldReferenceOffsetManager.getAbsent64Value(Pipe.from(pipe)); return takeOptionalLong(pipe, absent64Value); }
private void processLongSignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitSignedLong(name,id,value); } }
private void processLongSignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitSignedLong(name,id,value); } }
private void processLongUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongUnsigned(name, id); } }
private void processLongUnsignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitUnsignedLong(name,id,Pipe.readLong(idx, inputRing)); } }
private void processLongSignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongSigned(name, id); } }
private void processLongSignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongSigned(name, id); } }
private void processLongUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongUnsigned(name, id); } }
private void processLongUnsignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitUnsignedLong(name,id,Pipe.readLong(idx, inputRing)); } }
private void processLongUnsignedOptional(String name, final int idx, int fieldCursor, long id) { long value = Pipe.readLong(idx, inputRing); if (FieldReferenceOffsetManager.getAbsent64Value(from)!=value) { visitor.visitUnsignedLong(name,id,Pipe.readLong(idx, inputRing)); } }
@Override protected void processLongUnsignedOptional(String name, int idx, int fieldCursor, long id) throws IOException { long nullLiteral = FieldReferenceOffsetManager.getAbsent64Value(MessageSchema.from(schema)); //build the argument for calling, this will be modified for specific business logic. appendArgumentForBusinessCall(name, "null", "Long", fieldCursor); //build arg list for method signature appendTypeSignatureForPipeWriter(name, "Long"); // Pipe.addIntValue(null==source? nullLiteral : source, output); //build the line to add value into the the pipe, this will not be modified. appendWirteOptionalToPipe(name, nullLiteral, "addLongValue"); firstField = false; }
@Override protected void processLongSignedOptional(String name, int idx, int fieldCursor, long id) throws IOException { long nullLiteral = FieldReferenceOffsetManager.getAbsent64Value(MessageSchema.from(schema)); //build the argument for calling, this will be modified for specific business logic. appendArgumentForBusinessCall(name, "null", "Long", fieldCursor); //build arg list for method signature appendTypeSignatureForPipeWriter(name, "Long"); // Pipe.addIntValue(null==source? nullLiteral : source, output); //build the line to add value into the the pipe, this will not be modified. appendWirteOptionalToPipe(name, nullLiteral, "addLongValue"); firstField = false; }
@Override protected void processLongUnsignedOptional(String name, int idx, int fieldCursor, long id) throws IOException { long nullLiteral = FieldReferenceOffsetManager.getAbsent64Value(MessageSchema.from(schema)); //build the argument for calling, this will be modified for specific business logic. appendArgumentForBusinessCall(name, "null", "Long", fieldCursor); //build arg list for method signature appendTypeSignatureForPipeWriter(name, "Long"); // Pipe.addIntValue(null==source? nullLiteral : source, output); //build the line to add value into the the pipe, this will not be modified. appendWirteOptionalToPipe(name, nullLiteral, "addLongValue"); firstField = false; }
@Override protected void processLongUnsignedOptional(String name, int idx, int fieldCursor, long id) throws IOException { long nullLiteral = FieldReferenceOffsetManager.getAbsent64Value(MessageSchema.from(schema)); //build the argument for calling, this will be modified for specific business logic. appendArgumentForBusinessCall(name, "null", "Long", fieldCursor); //build arg list for method signature appendTypeSignatureForPipeWriter(name, "Long"); // Pipe.addIntValue(null==source? nullLiteral : source, output); //build the line to add value into the the pipe, this will not be modified. appendWirteOptionalToPipe(name, nullLiteral, "addLongValue"); firstField = false; }
@Override protected void processLongSignedOptional(String name, int idx, int fieldCursor, long id) throws IOException { long nullLiteral = FieldReferenceOffsetManager.getAbsent64Value(MessageSchema.from(schema)); //build the argument for calling, this will be modified for specific business logic. appendArgumentForBusinessCall(name, "null", "Long", fieldCursor); //build arg list for method signature appendTypeSignatureForPipeWriter(name, "Long"); // Pipe.addIntValue(null==source? nullLiteral : source, output); //build the line to add value into the the pipe, this will not be modified. appendWirteOptionalToPipe(name, nullLiteral, "addLongValue"); firstField = false; }
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); } }
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); } }
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); } }