Skip to content

Commit

Permalink
Move method above helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Jun 14, 2021
1 parent f214021 commit 0a239c9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ public Optional<TableScanRedirectApplicationResult> getTableScanRedirection(Conn
return delegate.getTableScanRedirection(session, tableHandle);
}

public void onDataChanged(JdbcTableHandle handle)
{
invalidateCache(statisticsCache, key -> key.tableHandle.equals(handle));
}

private JdbcIdentityCacheKey getIdentityKey(ConnectorSession session)
{
return identityMapping.getRemoteUserCacheKey(JdbcIdentity.from(session));
Expand Down Expand Up @@ -497,11 +502,6 @@ private static <T, V> void invalidateCache(Cache<T, V> cache, Predicate<T> filte
cache.invalidateAll(cacheKeys);
}

public void onDataChanged(JdbcTableHandle handle)
{
invalidateCache(statisticsCache, key -> key.tableHandle.equals(handle));
}

private static final class ColumnsCacheKey
{
private final JdbcIdentityCacheKey identity;
Expand Down

0 comments on commit 0a239c9

Please sign in to comment.