Package net.hydromatic.morel.eval
Interface Describer
- All Known Implementing Classes:
CodeVisitor,DescriberImpl
public interface Describer
Describes a plan (tree of
Code or Applicable objects).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvided as a callback while describing a node. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddStartAction(Runnable runnable) Registers an action to be performed each time the query is started.intRegisters a (name, ordinal) combination, and returns how many occurrences of the same name with a different ordinal have been seen before.start(String name, Consumer<Describer.Detail> detail)
-
Method Details
-
start
-
register
Registers a (name, ordinal) combination, and returns how many occurrences of the same name with a different ordinal have been seen before.For example:
- register("a", 0) returns 0;
- register("b", 3) returns 0;
- register("b", 2) returns 1;
- register("b", 3) returns 0;
- register("a", 42) returns 1.
- See Also:
-
addStartAction
Registers an action to be performed each time the query is started.
-