Record Class IndexConfig
java.lang.Object
java.lang.Record
com.loomcache.server.query.IndexConfig
-
Constructor Summary
ConstructorsConstructorDescriptionIndexConfig(String indexName, String columnName, IndexType indexType) IndexConfig(String indexName, List<String> columnNames, IndexType indexType) Creates a new IndexConfig. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamesrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.static IndexConfigfromDeclarative(String indexName, String columnName, @Nullable String indexTypeName) static IndexConfigfromDeclarative(String indexName, List<String> columnNames, @Nullable String indexTypeName) final inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.Returns the value of theindexTyperecord component.leftmostPrefix(Set<String> predicateColumns) static IndexConfigparseDeclaration(String declaration) static IndexTypeparseIndexType(@Nullable String indexTypeName) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexConfig
-
IndexConfig
-
-
Method Details
-
fromDeclarative
public static IndexConfig fromDeclarative(String indexName, String columnName, @Nullable String indexTypeName) -
fromDeclarative
public static IndexConfig fromDeclarative(String indexName, List<String> columnNames, @Nullable String indexTypeName) -
parseDeclaration
-
columnName
-
composite
public boolean composite() -
leftmostPrefix
-
parseIndexType
-
toString
-
hashCode
-
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). -
indexName
Returns the value of theindexNamerecord component.- Returns:
- the value of the
indexNamerecord component
-
columnNames
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-