Class AggregateFcts.CountRowsFunction
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.AbstractFunction
-
- org.apache.cassandra.cql3.functions.NativeFunction
-
- org.apache.cassandra.cql3.functions.NativeAggregateFunction
-
- org.apache.cassandra.cql3.functions.AggregateFcts.CountRowsFunction
-
- All Implemented Interfaces:
AssignmentTestable
,AggregateFunction
,Function
- Enclosing class:
- AggregateFcts
public static class AggregateFcts.CountRowsFunction extends NativeAggregateFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.functions.AggregateFunction
AggregateFunction.Aggregate
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
argTypes, name, returnType
-
Fields inherited from interface org.apache.cassandra.cql3.functions.Function
UNRESOLVED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
columnName(java.util.List<java.lang.String> columnNames)
Returns the name of the function to use within a ResultSet.AggregateFunction.Aggregate
newAggregate()
Creates a newAggregate
instance.NativeFunction
withLegacyName()
Returns a copy of this function using its old pre-5.0 name before the adoption of snake-cased function names.-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeAggregateFunction
isAggregate
-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative, isPure, newArguments
-
Methods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, elementKeyspace, elementName, equals, getCompatibleTypeIfKnown, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString, typesMatch
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
getCompatibleTypeIfKnown, testAssignment
-
Methods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, compare, isNative, isPure, name, newArguments, referencesUserType, returnType
-
-
-
-
Method Detail
-
newAggregate
public AggregateFunction.Aggregate newAggregate()
Description copied from interface:AggregateFunction
Creates a newAggregate
instance.- Returns:
- a new
Aggregate
instance.
-
columnName
public java.lang.String columnName(java.util.List<java.lang.String> columnNames)
Description copied from interface:Function
Returns the name of the function to use within a ResultSet.- Specified by:
columnName
in interfaceFunction
- Overrides:
columnName
in classAbstractFunction
- Parameters:
columnNames
- the names of the columns used to call the function- Returns:
- the name of the function to use within a ResultSet
-
withLegacyName
public NativeFunction withLegacyName()
Description copied from class:NativeFunction
Returns a copy of this function using its old pre-5.0 name before the adoption of snake-cased function names. Those naming conventions were adopted in 5.0, but we still need to support the old names for compatibility. See CASSANDRA-18037 for further details.- Overrides:
withLegacyName
in classNativeFunction
- Returns:
- a copy of this function using its old pre-5.0 deprecated name, or
null
if the pre-5.0 function name already satisfied the naming conventions.
-
-