Record Class Tsvector
java.lang.Object
java.lang.Record
io.codemine.java.postgresql.codecs.Tsvector
- Record Components:
lexemes- sorted list of (lexeme, positions) entries in canonical form
PostgreSQL
tsvector type. A sorted list of distinct lexemes, each optionally annotated
with position and weight information.
Lexemes are sorted alphabetically and deduplicated, matching PostgreSQL's canonical representation. Each lexeme has zero or more (position, weight) pairs, where positions range from 1 to 16383.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single lexeme entry with its token text and associated positions.static final recordA position-weight pair within a lexeme.static enumWeight of a tsvector lexeme position. -
Constructor Summary
ConstructorsConstructorDescriptionTsvector(List<Tsvector.Lexeme> lexemes) Compact constructor that makes an immutable copy of lexemes. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lexemes()Returns the value of thelexemesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Tsvector
Compact constructor that makes an immutable copy of lexemes.
-
-
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). -
lexemes
Returns the value of thelexemesrecord component.- Returns:
- the value of the
lexemesrecord component
-