edu.yale.cs.hadoopdb.catalog
Class SimpleCatalogGenerator

java.lang.Object
  extended by edu.yale.cs.hadoopdb.catalog.SimpleCatalogGenerator
Direct Known Subclasses:
SimpleRandomReplicationFactorTwo

public class SimpleCatalogGenerator
extends java.lang.Object

This simple catalog generator assumes that is partitioned uniformly across all nodes and assigns ids that follow the node ordering in the instances input file provided.


Field Summary
protected static java.lang.String CATALOG_FILE
           
protected static java.lang.String CHUNKED_DB_PREFIX
           
protected static java.lang.String CHUNKS_PER_NODE
           
protected static java.lang.String DRIVER
           
protected  java.util.List<java.lang.String> nodes
           
protected static java.lang.String NODES_FILE
           
protected static java.lang.String PASSWORD
           
protected static java.lang.String PORT
           
protected  java.util.Properties properties
           
protected  java.util.List<java.lang.String> relations_chunked
           
protected static java.lang.String RELATIONS_CHUNKED
           
protected  java.util.List<java.lang.String> relations_unchunked
           
protected static java.lang.String RELATIONS_UNCHUNKED
           
protected static java.lang.String UNCHUNKED_DB_PREFIX
           
protected static java.lang.String URL_PREFIX
           
protected static java.lang.String USERNAME
           
 
Constructor Summary
SimpleCatalogGenerator()
           
 
Method Summary
 void generateCatalog()
           
protected static java.util.List<java.lang.String> getStringsAsList(java.io.File rfile)
           
static void main(java.lang.String[] args)
           
protected  void parseArguments(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CATALOG_FILE

protected static final java.lang.String CATALOG_FILE
See Also:
Constant Field Values

CHUNKED_DB_PREFIX

protected static final java.lang.String CHUNKED_DB_PREFIX
See Also:
Constant Field Values

CHUNKS_PER_NODE

protected static final java.lang.String CHUNKS_PER_NODE
See Also:
Constant Field Values

DRIVER

protected static final java.lang.String DRIVER
See Also:
Constant Field Values

nodes

protected java.util.List<java.lang.String> nodes

NODES_FILE

protected static final java.lang.String NODES_FILE
See Also:
Constant Field Values

PASSWORD

protected static final java.lang.String PASSWORD
See Also:
Constant Field Values

PORT

protected static final java.lang.String PORT
See Also:
Constant Field Values

properties

protected java.util.Properties properties

relations_chunked

protected java.util.List<java.lang.String> relations_chunked

RELATIONS_CHUNKED

protected static final java.lang.String RELATIONS_CHUNKED
See Also:
Constant Field Values

relations_unchunked

protected java.util.List<java.lang.String> relations_unchunked

RELATIONS_UNCHUNKED

protected static final java.lang.String RELATIONS_UNCHUNKED
See Also:
Constant Field Values

UNCHUNKED_DB_PREFIX

protected static final java.lang.String UNCHUNKED_DB_PREFIX
See Also:
Constant Field Values

URL_PREFIX

protected static final java.lang.String URL_PREFIX
See Also:
Constant Field Values

USERNAME

protected static final java.lang.String USERNAME
See Also:
Constant Field Values
Constructor Detail

SimpleCatalogGenerator

public SimpleCatalogGenerator()
Method Detail

generateCatalog

public void generateCatalog()
                     throws javax.xml.bind.JAXBException,
                            javax.xml.bind.PropertyException,
                            java.io.FileNotFoundException,
                            java.io.IOException
Throws:
javax.xml.bind.JAXBException
javax.xml.bind.PropertyException
java.io.FileNotFoundException
java.io.IOException

getStringsAsList

protected static java.util.List<java.lang.String> getStringsAsList(java.io.File rfile)

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

parseArguments

protected void parseArguments(java.lang.String[] args)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException