java.lang.Object
java.lang.Record
st.orm.Match.Exact<T>
- Type Parameters:
T- the root table type of the column.- Record Components:
path- the text column.minLength- the shortest word, in characters, by which the column takes the words in its form.ignoreCase-trueto lower the column as well as the word.fallback- the match of the whole input while no word reaches the length, ornullfor none; its own fallback takes no part.
- All Implemented Interfaces:
Match<T>
public static record Match.Exact<T extends Data>(Metamodel<T extends Data,String> path, int minLength, boolean ignoreCase, @Nullable Match<T extends Data> fallback)
extends Record
implements Match<T>
A word matches the whole value. With the column bare and the word lowered,
column = 'word', an ordinary
index over the column serves it, and the column compares case-insensitively on its own, through its collation or
as a stored lowered column. Ignoring case, LOWER(column) = LOWER('word'), the column is lowered too,
which an index over LOWER(column) serves, the index of a match anywhere or at a word start included.-
Nested Class Summary
Nested classes/interfaces inherited from interface st.orm.Match
Match.Anywhere<T extends Data>, Match.Exact<T extends Data>, Match.Prefix<T extends Data>, Match.WordStart<T extends Data> -
Field Summary
Fields inherited from interface st.orm.Match
DEFAULT_MIN_LENGTH, DEFAULT_VALUE_MIN_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionA match on the bare column without a fallback.A match without a fallback, its own form being narrow.Creates an instance of aExactrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreCaserecord component.intReturns the value of theminLengthrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface st.orm.Match
withFallback, withFallback, withoutFallback
-
Constructor Details
-
Exact
public Exact(Metamodel<T, String> path, int minLength, boolean ignoreCase, @Nullable Match<T> fallback) Creates an instance of aExactrecord class.- Parameters:
path- the value for thepathrecord componentminLength- the value for theminLengthrecord componentignoreCase- the value for theignoreCaserecord componentfallback- the value for thefallbackrecord component
-
Exact
A match without a fallback, its own form being narrow.- Parameters:
path- the text column.minLength- the shortest word, in characters, by which the column takes the words in its form.ignoreCase-trueto lower the column as well as the word.
-
Exact
A match on the bare column without a fallback.- Parameters:
path- the text column.minLength- the shortest word, in characters, by which the column takes the words in its form.
-
Exact
- Parameters:
path- the text column.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component. -
minLength
public int minLength()Returns the value of theminLengthrecord component. -
ignoreCase
public boolean ignoreCase()Returns the value of theignoreCaserecord component.- Returns:
- the value of the
ignoreCaserecord component
-
fallback
Returns the value of thefallbackrecord component.
-