THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Semantic of cache() method
The semantic of the cache() method is a little different depending on whether auto caching is enabled or not.
Code Block | ||
---|---|---|
| ||
TableEnvironment tEnv = ... Table t1 = ... Table t2 = t1.cache() ... tEnv.execute() // t1 is cached. Table t3 = t1.select(...) // cache will NOT be used. Table t4 = t2.select(...) // cache will be used. ... // The following two lines of code are equivalent t1.invalidateCache() // cache will be released t2.invalidateCache() // cache will be released ... t1.print() // cache will NOT be recreated t2.print() // cache will be recreated |
...