public class GlobalTableStoreImpl extends Object implements GlobalTableStore, ReplicatedObject<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalTableStoreImpl.MatState |
class |
GlobalTableStoreImpl.MatTableInfo |
| Constructor and Description |
|---|
GlobalTableStoreImpl(BufferManager bufferManager,
VDBMetaData vdbMetaData,
QueryMetadataInterface metadata) |
| Modifier and Type | Method and Description |
|---|---|
TempTable |
createMatTable(String tableName,
GroupSymbol group) |
void |
droppedMembers(Collection<Serializable> addresses)
Called when members are dropped
|
void |
failedLoad(String matTableName) |
Serializable |
getAddress() |
TempMetadataID |
getCodeTableMetadataId(String codeTableName,
String returnElementName,
String keyElementName,
String matTableName) |
static Create |
getCreateCommand(GroupSymbol group,
boolean matview,
QueryMetadataInterface metadata) |
TempMetadataID |
getGlobalTempTableMetadataId(Object viewId) |
TempMetadataID |
getGlobalTempTableMetadataId(String matTableName) |
GlobalTableStoreImpl.MatTableInfo |
getMatTableInfo(String tableName) |
void |
getState(OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
void |
getState(String stateId,
OutputStream ostream)
Allows an application to write a partial state through a provided OutputStream.
|
TempTable |
getTempTable(String matTableName) |
TempTableStore |
getTempTableStore() |
boolean |
hasState(String stateId)
Return true if the object has the given state
|
void |
loaded(String matTableName,
TempTable table) |
boolean |
needsLoading(String matTableName,
Serializable loadingAddress,
boolean firstPass,
boolean refresh,
boolean invalidate) |
static List<ElementSymbol> |
resolveIndex(QueryMetadataInterface metadata,
List<ElementSymbol> allColumns,
Object pk)
Return a list of ElementSymbols for the given index/key object
|
void |
setAddress(Serializable address)
Allows the replicator to set the local address from the channel
|
void |
setState(InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
setState(String stateId,
InputStream istream)
Allows an application to read a partial state through a provided InputStream.
|
List<?> |
updateMatViewRow(String matTableName,
List<?> tuple,
boolean delete) |
public GlobalTableStoreImpl(BufferManager bufferManager, VDBMetaData vdbMetaData, QueryMetadataInterface metadata)
public GlobalTableStoreImpl.MatTableInfo getMatTableInfo(String tableName)
getMatTableInfo in interface GlobalTableStorepublic void failedLoad(String matTableName)
failedLoad in interface GlobalTableStorepublic boolean needsLoading(String matTableName, Serializable loadingAddress, boolean firstPass, boolean refresh, boolean invalidate)
needsLoading in interface GlobalTableStorepublic TempMetadataID getGlobalTempTableMetadataId(Object viewId) throws TeiidProcessingException, TeiidComponentException
getGlobalTempTableMetadataId in interface GlobalTableStoreTeiidProcessingExceptionTeiidComponentExceptionpublic TempMetadataID getCodeTableMetadataId(String codeTableName, String returnElementName, String keyElementName, String matTableName) throws TeiidComponentException, QueryMetadataException
getCodeTableMetadataId in interface GlobalTableStoreTeiidComponentExceptionQueryMetadataExceptionpublic void loaded(String matTableName, TempTable table)
loaded in interface GlobalTableStorepublic List<?> updateMatViewRow(String matTableName, List<?> tuple, boolean delete) throws TeiidComponentException
updateMatViewRow in interface GlobalTableStoreTeiidComponentExceptionpublic TempTableStore getTempTableStore()
public TempTable createMatTable(String tableName, GroupSymbol group) throws TeiidComponentException, QueryMetadataException, TeiidProcessingException
createMatTable in interface GlobalTableStoreTeiidComponentExceptionQueryMetadataExceptionTeiidProcessingExceptionpublic static Create getCreateCommand(GroupSymbol group, boolean matview, QueryMetadataInterface metadata) throws QueryMetadataException, TeiidComponentException
public static List<ElementSymbol> resolveIndex(QueryMetadataInterface metadata, List<ElementSymbol> allColumns, Object pk) throws TeiidComponentException, QueryMetadataException
public void setAddress(Serializable address)
ReplicatedObjectsetAddress in interface ReplicatedObject<String>public Serializable getAddress()
getAddress in interface GlobalTableStorepublic void getState(OutputStream ostream)
ReplicatedObjectgetState in interface ReplicatedObject<String>ostream - the OutputStreampublic void setState(InputStream istream)
ReplicatedObjectsetState in interface ReplicatedObject<String>istream - the InputStreampublic void getState(String stateId, OutputStream ostream)
ReplicatedObjectgetState in interface ReplicatedObject<String>stateId - id of the partial state requestedostream - the OutputStreampublic void setState(String stateId, InputStream istream)
ReplicatedObjectsetState in interface ReplicatedObject<String>stateId - id of the partial state requestedistream - the InputStreampublic void droppedMembers(Collection<Serializable> addresses)
ReplicatedObjectdroppedMembers in interface ReplicatedObject<String>public boolean hasState(String stateId)
ReplicatedObjecthasState in interface ReplicatedObject<String>public TempMetadataID getGlobalTempTableMetadataId(String matTableName)
getGlobalTempTableMetadataId in interface GlobalTableStorepublic TempTable getTempTable(String matTableName)
getTempTable in interface GlobalTableStoreCopyright © 2018 JBoss by Red Hat. All rights reserved.