ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/expression/Operation2.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/expression/Operation2.java
Status
scanned
Type
file
Name
Operation2.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
2091 (2.0 KB)
MD5
06f2bc47e71bb157795c7220f4fd91df
SHA1
8caf6680c4bc4b2cc8ad104d0bd68b4d2ff22cab
SHA256
6731a5b62e4b1396930c5ec4ae4a5832f0db82f2dc1d3035642b11679c3b16f3
SHA512

      
    
SHA1_git
3027a8265ffd696890adaacb9d0b8e568e0b49f0
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Operation2.java | 2.0 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.expression; import org.h2.engine.SessionLocal; import org.h2.table.ColumnResolver; import org.h2.table.TableFilter; import org.h2.value.TypeInfo; /** * Operation with two arguments. */ public abstract class Operation2 extends Expression { /** * The left part of the operation (the first argument). */ protected Expression left; /** * The right part of the operation (the second argument). */ protected Expression right; /** * The type of the result. */ protected TypeInfo type; protected Operation2(Expression left, Expression right) { this.left = left; this.right = right; } @Override public TypeInfo getType() { return type; } @Override public void mapColumns(ColumnResolver resolver, int level, int state) { left.mapColumns(resolver, level, state); right.mapColumns(resolver, level, state); } @Override public void setEvaluatable(TableFilter tableFilter, boolean value) { left.setEvaluatable(tableFilter, value); right.setEvaluatable(tableFilter, value); } @Override public void updateAggregate(SessionLocal session, int stage) { left.updateAggregate(session, stage); right.updateAggregate(session, stage); } @Override public boolean isEverything(ExpressionVisitor visitor) { return left.isEverything(visitor) && right.isEverything(visitor); } @Override public int getCost() { return left.getCost() + right.getCost() + 1; } @Override public int getSubexpressionCount() { return 2; } @Override public Expression getSubexpression(int index) { switch (index) { case 0: return left; case 1: return right; default: throw new IndexOutOfBoundsException(); } } }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
4.41
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220