simpledb.index.planner
Class IndexUpdatePlanner

java.lang.Object
  extended by simpledb.index.planner.IndexUpdatePlanner
All Implemented Interfaces:
UpdatePlanner

public class IndexUpdatePlanner
extends Object
implements UpdatePlanner

A modification of the basic update planner. It dispatches each update statement to the corresponding index planner.

Author:
Edward Sciore

Constructor Summary
IndexUpdatePlanner()
           
 
Method Summary
 int executeCreateIndex(CreateIndexData data, Transaction tx)
          Executes the specified create index statement, and returns the number of affected records.
 int executeCreateTable(CreateTableData data, Transaction tx)
          Executes the specified create table statement, and returns the number of affected records.
 int executeCreateView(CreateViewData data, Transaction tx)
          Executes the specified create view statement, and returns the number of affected records.
 int executeDelete(DeleteData data, Transaction tx)
          Executes the specified delete statement, and returns the number of affected records.
 int executeInsert(InsertData data, Transaction tx)
          Executes the specified insert statement, and returns the number of affected records.
 int executeModify(ModifyData data, Transaction tx)
          Executes the specified modify statement, and returns the number of affected records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexUpdatePlanner

public IndexUpdatePlanner()
Method Detail

executeInsert

public int executeInsert(InsertData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified insert statement, and returns the number of affected records.

Specified by:
executeInsert in interface UpdatePlanner
Parameters:
data - the parsed representation of the insert statement
tx - the calling transaction
Returns:
the number of affected records

executeDelete

public int executeDelete(DeleteData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified delete statement, and returns the number of affected records.

Specified by:
executeDelete in interface UpdatePlanner
Parameters:
data - the parsed representation of the delete statement
tx - the calling transaction
Returns:
the number of affected records

executeModify

public int executeModify(ModifyData data,
                         Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified modify statement, and returns the number of affected records.

Specified by:
executeModify in interface UpdatePlanner
Parameters:
data - the parsed representation of the modify statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateTable

public int executeCreateTable(CreateTableData data,
                              Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create table statement, and returns the number of affected records.

Specified by:
executeCreateTable in interface UpdatePlanner
Parameters:
data - the parsed representation of the create table statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateView

public int executeCreateView(CreateViewData data,
                             Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create view statement, and returns the number of affected records.

Specified by:
executeCreateView in interface UpdatePlanner
Parameters:
data - the parsed representation of the create view statement
tx - the calling transaction
Returns:
the number of affected records

executeCreateIndex

public int executeCreateIndex(CreateIndexData data,
                              Transaction tx)
Description copied from interface: UpdatePlanner
Executes the specified create index statement, and returns the number of affected records.

Specified by:
executeCreateIndex in interface UpdatePlanner
Parameters:
data - the parsed representation of the create index statement
tx - the calling transaction
Returns:
the number of affected records


Copyright © 2011. All Rights Reserved.