simpledb.materialize
Class TempTable

java.lang.Object
  extended by simpledb.materialize.TempTable

public class TempTable
extends Object

A class that creates temporary tables. A temporary table is not registered in the catalog. The class therefore has a method getTableInfo to return the table's metadata.

Author:
Edward Sciore

Constructor Summary
TempTable(Schema sch, Transaction tx)
          Allocates a name for for a new temporary table having the specified schema.
 
Method Summary
 TableInfo getTableInfo()
          Return the table's metadata.
 UpdateScan open()
          Opens a table scan for the temporary table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempTable

public TempTable(Schema sch,
                 Transaction tx)
Allocates a name for for a new temporary table having the specified schema.

Parameters:
sch - the new table's schema
tx - the calling transaction
Method Detail

open

public UpdateScan open()
Opens a table scan for the temporary table.


getTableInfo

public TableInfo getTableInfo()
Return the table's metadata.

Returns:
the table's metadata


Copyright © 2011. All Rights Reserved.