Record Class DataStorePropertiesImpl
java.lang.Object
java.lang.Record
io.stargate.sgv2.api.common.properties.datastore.impl.DataStorePropertiesImpl
- All Implemented Interfaces:
DataStoreProperties
public record DataStorePropertiesImpl(boolean secondaryIndexesEnabled, boolean saiEnabled, boolean loggedBatchesEnabled)
extends Record
implements DataStoreProperties
Immutable implementation of the
DataStoreProperties.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataStorePropertiesImpl(boolean secondaryIndexesEnabled, boolean saiEnabled, boolean loggedBatchesEnabled) Creates an instance of aDataStorePropertiesImplrecord class. -
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.booleanReturns the value of theloggedBatchesEnabledrecord component.booleanReturns the value of thesaiEnabledrecord component.booleanReturns the value of thesecondaryIndexesEnabledrecord 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 io.stargate.sgv2.api.common.properties.datastore.DataStoreProperties
treatBooleansAsNumeric
-
Constructor Details
-
DataStorePropertiesImpl
public DataStorePropertiesImpl(boolean secondaryIndexesEnabled, boolean saiEnabled, boolean loggedBatchesEnabled) Creates an instance of aDataStorePropertiesImplrecord class.- Parameters:
secondaryIndexesEnabled- the value for thesecondaryIndexesEnabledrecord componentsaiEnabled- the value for thesaiEnabledrecord componentloggedBatchesEnabled- the value for theloggedBatchesEnabledrecord component
-
-
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 with '=='. -
secondaryIndexesEnabled
public boolean secondaryIndexesEnabled()Returns the value of thesecondaryIndexesEnabledrecord component.- Specified by:
secondaryIndexesEnabledin interfaceDataStoreProperties- Returns:
- the value of the
secondaryIndexesEnabledrecord component
-
saiEnabled
public boolean saiEnabled()Returns the value of thesaiEnabledrecord component.- Specified by:
saiEnabledin interfaceDataStoreProperties- Returns:
- the value of the
saiEnabledrecord component
-
loggedBatchesEnabled
public boolean loggedBatchesEnabled()Returns the value of theloggedBatchesEnabledrecord component.- Specified by:
loggedBatchesEnabledin interfaceDataStoreProperties- Returns:
- the value of the
loggedBatchesEnabledrecord component
-