/** * Returns whether partial windows are allowed. If false, a partial window * (for example, a window of size 1 hour which has only 45 minutes of data * in it) will appear to windowed aggregate functions to be empty. */ public boolean isAllowPartial() { // Default (and standard behavior) is to allow partial windows. return allowPartial == null || allowPartial.booleanValue(); }
public boolean isRaw() { return raw.booleanValue(); }
public SqlCreateView( SqlParserPos pos, SqlIdentifier viewName, SqlNodeList fieldList, SqlNode query, boolean replaceView) { super(pos); this.viewName = viewName; this.query = query; this.replaceView = replaceView; this.fieldList = fieldList; }
/** * Returns whether partial windows are allowed. If false, a partial window * (for example, a window of size 1 hour which has only 45 minutes of data * in it) will appear to windowed aggregate functions to be empty. */ public boolean isAllowPartial() { // Default (and standard behavior) is to allow partial windows. return allowPartial == null || allowPartial.booleanValue(); }
public SqlCreateView(SqlParserPos pos, SqlIdentifier viewName, SqlNodeList fieldList, SqlNode query, SqlLiteral replaceView) { this(pos, viewName, fieldList, query, replaceView.booleanValue()); }
public final boolean isNatural() { return natural.booleanValue(); }
public boolean isEnable() { return enable.booleanValue(); }
public boolean getByDay() { return byDay.booleanValue(); }
public boolean isRaw(){ return ((SqlLiteral) this.isRaw).booleanValue(); }
public SqlDropTable(SqlParserPos pos, SqlIdentifier tableName, SqlLiteral tableExistenceCheck) { this(pos, tableName, tableExistenceCheck.booleanValue()); }
public boolean isSingleWriter() { return singleWriter.booleanValue(); }
public SqlDropView(SqlParserPos pos, SqlIdentifier viewName, SqlLiteral viewExistenceCheck) { this(pos, viewName, viewExistenceCheck.booleanValue()); }
public final boolean isNatural() { return natural.booleanValue(); }
public SqlDropView(SqlParserPos pos, SqlIdentifier viewName, SqlLiteral viewExistenceCheck) { this(pos, viewName, viewExistenceCheck.booleanValue()); }
public boolean isTemporary() { return isTemporary.booleanValue(); }
public boolean isRows() { return isRows.booleanValue(); }
@Override public RexNode visit(SqlLiteral literal) { if (literal instanceof SqlNumericLiteral) { return rexBuilder.makeExactLiteral(BigDecimal.valueOf(literal.intValue(true))); } else { return rexBuilder.makeLiteral(literal.booleanValue()); } } };
@Override public RexNode visit(SqlLiteral literal) { if (literal instanceof SqlNumericLiteral) { return rexBuilder.makeExactLiteral(BigDecimal.valueOf(literal.intValue(true))); } else { return rexBuilder.makeLiteral(literal.booleanValue()); } } };
@Override public RexNode visit(SqlLiteral literal) { if (literal instanceof SqlNumericLiteral) { return rexBuilder.makeExactLiteral(BigDecimal.valueOf(literal.intValue(true))); } else { return rexBuilder.makeLiteral(literal.booleanValue()); } } };
@Override public RexNode visit(SqlLiteral literal) { if (literal instanceof SqlNumericLiteral) { return rexBuilder.makeExactLiteral(BigDecimal.valueOf(literal.intValue(true))); } else { return rexBuilder.makeLiteral(literal.booleanValue()); } } };