org.openrdf.sail.rdbms.managers
Class TripleTableManager

java.lang.Object
  extended by org.openrdf.sail.rdbms.managers.TripleTableManager

public class TripleTableManager
extends Object

Manages and delegates to the collection of TripleTable.

Author:
James Leigh

Field Summary
static boolean INDEX_TRIPLES
           
static int MAX_TABLES
           
 Number OTHER_PRED
           
 
Constructor Summary
TripleTableManager(ValueTableFactory factory)
           
 
Method Summary
 void close()
           
 void createTripleIndexes()
           
 void dropTripleIndexes()
           
protected  Set<String> findAllTables()
           
protected  Map<Number,TripleTable> findPredicateTables()
           
 String findTableName(Number pred)
           
protected  Set<String> findTablesWithColumn(String column)
           
protected  Set<String> findTablesWithExactColumn(String column)
           
 TripleTable getExistingTable(Number pred)
           
protected  String getExpungeCondition()
           
 int getMaxNumberOfTripleTables()
           
protected  String getNewTableName(Number pred)
           
 Collection<Number> getPredicateIds()
           
 TripleTable getPredicateTable(Number pred)
           
 String getTableName(Number pred)
           
protected  String getTableNamePrefix(Number pred)
           
 void initialize()
           
 boolean isIndexingTriples()
           
protected  Number key(String tn)
           
 void removed(int count, boolean locked)
           
 void setBNodeManager(BNodeManager bnodeTable)
           
 void setConnection(Connection conn)
           
 void setHashManager(HashManager hashes)
           
 void setIdSequence(IdSequence ids)
           
 void setIndexingTriples(boolean indexingTriples)
           
 void setLiteralManager(LiteralManager literalTable)
           
 void setMaxNumberOfTripleTables(int max)
           
 void setPredicateManager(PredicateManager predicates)
           
 void setUriManager(UriManager uriTable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_TABLES

public static int MAX_TABLES

INDEX_TRIPLES

public static final boolean INDEX_TRIPLES
See Also:
Constant Field Values

OTHER_PRED

public Number OTHER_PRED
Constructor Detail

TripleTableManager

public TripleTableManager(ValueTableFactory factory)
Method Detail

setConnection

public void setConnection(Connection conn)

setIdSequence

public void setIdSequence(IdSequence ids)

setPredicateManager

public void setPredicateManager(PredicateManager predicates)

setBNodeManager

public void setBNodeManager(BNodeManager bnodeTable)

setLiteralManager

public void setLiteralManager(LiteralManager literalTable)

setUriManager

public void setUriManager(UriManager uriTable)

setHashManager

public void setHashManager(HashManager hashes)

getMaxNumberOfTripleTables

public int getMaxNumberOfTripleTables()

setMaxNumberOfTripleTables

public void setMaxNumberOfTripleTables(int max)

isIndexingTriples

public boolean isIndexingTriples()

setIndexingTriples

public void setIndexingTriples(boolean indexingTriples)

initialize

public void initialize()
                throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

createTripleIndexes

public void createTripleIndexes()
                         throws SQLException
Throws:
SQLException

dropTripleIndexes

public void dropTripleIndexes()
                       throws SQLException
Throws:
SQLException

findTableName

public String findTableName(Number pred)
                     throws SQLException
Throws:
SQLException

getExistingTable

public TripleTable getExistingTable(Number pred)

getPredicateIds

public Collection<Number> getPredicateIds()

getPredicateTable

public TripleTable getPredicateTable(Number pred)
                              throws SQLException
Throws:
SQLException

getTableName

public String getTableName(Number pred)
                    throws SQLException
Throws:
SQLException

removed

public void removed(int count,
                    boolean locked)
             throws SQLException
Throws:
SQLException

findAllTables

protected Set<String> findAllTables()
                             throws SQLException
Throws:
SQLException

findPredicateTables

protected Map<Number,TripleTable> findPredicateTables()
                                               throws SQLException
Throws:
SQLException

findTablesWithColumn

protected Set<String> findTablesWithColumn(String column)
                                    throws SQLException
Throws:
SQLException

findTablesWithExactColumn

protected Set<String> findTablesWithExactColumn(String column)
                                         throws SQLException
Throws:
SQLException

getExpungeCondition

protected String getExpungeCondition()
                              throws SQLException
Throws:
SQLException

getNewTableName

protected String getNewTableName(Number pred)
                          throws SQLException
Throws:
SQLException

key

protected Number key(String tn)

getTableNamePrefix

protected String getTableNamePrefix(Number pred)
                             throws SQLException
Throws:
SQLException


Copyright © 2001-2008 Aduna. All Rights Reserved.