silentbalanceyh/vertx-zero

View on GitHub
vertx-gaia/vertx-ams/src/main/jib/io/horizon/uca/qr/syntax/QNode.java

Summary

Maintainability
A
0 mins
Test Coverage
package io.horizon.uca.qr.syntax;

/*
 * The top level query node
 */
public interface QNode {

    /*
     * Operator
     * 1. If current is leaf, exclude `AND` and `OR`
     * 2. If current is branch, only contains `AND` or `OR`
     */
    QOp op();

    /*
     * Current tree level data here
     */
    QNode level(Integer level);

    /*
     * Whether current node is leaf node
     */
    boolean isLeaf();
}