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

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

      
    
Rootfs path

      
    
Size
1627 (1.6 KB)
MD5
3cf11e241684e26d47b5278d58171cce
SHA1
420fa86dec71003c5e72dac80b42a7b009f46477
SHA256
b6b581e7dc357fb9acc33c5cfda4c5f83f495331b470deacb35904fd32656015
SHA512

      
    
SHA1_git
b1ade749620d13370580adda07c47116837ba822
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Operation1.java | 1.6 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 one argument. */ public abstract class Operation1 extends Expression { /** * The argument of the operation. */ protected Expression arg; /** * The type of the result. */ protected TypeInfo type; protected Operation1(Expression arg) { this.arg = arg; } @Override public TypeInfo getType() { return type; } @Override public void mapColumns(ColumnResolver resolver, int level, int state) { arg.mapColumns(resolver, level, state); } @Override public void setEvaluatable(TableFilter tableFilter, boolean value) { arg.setEvaluatable(tableFilter, value); } @Override public void updateAggregate(SessionLocal session, int stage) { arg.updateAggregate(session, stage); } @Override public boolean isEverything(ExpressionVisitor visitor) { return arg.isEverything(visitor); } @Override public int getCost() { return arg.getCost() + 1; } @Override public int getSubexpressionCount() { return 1; } @Override public Expression getSubexpression(int index) { if (index == 0) { return arg; } 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
5.66
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