public abstract class SqliteStorageLayer<T extends IReplicationOrderedPacket> extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
SqliteStorageLayer.RDBMSRedoLogIterator |
Modifier and Type | Field and Description |
---|---|
protected List<String> |
COLUMN_NAMES |
protected Connection |
connection |
protected org.slf4j.Logger |
logger |
protected int |
OPERATION_TYPE_COLUMN_INDEX |
protected int |
PACKET_COLUMN_INDEX |
protected int |
PACKET_COUNT_COLUMN_INDEX |
protected int |
PACKET_WEIGHT_COLUMN_INDEX |
protected int |
REDO_KEY_COLUMN_INDEX |
protected static String |
TABLE_NAME |
protected int |
TYPE_NAME_COLUMN_INDEX |
protected int |
UID_COLUMN_INDEX |
Modifier | Constructor and Description |
---|---|
protected |
SqliteStorageLayer(DBSwapRedoLogFileConfig<T> config) |
Modifier and Type | Method and Description |
---|---|
void |
deleteDataFile() |
protected T |
deserializePacket(ResultSet resultSet) |
protected void |
dropTable() |
protected void |
executeCreateTable(String sqlQuery) |
protected long |
executeDelete(String sqlQuery) |
protected long |
executeInsert(PreparedStatement statement) |
protected ResultSet |
executeQuery(String sqlQuery) |
protected int |
getPacketCount(T packet) |
protected String |
getPacketOperationTypeName(T packet) |
protected String |
getPacketTypeName(T packet) |
protected String |
getPacketUID(T packet) |
protected int |
getPacketWeight(T packet) |
protected long |
getStorageRedoLogSize() |
protected byte[] |
serializePacket(T packet) |
protected final org.slf4j.Logger logger
protected static final String TABLE_NAME
protected Connection connection
protected final int REDO_KEY_COLUMN_INDEX
protected final int TYPE_NAME_COLUMN_INDEX
protected final int OPERATION_TYPE_COLUMN_INDEX
protected final int UID_COLUMN_INDEX
protected final int PACKET_COUNT_COLUMN_INDEX
protected final int PACKET_WEIGHT_COLUMN_INDEX
protected final int PACKET_COLUMN_INDEX
protected SqliteStorageLayer(DBSwapRedoLogFileConfig<T> config)
protected long getStorageRedoLogSize()
protected void executeCreateTable(String sqlQuery) throws SQLException
SQLException
protected long executeInsert(PreparedStatement statement) throws SQLException
SQLException
protected ResultSet executeQuery(String sqlQuery) throws SQLException
SQLException
protected long executeDelete(String sqlQuery) throws SQLException
SQLException
protected byte[] serializePacket(T packet)
protected void dropTable() throws SQLException
SQLException
public void deleteDataFile()
protected int getPacketCount(T packet)
protected int getPacketWeight(T packet)
Copyright © GigaSpaces.