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 GlobalTableStore
public void failedLoad(String matTableName)
failedLoad
in interface GlobalTableStore
public boolean needsLoading(String matTableName, Serializable loadingAddress, boolean firstPass, boolean refresh, boolean invalidate)
needsLoading
in interface GlobalTableStore
public TempMetadataID getGlobalTempTableMetadataId(Object viewId) throws TeiidProcessingException, TeiidComponentException
getGlobalTempTableMetadataId
in interface GlobalTableStore
TeiidProcessingException
TeiidComponentException
public TempMetadataID getCodeTableMetadataId(String codeTableName, String returnElementName, String keyElementName, String matTableName) throws TeiidComponentException, QueryMetadataException
getCodeTableMetadataId
in interface GlobalTableStore
TeiidComponentException
QueryMetadataException
public void loaded(String matTableName, TempTable table)
loaded
in interface GlobalTableStore
public List<?> updateMatViewRow(String matTableName, List<?> tuple, boolean delete) throws TeiidComponentException
updateMatViewRow
in interface GlobalTableStore
TeiidComponentException
public TempTableStore getTempTableStore()
public TempTable createMatTable(String tableName, GroupSymbol group) throws TeiidComponentException, QueryMetadataException, TeiidProcessingException
createMatTable
in interface GlobalTableStore
TeiidComponentException
QueryMetadataException
TeiidProcessingException
public 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)
ReplicatedObject
setAddress
in interface ReplicatedObject<String>
public Serializable getAddress()
getAddress
in interface GlobalTableStore
public void getState(OutputStream ostream)
ReplicatedObject
getState
in interface ReplicatedObject<String>
ostream
- the OutputStreampublic void setState(InputStream istream)
ReplicatedObject
setState
in interface ReplicatedObject<String>
istream
- the InputStreampublic void getState(String stateId, OutputStream ostream)
ReplicatedObject
getState
in interface ReplicatedObject<String>
stateId
- id of the partial state requestedostream
- the OutputStreampublic void setState(String stateId, InputStream istream)
ReplicatedObject
setState
in interface ReplicatedObject<String>
stateId
- id of the partial state requestedistream
- the InputStreampublic void droppedMembers(Collection<Serializable> addresses)
ReplicatedObject
droppedMembers
in interface ReplicatedObject<String>
public boolean hasState(String stateId)
ReplicatedObject
hasState
in interface ReplicatedObject<String>
public TempMetadataID getGlobalTempTableMetadataId(String matTableName)
getGlobalTempTableMetadataId
in interface GlobalTableStore
public TempTable getTempTable(String matTableName)
getTempTable
in interface GlobalTableStore
Copyright © 2018 JBoss by Red Hat. All rights reserved.