|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BatchWriter
An interface representing an object that can flush a TableBatch to an SQL server Connection.
| Method Summary | |
|---|---|
void |
updateStatistics(java.util.Map activity,
java.sql.Connection con)
Updates the per-table statistics held in this object, and may tell the SQL database to update its statistics using the supplied Connection. |
java.util.List |
write(java.sql.Connection con,
java.util.Map tables,
java.util.Set filter)
Performs all the processing for flushing a few tables to the connection, and returns a List of jobs to do the actual flushing. |
| Method Detail |
|---|
java.util.List write(java.sql.Connection con,
java.util.Map tables,
java.util.Set filter)
throws java.sql.SQLException
con - the SQL connectiontables - a Map from table name to Tablefilter - a Set of table names to write, or null to write all tables
java.sql.SQLException - if there is an underlying DB problem
void updateStatistics(java.util.Map activity,
java.sql.Connection con)
throws java.sql.SQLException
activity - a Map from table name to the amount of activity (in rows) as an Integercon - a Connection, over which to talk to the database
java.sql.SQLException - if there is an underlying DB problem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||