Sha256: 65bd059fd8e21d622a1fd353792f82a68d1dcef152900481ebfa1a98c943b0d0

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

package org.embulk.input.singer_tap;

import com.fasterxml.jackson.databind.JsonNode;
import org.msgpack.value.Value;
import org.msgpack.value.ValueFactory;

public class NullableNumberParser extends NumberParser {
    @Override
    public Value parse(JsonNode node) {
        if (node.isNull()) {
            return ValueFactory.newNil();
        }
        return ValueFactory.newFloat(node.asDouble());
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-input-singer_tap-0.1.0 src/main/java/org/embulk/input/singer_tap/NullableNumberParser.java