Sha256: e6f50bea74773e6add8a82266f3c20bfb0486221dfc8ec7111cffec579e8ad80

Contents?: true

Size: 783 Bytes

Versions: 5

Compression:

Stored size: 783 Bytes

Contents

package com.treasuredata.api.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.RuntimeJsonMappingException;

public enum TDTableType
{
    LOG("log"),
    ITEM("item");

    private String name;

    private TDTableType(String name)
    {
        this.name = name;
    }

    @JsonCreator
    public static TDTableType fromName(String name)
    {
        if ("log".equals(name)) {
            return LOG;
        } else if ("item".equals(name)) {
            return ITEM;
        }
        throw new RuntimeJsonMappingException("Unexpected string tuple to deserialize TDTableType");
    }

    @JsonValue
    @Override
    public String toString()
    {
        return name;
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
embulk-output-td-0.1.4 src/main/java/com/treasuredata/api/model/TDTableType.java
embulk-output-td-0.1.3 src/main/java/com/treasuredata/api/model/TDTableType.java
embulk-output-td-0.1.2 src/main/java/com/treasuredata/api/model/TDTableType.java
embulk-output-td-0.1.1 src/main/java/com/treasuredata/api/model/TDTableType.java
embulk-output-td-0.1.0 src/main/java/com/treasuredata/api/model/TDTableType.java