Package org.teiid.query.tempdata
Class TempTable
- java.lang.Object
-
- org.teiid.query.tempdata.TempTable
-
- All Implemented Interfaces:
Cloneable
,SearchableTable
public class TempTable extends Object implements Cloneable, SearchableTable
A Teiid Temp Table TODO: in this implementation blocked exceptions will not happen allowing for subquery evaluation though would cause pauses
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TempTable
clone()
TupleSource
createTupleSource(List<? extends Expression> projectedCols, Criteria condition, OrderBy orderBy)
TupleSource
delete(Criteria crit)
boolean
equals(Object obj)
AtomicInteger
getActive()
Map<Expression,Integer>
getColumnMap()
List<ElementSymbol>
getColumns()
Long
getId()
TempMetadataID
getMetadataId()
int
getPkLength()
long
getRowCount()
int
hashCode()
TupleSource
insert(TupleSource tuples, List<ElementSymbol> variables, boolean canUndo, boolean upsert, CommandContext context)
boolean
isUpdatable()
Object
matchesPkColumn(int pkIndex, Expression ex)
void
remove()
void
setAllowImplicitIndexing(boolean b)
boolean
supportsOrdering(int pkIndex, Expression ex)
String
toString()
long
truncate(boolean force)
TupleSource
update(Criteria crit, SetClauseList update)
-
-
-
Method Detail
-
getActive
public AtomicInteger getActive()
-
createTupleSource
public TupleSource createTupleSource(List<? extends Expression> projectedCols, Criteria condition, OrderBy orderBy) throws TeiidComponentException, TeiidProcessingException
-
getRowCount
public long getRowCount()
-
truncate
public long truncate(boolean force)
-
remove
public void remove()
-
matchesPkColumn
public Object matchesPkColumn(int pkIndex, Expression ex)
- Specified by:
matchesPkColumn
in interfaceSearchableTable
-
supportsOrdering
public boolean supportsOrdering(int pkIndex, Expression ex)
- Specified by:
supportsOrdering
in interfaceSearchableTable
-
getColumns
public List<ElementSymbol> getColumns()
-
insert
public TupleSource insert(TupleSource tuples, List<ElementSymbol> variables, boolean canUndo, boolean upsert, CommandContext context) throws TeiidComponentException, ExpressionEvaluationException, TeiidProcessingException
-
update
public TupleSource update(Criteria crit, SetClauseList update) throws TeiidComponentException, ExpressionEvaluationException, TeiidProcessingException
-
delete
public TupleSource delete(Criteria crit) throws TeiidComponentException, ExpressionEvaluationException, TeiidProcessingException
-
getPkLength
public int getPkLength()
- Specified by:
getPkLength
in interfaceSearchableTable
-
isUpdatable
public boolean isUpdatable()
-
getColumnMap
public Map<Expression,Integer> getColumnMap()
- Specified by:
getColumnMap
in interfaceSearchableTable
-
getMetadataId
public TempMetadataID getMetadataId()
-
getId
public Long getId()
-
setAllowImplicitIndexing
public void setAllowImplicitIndexing(boolean b)
-
-