org.openrdf.sail.rdbms.schema
Class ValueTableFactory

java.lang.Object
  extended by org.openrdf.sail.rdbms.schema.ValueTableFactory
Direct Known Subclasses:
PgSqlValueTableFactory

public class ValueTableFactory
extends Object

Factory class used to create or load the database tables.

Author:
James Leigh

Field Summary
protected static String BNODE_VALUES
           
protected static String DTS
           
protected static String HASH_TABLE
           
static boolean INDEX_VALUES
           
protected static String LANGS
           
protected static String LANGUAGES
           
protected static String LBS
           
protected static String LLBS
           
protected static String LURI_VALUES
           
protected static String NAMESPACES
           
protected static String NUM_VALUES
           
protected static String RESOURCES
           
protected static String TIMES
           
protected static String URI_VALUES
           
 
Constructor Summary
ValueTableFactory(TableFactory factory)
           
 
Method Summary
 BNodeTable createBNodeTable(Connection conn, BlockingQueue<Batch> queue)
           
 HashTable createHashTable(Connection conn, BlockingQueue<Batch> queue)
           
 LiteralTable createLiteralTable(Connection conn, BlockingQueue<Batch> queue)
           
 NamespacesTable createNamespacesTable(Connection conn)
           
protected  RdbmsTable createTable(Connection conn, String name)
           
 TripleTable createTripleTable(Connection conn, String tableName)
           
 URITable createURITable(Connection conn, BlockingQueue<Batch> queue)
           
protected  ValueTable createValueTable(Connection conn, BlockingQueue<Batch> queue, String name, int sqlType)
           
protected  ValueTable createValueTable(Connection conn, BlockingQueue<Batch> queue, String name, int sqlType, int length)
           
protected  HashTable newHashtable(ValueTable table)
           
protected  ValueTable newValueTable()
           
 void setIdSequence(IdSequence ids)
           
 void setSequenced(boolean sequenced)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_VALUES

public static final boolean INDEX_VALUES
See Also:
Constant Field Values

LANGUAGES

protected static final String LANGUAGES
See Also:
Constant Field Values

NAMESPACES

protected static final String NAMESPACES
See Also:
Constant Field Values

RESOURCES

protected static final String RESOURCES
See Also:
Constant Field Values

BNODE_VALUES

protected static final String BNODE_VALUES
See Also:
Constant Field Values

URI_VALUES

protected static final String URI_VALUES
See Also:
Constant Field Values

LURI_VALUES

protected static final String LURI_VALUES
See Also:
Constant Field Values

LBS

protected static final String LBS
See Also:
Constant Field Values

LLBS

protected static final String LLBS
See Also:
Constant Field Values

LANGS

protected static final String LANGS
See Also:
Constant Field Values

DTS

protected static final String DTS
See Also:
Constant Field Values

NUM_VALUES

protected static final String NUM_VALUES
See Also:
Constant Field Values

TIMES

protected static final String TIMES
See Also:
Constant Field Values

HASH_TABLE

protected static final String HASH_TABLE
See Also:
Constant Field Values
Constructor Detail

ValueTableFactory

public ValueTableFactory(TableFactory factory)
Method Detail

setIdSequence

public void setIdSequence(IdSequence ids)

setSequenced

public void setSequenced(boolean sequenced)

createHashTable

public HashTable createHashTable(Connection conn,
                                 BlockingQueue<Batch> queue)
                          throws SQLException
Throws:
SQLException

createNamespacesTable

public NamespacesTable createNamespacesTable(Connection conn)

createBNodeTable

public BNodeTable createBNodeTable(Connection conn,
                                   BlockingQueue<Batch> queue)
                            throws SQLException
Throws:
SQLException

createURITable

public URITable createURITable(Connection conn,
                               BlockingQueue<Batch> queue)
                        throws SQLException
Throws:
SQLException

createLiteralTable

public LiteralTable createLiteralTable(Connection conn,
                                       BlockingQueue<Batch> queue)
                                throws SQLException
Throws:
SQLException

createTripleTable

public TripleTable createTripleTable(Connection conn,
                                     String tableName)

createTable

protected RdbmsTable createTable(Connection conn,
                                 String name)

createValueTable

protected ValueTable createValueTable(Connection conn,
                                      BlockingQueue<Batch> queue,
                                      String name,
                                      int sqlType)
                               throws SQLException
Throws:
SQLException

createValueTable

protected ValueTable createValueTable(Connection conn,
                                      BlockingQueue<Batch> queue,
                                      String name,
                                      int sqlType,
                                      int length)
                               throws SQLException
Throws:
SQLException

newHashtable

protected HashTable newHashtable(ValueTable table)

newValueTable

protected ValueTable newValueTable()


Copyright © 2001-2008 Aduna. All Rights Reserved.