gr.uoa.di.madgik.hive.representation
Class TableDesc

java.lang.Object
  extended by gr.uoa.di.madgik.hive.representation.TableDesc

public class TableDesc
extends Object


Constructor Summary
TableDesc(String name, String delimiter)
           
 
Method Summary
 boolean addColumn(String name, String type)
          Add a column to existing table
 List<String> getColumnNames()
           
 LinkedHashMap<String,String> getColumns()
           
 String getDelimiter()
           
 String getName()
           
 String getSource()
           
 void setSource(String source)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableDesc

public TableDesc(String name,
                 String delimiter)
Method Detail

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 column
type - 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.