Package org.apache.calcite.chinook
Class EnvironmentFairy
java.lang.Object
org.apache.calcite.chinook.EnvironmentFairy
Fairy simulates environment around Calcite.
An example property is the user on whose behalf Calcite is running the current query. Other properties can change from one query to another. Properties are held in thread-locals, so it is safe to set a property then read it from the same thread.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Describes who is emulated to being logged in. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentFairy.User
getUser()
static void
login
(EnvironmentFairy.User user)
-
Method Details
-
getUser
-
login
-