Sha256: c13fdcc4252c2620d6eb765b1dbc851134f283f923c40640a0fe5a87765c97a9

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

package com.treasuredata.api.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

import java.util.List;

public class TDTable
{
    private String name;
    private TDTableType type;
    private List<TDColumn> columns;

    @JsonCreator
    public TDTable(
            @JsonProperty("name") String name,
            @JsonProperty("type") TDTableType type,
            @JsonProperty("columns") List<TDColumn> columns)
    {
        this.name = name;
        this.type = type;
        this.columns = columns;
    }

    @JsonProperty
    public String getName()
    {
        return name;
    }

    @JsonProperty
    public TDTableType getType()
    {
        return type;
    }

    @JsonProperty
    public List<TDColumn> getColumns()
    {
        return columns;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        TDTable other = (TDTable) obj;
        return Objects.equal(this.name, other.name) &&
                Objects.equal(this.type, other.type) &&
                Objects.equal(this.columns, other.columns);
    }

    @Override
    public int hashCode()
    {
        return Objects.hashCode(name, type, columns);
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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