public class EnvironmentFairy extends Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
EnvironmentFairy.User
Who is emulated to being logged in?
|
| Modifier and Type | Field and Description |
|---|---|
private static ThreadLocal<EnvironmentFairy.User> |
USER |
| Modifier | Constructor and Description |
|---|---|
private |
EnvironmentFairy() |
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentFairy.User |
getUser() |
static void |
login(EnvironmentFairy.User user) |
private static final ThreadLocal<EnvironmentFairy.User> USER
public static EnvironmentFairy.User getUser()
public static void login(EnvironmentFairy.User user)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.