public class SingleLongInputCachingExpressionColumnValueSelector extends BaseExpressionColumnValueSelector
ExpressionColumnValueSelector, but caches the most recently computed value and re-uses it in the case
of runs in the underlying column. This is especially useful for the __time column, where we expect runs.| Modifier and Type | Class and Description |
|---|---|
class |
SingleLongInputCachingExpressionColumnValueSelector.LruEvalCache |
EMPTY_ARRAY| Constructor and Description |
|---|
SingleLongInputCachingExpressionColumnValueSelector(ColumnValueSelector selector,
Expr expression,
boolean useLruCache,
RowIdSupplier rowIdSupplier) |
| Modifier and Type | Method and Description |
|---|---|
protected ExprEval<?> |
eval()
Implementations override this.
|
void |
inspectRuntimeShape(RuntimeShapeInspector inspector)
Implementations of this method should call
inspector.visit() with all fields of this class, which meet two
conditions:
1. |
classOfObject, getDouble, getFloat, getLong, getObject, isNullpublic SingleLongInputCachingExpressionColumnValueSelector(ColumnValueSelector selector, Expr expression, boolean useLruCache, @Nullable RowIdSupplier rowIdSupplier)
public void inspectRuntimeShape(RuntimeShapeInspector inspector)
HotLoopCalleeinspector.visit() with all fields of this class, which meet two
conditions:
1. They are used in methods of this class, annotated with CalledFromHotLoop
2. They are either:
a. Nullable objects
b. Instances of HotLoopCallee
c. Objects, which don't always have a specific class in runtime. For example, a field of type Set could be HashSet or TreeSet in runtime, depending on how
this instance (the instance on which inspectRuntimeShape() is called) is configured.
d. ByteBuffer or similar objects, where byte order matters
e. boolean flags, affecting branch taking
f. Arrays of objects, meeting any of conditions a-e.inspectRuntimeShape in interface HotLoopCalleeinspectRuntimeShape in class BaseExpressionColumnValueSelector@Nonnull protected ExprEval<?> eval()
BaseExpressionColumnValueSelectoreval in class BaseExpressionColumnValueSelectorCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.