public class FileTable extends Table implements SourceStreamProvider
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
checkConstraints, colDefaults, colGenerated, columnList, defaultRanges, dfetchMonitor, emptyArray, emptyCollectionArray, fkConstraints, fkMainConstraints, identityColumn, identitySequence, tableSchemaChangeTimestamp, triggerList, triggerLists
CHANGE_SET_TABLE, colTypes, columnCount, database, fullIndex, FUNCTION_TABLE, INFO_SCHEMA_TABLE, isSessionBased, isTemp, isView, JOURNAL_FILE_QUEUE, LOGGED_TABLE, MEMORY_TABLE, persistenceId, persistenceScope, PERSISTENT_TABLE, RESULT_TABLE, SCOPE_FULL, SCOPE_SESSION, SCOPE_STATEMENT, SCOPE_TRANSACTION, SEMAGRAPH, SNAPSHOT, store, SYSTEM_SUBQUERY, SYSTEM_TABLE, TEMP_TEXT_TABLE, TEXT_TABLE, TRANSIENT_TABLE, TRANSITION_TABLE, VIEW_TABLE
ACTOR, ASPECTS, ASSERTION, CATALOG, CHARSET, COLLATION, COLLECTION, COLUMN, CONNECTION_FACTORY, CONSTRAINT, CURSOR, DOMAIN, EVENT_PROTOTYPE, FACETS, FILE_DESCRIPTOR, FULL_TEXT_INDEX, FUNCTION, GRANTEE, INDEX, JOB, LABEL, PARAMETER, PROCEDURE, REFERENCE_LINK, REPLICA, REPLICATION_SOURCE, ROUTINE, SCHEMA, SEMANTIC_TYPE, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TIMER, TRANSIENT_VAR, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
Constructor and Description |
---|
FileTable(DataspaceStore db,
NameManager.ObjectName name,
int type)
Constructs a new TextTable from the given arguments.
|
FileTable(DataspaceStore db,
NameManager.ObjectName name,
int type,
FileTableCollection parent) |
Modifier and Type | Method and Description |
---|---|
void |
checkDataReadOnly()
Used by INSERT, DELETE, UPDATE operations.
|
void |
checkOperation(int type) |
void |
compress(com.streamscape.ds.session.Session session) |
void |
connect(com.streamscape.ds.session.Session session) |
void |
connect(com.streamscape.ds.session.Session session,
boolean readOnly) |
void |
connect(com.streamscape.ds.session.Session session,
boolean readOnly,
boolean isForStream) |
void |
connect(com.streamscape.ds.session.Session session,
boolean isReadOnly,
boolean isForStream,
boolean isForAppend) |
void |
connect(com.streamscape.ds.session.Session session,
boolean isReadOnly,
boolean isForStream,
boolean isForAppend,
long checkInterval) |
java.lang.Object |
createRowParser() |
void |
decompress(com.streamscape.ds.session.Session session) |
void |
disconnect()
disconnects from the data source
|
boolean |
existsDataSource() |
void |
fireMalformedDataTrigger(com.streamscape.ds.session.Session session,
java.lang.String rowText,
java.lang.Object[] data,
java.lang.Exception exception) |
AppendableFileTableReader.AppendableFileTableReaderReplicationListener |
getAppendableReaderListener() |
AppendableFileTableReader.Statistics |
getAppendableStatistics() |
long |
getCheckInterval() |
ConnectionState |
getConnectionState() |
java.lang.String |
getDataSource() |
java.lang.String |
getDataSourceDDL() |
FileDescriptor |
getFileDescriptor() |
static FileDescriptor |
getFileDescriptor(java.lang.String fileDescriptorName) |
java.lang.String |
getFileDescriptorName() |
FileDescriptor |
getFileDescriptorOrig() |
FileDescriptorFactory |
getFileDescriptorProcessorFactory() |
FileServerObject |
getFileServer() |
com.streamscape.ds.persist.FileTableSettings |
getFileTableSettings(java.lang.String fileName) |
java.lang.String |
getHeader() |
java.lang.Object |
getNextRowForStream()
Returns next row to be streamed.
|
FileTableCollection |
getParent() |
java.util.List |
getRecordTypes() |
com.streamscape.ds.lib.OrderedHashSet |
getReferences() |
java.lang.String |
getSQL() |
boolean |
getTypesOnly() |
void |
initForStreaming()
Initializes provider for streaming.
|
void |
initParserWithRow(java.lang.Object parser,
java.lang.Object row) |
com.streamscape.ds.persist.row.Row |
insertData(com.streamscape.ds.session.Session session,
com.streamscape.ds.persist.PersistentStore store,
java.lang.Object[] data)
Adds commitPersistence() call
|
boolean |
isConnected() |
boolean |
isDataReadOnly() |
boolean |
isForAppend() |
boolean |
isSuspendOnFail() |
static void |
log(Trace.Level level,
com.streamscape.ds.AbstractDataspace dataspace,
NameManager.ObjectName objectName,
java.lang.String message) |
void |
logDebug(java.lang.String message) |
void |
logError(java.lang.String message) |
void |
logInfo(java.lang.String message) |
java.lang.Object[] |
materializeRowForStream(com.streamscape.ds.session.Session session,
java.lang.Object rowParser,
java.lang.Object row)
Materializes (returns actual data of the provided row).
|
void |
removeAppendableReaderListener() |
void |
resume(com.streamscape.ds.session.Session session) |
void |
setAppendableReaderListener(AppendableFileTableReader.AppendableFileTableReaderReplicationListener appendableFileTableReaderReplicationListener) |
void |
setCheckInterval(com.streamscape.ds.session.Session session,
java.lang.Long checkInterval) |
void |
setDataReadOnly(boolean value) |
void |
setDataSource(com.streamscape.ds.session.Session session,
java.lang.String dataSource)
High level command to assign a data source to the table definition.
|
void |
setFileDescriptorName(java.lang.String fileDescriptorName) |
void |
setFileServer(FileServerObject fileServer) |
void |
setForAppend(boolean forAppend) |
void |
setHeader(java.lang.String header) |
void |
setRecordTypes(java.util.List recordTypes) |
void |
setSuspendOnFail(boolean suspendOnFail) |
void |
setTypesOnly(boolean typesOnly) |
void |
startAppendableFileTableReader(com.streamscape.ds.session.Session session) |
void |
truncate(com.streamscape.ds.session.Session session,
boolean force) |
addColumn, addColumnNoCheck, addConstraint, addFullTextIndex, addTrigger, addTriggerSQL, clearAllData, clearAllData, collectFKReadLocks, collectFKWriteLocks, compareRows, compile, convertColumnListToRowMetaData, createIndexForColumns, createPrimaryKey, createPrimaryKey, createPrimaryKeyConstraint, dropReplicationSource, enforceRowConstraints, enforceTypeLimits, findColumn, fireTriggers, fireTriggers, fireTriggers, fireWindowTriggers, getBaseTable, getBaseTableColumnMap, getBestRowIdentifiers, getCatalogName, getChangeTimestamp, getClusteredIndex, getColumn, getColumn, getColumnCheckList, getColumnIndex, getColumnIndexes, getColumnIndexes, getColumnListSQL, getColumnListWithTypeSQL, getColumnMap, getColumnNameList, getColumnNames, getColumnNameSet, getColumnNameSet, getColumnNameSet, getCommentsSQL, getComponents, getConstraint, getConstraints, getDeleteRowFromLog, getDependentExternalConstraints, getFKConstraints, getFullIndexForColumns, getFullTextIndexes, getId, getIdentityColumnIndex, getIndex, getIndexForColumn, getIndexForColumns, getIndexForColumns, getIndexRootsArray, getIndexRootsSQL, getNewRowData, getNextIdentity, getNotNullConstraintForColumn, getObjectName, getObjectType, getOwner, getPrimaryConstraint, getQueryExpression, getReferencesForDependents, getReplicationSource, getRowMetaData, getRowStore, getSchemaName, getSQL, getSQL, getSQLForClustered, getSQLForCollection, getSQLForReadOnly, getSQLForTextSource, getSubQuery, getTrigger, getTriggerIndex, getTriggers, getUniqueConstraintForColumns, getUniqueConstraintForIndex, getUniqueNotNullColumnGroup, getUniqueOrPKConstraintForIndex, getUniquePKConstraintNames, getUpdatableColumns, hasForeignKey, hasGeneratedColumn, hasIdentityColumn, indexTypeForColumn, insertFromScript, insertIntoTable, insertNoCheckFromLog, insertResult, insertSingleRow, insertSingleRowForUpdate, insertSys, insertSys, isBestRowIdentifiersStrict, isCached, isFileBased, isInsertable, isMemory, isReadOnly, isReplicated, isSchemaBaseTable, isSnapshot, isTemp, isText, isTriggerDeletable, isTriggerInsertable, isTriggerUpdatable, isUpdatable, isView, isWritable, releaseTriggers, removeConstraint, removeConstraint, removeFullTextIndex, removeTrigger, renameColumn, rowIteratorClustered, rowIteratorClustered, setColumnStructures, setColumnTypeVars, setGeneratedColumns, setIdentityColumn, setIndexRoots, setIndexRoots, setName, setReplicationSource, systemSetIdentityColumn, updateTriggersOrderAndRemoveNulls, verifyConstraintsIntegrity
createAndAddIndexStructure, createIndex, createIndexStructure, createPrimaryIndex, dropIndex, duplicate, getColumnCount, getColumnTypes, getDataColumnCount, getDataScopeString, getEmptyRowData, getFullIndex, getIndex, getIndexCount, getIndexList, getNewColumnCheckList, getPersistenceId, getPrimaryIndex, getPrimaryKey, getPrimaryKeyTypes, getSampleCount, getSampleCountAsString, getTableType, hasLobColumn, hasPrimaryKey, isDropped, isEmpty, isLogged, isTransactional, onCommitPreserve, releaseRowStore, rowIterator, rowIterator, setBestRowIdentifiers, setDropped, setHasLobColumn, setIndexes, setTransactional
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, getSQLInSchema, recompileObject
public FileTable(DataspaceStore db, NameManager.ObjectName name, int type)
db
- the owning databasename
- the table's HsqlNametype
- code (normal or temp text table)public FileTable(DataspaceStore db, NameManager.ObjectName name, int type, FileTableCollection parent)
public boolean isForAppend()
public long getCheckInterval()
public void connect(com.streamscape.ds.session.Session session)
public void connect(com.streamscape.ds.session.Session session, boolean readOnly)
public void connect(com.streamscape.ds.session.Session session, boolean readOnly, boolean isForStream)
public void connect(com.streamscape.ds.session.Session session, boolean isReadOnly, boolean isForStream, boolean isForAppend)
public void connect(com.streamscape.ds.session.Session session, boolean isReadOnly, boolean isForStream, boolean isForAppend, long checkInterval)
public void startAppendableFileTableReader(com.streamscape.ds.session.Session session)
public void compress(com.streamscape.ds.session.Session session)
public void decompress(com.streamscape.ds.session.Session session)
public void disconnect()
public void setDataSource(com.streamscape.ds.session.Session session, java.lang.String dataSource)
public void setFileServer(FileServerObject fileServer)
public FileServerObject getFileServer()
public boolean isConnected()
isConnected
in class Table
public java.lang.String getDataSource()
public void setHeader(java.lang.String header)
public java.lang.String getHeader()
public void checkDataReadOnly()
checkDataReadOnly
in class Table
public boolean isDataReadOnly()
isDataReadOnly
in class Table
public void setDataReadOnly(boolean value)
setDataReadOnly
in class Table
public java.lang.String getDataSourceDDL()
public void initForStreaming()
SourceStreamProvider
initForStreaming
in interface SourceStreamProvider
public java.lang.Object getNextRowForStream()
SourceStreamProvider
getNextRowForStream
in interface SourceStreamProvider
public java.lang.Object[] materializeRowForStream(com.streamscape.ds.session.Session session, java.lang.Object rowParser, java.lang.Object row)
SourceStreamProvider
materializeRowForStream
in interface SourceStreamProvider
public java.lang.Object createRowParser()
createRowParser
in interface SourceStreamProvider
public void initParserWithRow(java.lang.Object parser, java.lang.Object row)
initParserWithRow
in interface SourceStreamProvider
public com.streamscape.ds.persist.row.Row insertData(com.streamscape.ds.session.Session session, com.streamscape.ds.persist.PersistentStore store, java.lang.Object[] data)
insertData
in class Table
public boolean existsDataSource()
public ConnectionState getConnectionState()
public void setFileDescriptorName(java.lang.String fileDescriptorName)
public void setTypesOnly(boolean typesOnly)
public java.lang.String getFileDescriptorName()
public boolean getTypesOnly()
public void setRecordTypes(java.util.List recordTypes)
public java.util.List getRecordTypes()
public FileDescriptor getFileDescriptor()
public FileDescriptor getFileDescriptorOrig()
public static FileDescriptor getFileDescriptor(java.lang.String fileDescriptorName)
public FileDescriptorFactory getFileDescriptorProcessorFactory()
public java.lang.String getSQL()
getSQL
in interface SchemaObject
getSQL
in class Table
public void checkOperation(int type)
public AppendableFileTableReader.Statistics getAppendableStatistics()
public void fireMalformedDataTrigger(com.streamscape.ds.session.Session session, java.lang.String rowText, java.lang.Object[] data, java.lang.Exception exception)
public void setCheckInterval(com.streamscape.ds.session.Session session, java.lang.Long checkInterval)
public void setForAppend(boolean forAppend)
public void truncate(com.streamscape.ds.session.Session session, boolean force)
public FileTableCollection getParent()
public com.streamscape.ds.persist.FileTableSettings getFileTableSettings(java.lang.String fileName)
public void setSuspendOnFail(boolean suspendOnFail)
public boolean isSuspendOnFail()
public void setAppendableReaderListener(AppendableFileTableReader.AppendableFileTableReaderReplicationListener appendableFileTableReaderReplicationListener)
public AppendableFileTableReader.AppendableFileTableReaderReplicationListener getAppendableReaderListener()
public void removeAppendableReaderListener()
public void resume(com.streamscape.ds.session.Session session)
public void logInfo(java.lang.String message)
public void logError(java.lang.String message)
public void logDebug(java.lang.String message)
public static void log(Trace.Level level, com.streamscape.ds.AbstractDataspace dataspace, NameManager.ObjectName objectName, java.lang.String message)
public com.streamscape.ds.lib.OrderedHashSet getReferences()
getReferences
in interface SchemaObject
getReferences
in class Table
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.