h2-1.4.197.jar
登录
|
com.h2database:h2:1.4.197
META-INF
org
h2
jdbc
message
expression
ConditionInParameter.java
AggregateDataHistogram.java
Alias.java
FunctionCall.java
Rownum.java
Subquery.java
FunctionInfo.java
ConditionInSelect.java
Expression.java
ExpressionColumn.java
Comparison.java
JavaAggregate.java
ConditionAndOr.java
AggregateDataCount.java
ValueExpression.java
JavaFunction.java
ExpressionVisitor.java
Parameter.java
AggregateDataCountAll.java
AggregateDataMedian.java
CompareLike.java
ConditionIn.java
ExpressionList.java
Operation.java
ParameterInterface.java
ConditionInConstantSet.java
Function.java
Wildcard.java
AggregateDataSelectivity.java
Variable.java
AggregateDataDefault.java
ParameterRemote.java
Aggregate.java
AggregateData.java
TableFunction.java
ConditionNot.java
ConditionExists.java
AggregateDataArrayCollecting.java
SequenceValue.java
Condition.java
engine
upgrade
Driver.java
security
fulltext
api
compress
index
table
constraint
store
util
bnf
command
tools
server
mode
jdbcx
result
JdbcDriverBackwardsCompat.java
jmx
value
schema
mvstore
AggregateData.java
清空
类结构
/* * Copyright 2004-2018 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.expression; import org.h2.engine.
Database
; import org.h2.expression.
Aggregate
.
AggregateType
; import org.h2.value.
Value
; /** * Abstract class for the computation of an aggregate. */ abstract class
AggregateData
{ /** * Create an AggregateData object of the correct sub-type. * * @param aggregateType the type of the aggregate operation * @return the aggregate data object of the specified type */ static
AggregateData
create
(
AggregateType
aggregateType
) { if (
aggregateType
==
AggregateType
.
SELECTIVITY
) { return new
AggregateDataSelectivity
(); } else if (
aggregateType
==
AggregateType
.
GROUP_CONCAT
) { return new
AggregateDataArrayCollecting
(); } else if (
aggregateType
==
AggregateType
.
ARRAY_AGG
) { return new
AggregateDataArrayCollecting
(); } else if (
aggregateType
==
AggregateType
.
COUNT_ALL
) { return new
AggregateDataCountAll
(); } else if (
aggregateType
==
AggregateType
.
COUNT
) { return new
AggregateDataCount
(); } else if (
aggregateType
==
AggregateType
.
HISTOGRAM
) { return new
AggregateDataHistogram
(); } else if (
aggregateType
==
AggregateType
.
MEDIAN
) { return new
AggregateDataMedian
(); } else { return new
AggregateDataDefault
(
aggregateType
); } } /** * Add a value to this aggregate. * * @param database the database * @param dataType the datatype of the computed result * @param distinct if the calculation should be distinct * @param v the value */ abstract void
add
(
Database
database
, int
dataType
, boolean
distinct
,
Value
v
); /** * Get the aggregate result. * * @param database the database * @param dataType the datatype of the computed result * @param distinct if distinct is used * @return the value */ abstract
Value
getValue
(
Database
database
, int
dataType
, boolean
distinct
); }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口