gr.uoa.di.madgik.hive.representation
Class TableDesc
java.lang.Object
gr.uoa.di.madgik.hive.representation.TableDesc
public class TableDesc
- extends Object
TableDesc
public TableDesc(String name,
String delimiter)
getName
public String getName()
- Returns:
- the name
getDelimiter
public String getDelimiter()
- Returns:
- the delimiter
getSource
public String getSource()
- Returns:
- the source
setSource
public void setSource(String source)
- Parameters:
source - the source to set
addColumn
public boolean addColumn(String name,
String type)
- Add a column to existing table
- Parameters:
name - Name of the columntype - Type of the column
- Returns:
- false if column already exists
getColumns
public LinkedHashMap<String,String> getColumns()
- Returns:
- the columns
getColumnNames
public List<String> getColumnNames()
- Returns:
- the column names in an ordered list
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.