org.openrdf.sail.rdbms.schema
Class TransactionTable
java.lang.Object
org.openrdf.sail.rdbms.schema.TransactionTable
public class TransactionTable
- extends Object
Manages a temporary table used when uploading new statements with the same
predicate into the database.
- Author:
- James Leigh
TransactionTable
public TransactionTable()
setIdSequence
public void setIdSequence(IdSequence ids)
setQueue
public void setQueue(BlockingQueue<Batch> queue)
setTemporaryTable
public void setTemporaryTable(RdbmsTable table)
setConnection
public void setConnection(Connection conn)
getTripleTable
public TripleTable getTripleTable()
setTripleTable
public void setTripleTable(TripleTable statements)
setSailChangedEvent
public void setSailChangedEvent(DefaultSailChangedEvent sailChangedEvent)
getBatchSize
public int getBatchSize()
setBatchSize
public void setBatchSize(int size)
close
public void close()
throws SQLException
- Throws:
SQLException
insert
public void insert(Number ctx,
Number subj,
Number pred,
Number obj)
throws SQLException,
InterruptedException
- Throws:
SQLException
InterruptedException
committed
public void committed()
throws SQLException
- Throws:
SQLException
removed
public void removed(int count)
throws SQLException
- Throws:
SQLException
isEmpty
public boolean isEmpty()
throws SQLException
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString in class Object
newTripleBatch
protected TripleBatch newTripleBatch()
prepareInsertSelect
protected PreparedStatement prepareInsertSelect(String sql)
throws SQLException
- Throws:
SQLException
buildInsertSelect
protected String buildInsertSelect()
throws SQLException
- Throws:
SQLException
prepareInsert
protected PreparedStatement prepareInsert(String sql)
throws SQLException
- Throws:
SQLException
buildInsert
protected String buildInsert(String tableName,
boolean predColumnPresent)
throws SQLException
- Throws:
SQLException
isPredColumnPresent
protected boolean isPredColumnPresent()
Copyright © 2001-2009 Aduna. All Rights Reserved.