@Override public boolean hasState(String stateId) { return this.tableStore.getTempTable(stateId) != null; }
@Override public TempTable getTempTable(String matTableName) { return this.tableStore.getTempTable(matTableName); }
@Override public boolean hasState(String stateId) { return this.tableStore.getTempTable(stateId) != null; }
@Override public boolean hasState(String stateId) { return this.tableStore.getTempTable(stateId) != null; }
@Override public TempTable getTempTable(String matTableName) { return this.tableStore.getTempTable(matTableName); }
@Override public TempTable getTempTable(String matTableName) { return this.tableStore.getTempTable(matTableName); }
private void sendTable(String stateId, ObjectOutputStream oos, boolean writeName) throws IOException, TeiidComponentException { TempTable tempTable = this.tableStore.getTempTable(stateId); if (tempTable == null) { return; } MatTableInfo info = getMatTableInfo(stateId); if (!info.isValid()) { return; } if (writeName) { oos.writeObject(stateId); } oos.writeLong(info.updateTime); oos.writeObject(info.loadingAddress); oos.writeObject(info.state); tempTable.writeTo(oos); }
private void sendTable(String stateId, ObjectOutputStream oos, boolean writeName) throws IOException, TeiidComponentException { TempTable tempTable = this.tableStore.getTempTable(stateId); if (tempTable == null) { return; } MatTableInfo info = getMatTableInfo(stateId); if (!info.isValid()) { return; } if (writeName) { oos.writeObject(stateId); } oos.writeLong(info.updateTime); oos.writeObject(info.loadingAddress); oos.writeObject(info.state); tempTable.writeTo(oos); }
private void sendTable(String stateId, ObjectOutputStream oos, boolean writeName) throws IOException, TeiidComponentException { TempTable tempTable = this.tableStore.getTempTable(stateId); if (tempTable == null) { return; } MatTableInfo info = getMatTableInfo(stateId); if (!info.isValid()) { return; } if (writeName) { oos.writeObject(stateId); } oos.writeLong(info.updateTime); oos.writeObject(info.loadingAddress); oos.writeObject(info.state); tempTable.writeTo(oos); }
@Override public List<?> updateMatViewRow(String matTableName, List<?> tuple, boolean delete) throws TeiidComponentException { TempTable tempTable = tableStore.getTempTable(matTableName); if (tempTable != null) { TempMetadataID id = tableStore.getMetadataStore().getTempGroupID(matTableName); synchronized (id) { boolean clone = tempTable.getActive().get() != 0; if (clone) { tempTable = tempTable.clone(); } List<?> result = tempTable.updateTuple(tuple, delete); if (clone) { swapTempTable(matTableName, tempTable); } return result; } } return null; }
@Override public List<?> updateMatViewRow(String matTableName, List<?> tuple, boolean delete) throws TeiidComponentException { TempTable tempTable = tableStore.getTempTable(matTableName); if (tempTable != null) { TempMetadataID id = tableStore.getMetadataStore().getTempGroupID(matTableName); synchronized (id) { boolean clone = tempTable.getActive().get() != 0; if (clone) { tempTable = tempTable.clone(); } List<?> result = tempTable.updateTuple(tuple, delete); if (clone) { swapTempTable(matTableName, tempTable); } return result; } } return null; }
@Override public List<?> updateMatViewRow(String matTableName, List<?> tuple, boolean delete) throws TeiidComponentException { TempTable tempTable = tableStore.getTempTable(matTableName); if (tempTable != null) { TempMetadataID id = tableStore.getMetadataStore().getTempGroupID(matTableName); synchronized (id) { boolean clone = tempTable.getActive().get() != 0; if (clone) { tempTable = tempTable.clone(); } List<?> result = tempTable.updateTuple(tuple, delete); if (clone) { swapTempTable(matTableName, tempTable); } return result; } } return null; }
return this.parentTempTableStore.getTempTable(tempTableID, command, buffer, delegate, forUpdate, context);
return this.parentTempTableStore.getTempTable(tempTableID, command, buffer, delegate, forUpdate, context);
return this.parentTempTableStore.getTempTable(tempTableID, command, buffer, delegate, forUpdate, context);
if (tts.getTempTable(tempTableID) == null) { tts.addTempTable(tempTableID, create, buffer, true, context); return tts.getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); TempTable tempTable = getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); if (tempTable != null) { if (processors != null) {
if (tts.getTempTable(tempTableID) == null) { tts.addTempTable(tempTableID, create, buffer, true, context); return getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); TempTable tempTable = getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); if (tempTable != null) { if (processors != null) {
if (tts.getTempTable(tempTableID) == null) { tts.addTempTable(tempTableID, create, buffer, true, context); return tts.getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); TempTable tempTable = getTempTable(tempTableID, command, buffer, delegate, forUpdate, context); if (tempTable != null) { if (processors != null) {
TempTable tt = contextStore.getTempTable(att.getTempTable()); Assertion.isNotNull(tt, "Table doesn't exist"); //$NON-NLS-1$ tt.setUpdatable(false);