io.deephaven.engine.context.PoisonedQueryScope Maven / Gradle / Ivy
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.engine.context;
import io.deephaven.engine.liveness.LivenessReferent;
import io.deephaven.util.ExecutionContextRegistrationException;
import org.jetbrains.annotations.NotNull;
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Stream;
public class PoisonedQueryScope implements QueryScope {
public static final PoisonedQueryScope INSTANCE = new PoisonedQueryScope();
private PoisonedQueryScope() {}
private T fail() {
throw ExecutionContextRegistrationException.onFailedComponentAccess("QueryScope");
}
@Override
public Set getParamNames() {
return fail();
}
@Override
public boolean hasParamName(String name) {
return fail();
}
@Override
public QueryScopeParam createParam(String name) throws MissingVariableException {
return fail();
}
@Override
public T readParamValue(String name) throws MissingVariableException {
return fail();
}
@Override
public T readParamValue(String name, T defaultValue) {
return fail();
}
@Override
public void putParam(String name, T value) {
fail();
}
@Override
public Map toMap(@NotNull ParamFilter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy