public synchronized boolean isUpToDate() { return isValid() && (ttl < 0 || System.currentTimeMillis() - updateTime - ttl <= 0); }
public synchronized boolean isUpToDate() { return isValid() && (ttl < 0 || System.currentTimeMillis() - updateTime - ttl <= 0); }
public synchronized boolean isUpToDate() { return isValid() && (ttl < 0 || System.currentTimeMillis() - updateTime - ttl <= 0); }
final String matTableName = RelationalPlanner.MAT_PREFIX+matViewName.toUpperCase(); MatTableInfo info = globalStore.getMatTableInfo(matTableName); if (!info.isValid()) { return CollectionTupleSource.createUpdateCountTupleSource(-1);
final String matTableName = RelationalPlanner.MAT_PREFIX+matViewName.toUpperCase(); MatTableInfo info = globalStore.getMatTableInfo(matTableName); if (!info.isValid()) { return CollectionTupleSource.createUpdateCountTupleSource(-1);
final String matTableName = RelationalPlanner.MAT_PREFIX+matViewName.toUpperCase(); MatTableInfo info = globalStore.getMatTableInfo(matTableName); if (!info.isValid()) { return CollectionTupleSource.createUpdateCountTupleSource(-1);
if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (load) { load = globalStore.needsLoading(tableName, globalStore.getAddress(), false, false, info.isValid() && invalidate); if (!info.isValid() || executor == null) {
if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (load) { load = globalStore.needsLoading(tableName, globalStore.getAddress(), false, false, info.isValid() && invalidate); if (!info.isValid() || executor == null) {
if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (load) { load = globalStore.needsLoading(tableName, globalStore.getAddress(), false, false, info.isValid() && invalidate); if (!info.isValid() || executor == null) {
valid = info.isValid(); state = info.getState().name(); updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime());
TempMetadataID id = globalStore.getGlobalTempTableMetadataId(matTableName); MatTableInfo info = globalStore.getMatTableInfo(matTableName); valid = info.isValid(); state = info.getState().name(); updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime());
TempMetadataID id = globalStore.getGlobalTempTableMetadataId(matTableName); MatTableInfo info = globalStore.getMatTableInfo(matTableName); valid = info.isValid(); state = info.getState().name(); updated = info.getUpdateTime()==-1?null:new Timestamp(info.getUpdateTime());
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); }