Record Class IndexConfig
java.lang.Object
java.lang.Record
com.loomcache.client.query.IndexConfig
public record IndexConfig(String indexName, List<String> columnNames, IndexType indexType)
extends Record
Describes a secondary index to be created on a distributed map.
Specifies the index name, the map column names to index, and the index type (sorted, hash,
or bitmap). Use the static factory methods sorted(String, String, String...), hash(String, String, String...), or bitmap(String, String, String...)
for the common cases, then supply the config to LoomClient.addIndex.
Note: SQL secondary indexes are disabled in this release — addIndex and
addIndexAsync always fail (see the SQL-engine guide). This config type is retained for API
stability.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexConfig(String indexName, String columnName, IndexType indexType) IndexConfig(String indexName, List<String> columnNames, IndexType indexType) Creates an instance of aIndexConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexConfigstatic IndexConfigReturns the value of thecolumnNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.static IndexConfigstatic IndexConfigfinal inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.Returns the value of theindexTyperecord component.static IndexConfigstatic IndexConfigtoCreateIndexSql(String mapName) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexConfig
-
IndexConfig
Creates an instance of aIndexConfigrecord class.- Parameters:
indexName- the value for theindexNamerecord componentcolumnNames- the value for thecolumnNamesrecord componentindexType- the value for theindexTyperecord component
-
-
Method Details
-
sorted
-
sorted
-
hash
-
hash
-
bitmap
-
bitmap
-
columnName
-
toCreateIndexSql
-
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
-