Module litebridge.db.spi
Record Class SqlFunctionRegistry.Scalar
java.lang.Object
java.lang.Record
org.litebridgedb.db.spi.expression.SqlFunctionRegistry.Scalar
- Record Components:
upper- UPPER(): Convert a string to uppercase.lower- LOWER(): Convert a string to lowercase.substring- SUBSTRING(): Extract a substring from a string.abs- ABS(): Absolute value of a number.
- Enclosing class:
SqlFunctionRegistry
public static record SqlFunctionRegistry.Scalar(DelegateExpressionFactory upper, DelegateExpressionFactory lower, DelegateExpressionFactory substring, DelegateExpressionFactory abs)
extends Record
Scalar functions perform calculations on one or more input values and return a single value.
-
Constructor Summary
ConstructorsConstructorDescriptionScalar(DelegateExpressionFactory upper, DelegateExpressionFactory lower, DelegateExpressionFactory substring, DelegateExpressionFactory abs) Creates an instance of aScalarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionabs()Returns the value of theabsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lower()Returns the value of thelowerrecord component.Returns the value of thesubstringrecord component.final StringtoString()Returns a string representation of this record class.upper()Returns the value of theupperrecord component.
-
Constructor Details
-
Scalar
public Scalar(DelegateExpressionFactory upper, DelegateExpressionFactory lower, DelegateExpressionFactory substring, DelegateExpressionFactory abs) Creates an instance of aScalarrecord 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). -
upper
Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-
lower
Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
substring
Returns the value of thesubstringrecord component.- Returns:
- the value of the
substringrecord component
-
abs
Returns the value of theabsrecord component.- Returns:
- the value of the
absrecord component
-