public class TableBase
extends java.lang.Object
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE_SET_TABLE |
com.streamscape.ds.types.Type[] |
colTypes |
int |
columnCount |
DataspaceStore |
database |
com.streamscape.ds.persist.index.Index |
fullIndex |
static int |
FUNCTION_TABLE |
static int |
INFO_SCHEMA_TABLE |
boolean |
isSessionBased |
boolean |
isTemp |
boolean |
isView |
static int |
JOURNAL_FILE_QUEUE |
static int |
LOGGED_TABLE |
static int |
MEMORY_TABLE |
long |
persistenceId |
int |
persistenceScope |
static int |
PERSISTENT_TABLE |
static int |
RESULT_TABLE |
static int |
SCOPE_FULL |
static int |
SCOPE_SESSION |
static int |
SCOPE_STATEMENT |
static int |
SCOPE_TRANSACTION |
static int |
SEMAGRAPH |
static int |
SNAPSHOT |
com.streamscape.ds.persist.PersistentStore |
store |
static int |
SYSTEM_SUBQUERY |
static int |
SYSTEM_TABLE |
static int |
TEMP_TEXT_TABLE |
static int |
TEXT_TABLE |
static int |
TRANSIENT_TABLE |
static int |
TRANSITION_TABLE |
static int |
VIEW_TABLE |
Constructor and Description |
---|
TableBase(com.streamscape.ds.session.Session session,
DataspaceStore database,
int scope,
int type,
com.streamscape.ds.types.Type[] colTypes) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllData(com.streamscape.ds.persist.PersistentStore store) |
void |
clearAllData(com.streamscape.ds.session.Session session) |
com.streamscape.ds.persist.index.Index |
createAndAddIndexStructure(NameManager.ObjectName name,
int[] columns,
boolean[] descending,
boolean[] nullsLast,
boolean unique,
boolean constraint,
boolean forward,
SIndexType sIndexType) |
com.streamscape.ds.persist.index.Index |
createIndex(com.streamscape.ds.session.Session session,
NameManager.ObjectName name,
int[] columns,
boolean[] descending,
boolean[] nullsLast,
boolean unique,
boolean constraint,
boolean forward,
SIndexType sIndexType)
Create new memory-resident index.
|
com.streamscape.ds.persist.index.Index |
createIndexStructure(NameManager.ObjectName name,
int[] columns,
boolean[] descending,
boolean[] nullsLast,
boolean unique,
boolean constraint,
boolean forward,
SIndexType sIndexType) |
void |
createPrimaryIndex(int[] pkcols,
com.streamscape.ds.types.Type[] pktypes,
NameManager.ObjectName name) |
com.streamscape.ds.persist.index.Index |
dropIndex(int todrop)
Performs Table structure modification and changes to the index nodes
to remove a given index from a MEMORY or TEXT table.
|
TableBase |
duplicate() |
int |
getColumnCount()
Returns the count of all visible columns.
|
com.streamscape.ds.types.Type[] |
getColumnTypes()
Returns an array of Type indicating the SQL type of the columns
|
int |
getDataColumnCount()
Returns the count of all columns.
|
java.lang.String |
getDataScopeString() |
java.lang.Object[] |
getEmptyRowData() |
com.streamscape.ds.persist.index.Index |
getFullIndex()
Returns an index on all the columns
|
int |
getId() |
com.streamscape.ds.persist.index.Index |
getIndex(int i)
Returns the Index object at the given index
|
int |
getIndexCount() |
com.streamscape.ds.persist.index.Index[] |
getIndexList()
Returns the indexes
|
boolean[] |
getNewColumnCheckList()
Returns empty boolean array.
|
long |
getPersistenceId() |
com.streamscape.ds.persist.index.Index |
getPrimaryIndex() |
int[] |
getPrimaryKey() |
com.streamscape.ds.types.Type[] |
getPrimaryKeyTypes() |
com.streamscape.ds.persist.PersistentStore |
getRowStore(com.streamscape.ds.session.Session session) |
long |
getSampleCount() |
java.lang.String |
getSampleCountAsString(com.streamscape.ds.session.Session session) |
int |
getTableType() |
boolean |
hasLobColumn() |
boolean |
hasPrimaryKey() |
boolean |
isDropped() |
boolean |
isEmpty(com.streamscape.ds.session.Session session) |
boolean |
isLogged() |
boolean |
isTransactional() |
boolean |
onCommitPreserve() |
void |
releaseRowStore(com.streamscape.ds.session.Session session) |
com.streamscape.ds.navigator.RowIterator |
rowIterator(com.streamscape.ds.persist.PersistentStore store) |
com.streamscape.ds.navigator.RowIterator |
rowIterator(com.streamscape.ds.session.Session session) |
void |
setBestRowIdentifiers()
This method is called whenever there is a change to table structure and
serves two porposes: (a) to reset the best set of columns that identify
the rows of the table (b) to reset the best index that can be used
to find rows of the table given a column value.
|
void |
setDropped(boolean isDropped) |
void |
setHasLobColumn(boolean hasLobColumn) |
void |
setIndexes(com.streamscape.ds.persist.index.Index[] indexes) |
void |
setTransactional(boolean value) |
public static final int INFO_SCHEMA_TABLE
public static final int SYSTEM_SUBQUERY
public static final int TRANSIENT_TABLE
public static final int MEMORY_TABLE
public static final int LOGGED_TABLE
public static final int PERSISTENT_TABLE
public static final int TEMP_TEXT_TABLE
public static final int TEXT_TABLE
public static final int VIEW_TABLE
public static final int RESULT_TABLE
public static final int TRANSITION_TABLE
public static final int FUNCTION_TABLE
public static final int SYSTEM_TABLE
public static final int CHANGE_SET_TABLE
public static final int JOURNAL_FILE_QUEUE
public static final int SNAPSHOT
public static final int SEMAGRAPH
public static final int SCOPE_STATEMENT
public static final int SCOPE_TRANSACTION
public static final int SCOPE_SESSION
public static final int SCOPE_FULL
public com.streamscape.ds.persist.PersistentStore store
public int persistenceScope
public long persistenceId
public DataspaceStore database
public com.streamscape.ds.persist.index.Index fullIndex
public com.streamscape.ds.types.Type[] colTypes
public int columnCount
public boolean isTemp
public boolean isView
public boolean isSessionBased
public TableBase(com.streamscape.ds.session.Session session, DataspaceStore database, int scope, int type, com.streamscape.ds.types.Type[] colTypes)
public TableBase duplicate()
public final int getTableType()
public long getPersistenceId()
public int getId()
public final boolean onCommitPreserve()
public final com.streamscape.ds.navigator.RowIterator rowIterator(com.streamscape.ds.session.Session session)
public final com.streamscape.ds.navigator.RowIterator rowIterator(com.streamscape.ds.persist.PersistentStore store)
public final int getIndexCount()
public final com.streamscape.ds.persist.index.Index getPrimaryIndex()
public final com.streamscape.ds.types.Type[] getPrimaryKeyTypes()
public final boolean hasPrimaryKey()
public final int[] getPrimaryKey()
public boolean hasLobColumn()
public void setHasLobColumn(boolean hasLobColumn)
public final com.streamscape.ds.types.Type[] getColumnTypes()
public com.streamscape.ds.persist.index.Index getFullIndex()
public final com.streamscape.ds.persist.index.Index getIndex(int i)
public final com.streamscape.ds.persist.index.Index[] getIndexList()
public final boolean[] getNewColumnCheckList()
public int getColumnCount()
public final int getDataColumnCount()
public boolean isTransactional()
public void setTransactional(boolean value)
public final void setBestRowIdentifiers()
public final void createPrimaryIndex(int[] pkcols, com.streamscape.ds.types.Type[] pktypes, NameManager.ObjectName name)
public final com.streamscape.ds.persist.index.Index createAndAddIndexStructure(NameManager.ObjectName name, int[] columns, boolean[] descending, boolean[] nullsLast, boolean unique, boolean constraint, boolean forward, SIndexType sIndexType)
public final com.streamscape.ds.persist.index.Index createIndexStructure(NameManager.ObjectName name, int[] columns, boolean[] descending, boolean[] nullsLast, boolean unique, boolean constraint, boolean forward, SIndexType sIndexType)
public com.streamscape.ds.persist.index.Index dropIndex(int todrop)
public final void setIndexes(com.streamscape.ds.persist.index.Index[] indexes)
public final java.lang.Object[] getEmptyRowData()
public final com.streamscape.ds.persist.index.Index createIndex(com.streamscape.ds.session.Session session, NameManager.ObjectName name, int[] columns, boolean[] descending, boolean[] nullsLast, boolean unique, boolean constraint, boolean forward, SIndexType sIndexType)
public void clearAllData(com.streamscape.ds.session.Session session)
public void clearAllData(com.streamscape.ds.persist.PersistentStore store)
public final boolean isEmpty(com.streamscape.ds.session.Session session)
public com.streamscape.ds.persist.PersistentStore getRowStore(com.streamscape.ds.session.Session session)
public void releaseRowStore(com.streamscape.ds.session.Session session)
public boolean isLogged()
public boolean isDropped()
public void setDropped(boolean isDropped)
public java.lang.String getSampleCountAsString(com.streamscape.ds.session.Session session)
public long getSampleCount()
public java.lang.String getDataScopeString()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.