All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.tdhs.client.response.TDHSMetaData Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
/*
 * Copyright(C) 2011-2012 Alibaba Group Holding Limited
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 *  Authors:
 *    wentong 
 */

package com.taobao.tdhs.client.response;

import com.taobao.tdhs.client.request.TableInfo;

import java.util.List;

/**
 * @author 文通
 * @since 12-3-23 下午1:46
 */
public class TDHSMetaData {

    private String db;

    private String table;

    private List fieldNames;

    public TDHSMetaData(TableInfo info) {
        this.db = info.getDb();
        this.table = info.getTable();
        this.fieldNames = info.getFields();
    }


    public TDHSMetaData(TableInfo info, List fieldNames) {
        this.db = info.getDb();
        this.table = info.getTable();
        this.fieldNames = fieldNames;
    }


    public TDHSMetaData(String db, String table, List fieldNames) {
        this.db = db;
        this.table = table;
        this.fieldNames = fieldNames;
    }

    public String getDb() {
        return db;
    }

    public String getTable() {
        return table;
    }

    public List getFieldNames() {
        return fieldNames;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy