
com.github.leeonky.dal.ast.node.table.TableDefaultIndexHeadRow Maven / Gradle / Ivy
package com.github.leeonky.dal.ast.node.table;
import com.github.leeonky.dal.ast.node.DALExpression;
import com.github.leeonky.dal.ast.node.SortGroupNode;
import com.github.leeonky.dal.ast.node.SymbolNode;
import com.github.leeonky.dal.ast.opt.Factory;
import com.github.leeonky.dal.compiler.Notations;
import static com.github.leeonky.dal.ast.node.InputNode.INPUT_NODE;
import static java.util.Collections.emptyList;
import static java.util.Optional.empty;
public class TableDefaultIndexHeadRow extends TableHeadRow {
public TableDefaultIndexHeadRow() {
super(emptyList());
}
@Override
public HeaderNode getHeader(int index) {
return new HeaderNode(SortGroupNode.NO_SEQUENCE, new DALExpression(INPUT_NODE, Factory.executable(Notations.EMPTY),
new SymbolNode(index, SymbolNode.Type.NUMBER)), empty());
}
@Override
public void checkDataCellSize(TableRowNode rowNode) {
}
@Override
public String inspect() {
return "^";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy