Sha256: bce4bcfbc5eb9dc6ecb8dc20135ac3717acbf42563ee600e7032f932361a74a5

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

package org.embulk.input.singer_tap;

import com.fasterxml.jackson.databind.JsonNode;
import org.embulk.spi.type.Type;
import org.embulk.spi.type.Types;
import org.msgpack.value.Value;
import org.msgpack.value.ValueFactory;

public class StringParser implements RecordParser {
    @Override
    public Value parse(JsonNode node) {
        return ValueFactory.newString(node.asText());
    }

    public Type embulkType() { return Types.STRING; }
}

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/StringParser.java