Module litebridge.db.spi
Record Class SqlFunctionRegistry
java.lang.Object
java.lang.Record
org.litebridgedb.db.spi.expression.SqlFunctionRegistry
- Record Components:
select- Expressions dealing with selecting columns, sub-selects, literals, and references to selected columns.aggregate- Aggregate functions perform calculations on a set of values and return a single value.scalar- Scalar functions perform calculations on one or more input values and return a single value.date- Date/time functions.
public record SqlFunctionRegistry(SqlFunctionRegistry.Select select, SqlFunctionRegistry.Aggregate aggregate, SqlFunctionRegistry.Scalar scalar, SqlFunctionRegistry.Date date)
extends Record
SQL function registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAggregate functions perform calculations on a set of values and return a single value.static final recordDate functions.static final recordScalar functions perform calculations on one or more input values and return a single value.static final recordExpressions dealing with selecting columns, sub-selects, literals, and references to selected columns. -
Constructor Summary
ConstructorsConstructorDescriptionSqlFunctionRegistry(SqlFunctionRegistry.Select select, SqlFunctionRegistry.Aggregate aggregate, SqlFunctionRegistry.Scalar scalar, SqlFunctionRegistry.Date date) Creates an instance of aSqlFunctionRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregaterecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scalar()Returns the value of thescalarrecord component.select()Returns the value of theselectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlFunctionRegistry
public SqlFunctionRegistry(SqlFunctionRegistry.Select select, SqlFunctionRegistry.Aggregate aggregate, SqlFunctionRegistry.Scalar scalar, SqlFunctionRegistry.Date date) Creates an instance of aSqlFunctionRegistryrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
select
Returns the value of theselectrecord component.- Returns:
- the value of the
selectrecord component
-
aggregate
Returns the value of theaggregaterecord component.- Returns:
- the value of the
aggregaterecord component
-
scalar
Returns the value of thescalarrecord component.- Returns:
- the value of the
scalarrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-