Package org.apache.cassandra.config
Class DataStorageSpec
- java.lang.Object
-
- org.apache.cassandra.config.DataStorageSpec
-
- Direct Known Subclasses:
DataStorageSpec.IntBytesBound,DataStorageSpec.IntKibibytesBound,DataStorageSpec.IntMebibytesBound,DataStorageSpec.LongBytesBound,DataStorageSpec.LongMebibytesBound
public abstract class DataStorageSpec extends java.lang.ObjectRepresents an amount of data storage. Wrapper class for Cassandra configuration parameters, providing to the users the opportunity to be able to provide config with a unit of their choice in cassandra.yaml as per the available options. (CASSANDRA-15234)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataStorageSpec.DataStorageUnitstatic classDataStorageSpec.IntBytesBoundRepresents a data storage quantity used for Cassandra configuration.static classDataStorageSpec.IntKibibytesBoundRepresents a data storage quantity used for Cassandra configuration.static classDataStorageSpec.IntMebibytesBoundRepresents a data storage quantity used for Cassandra configuration.static classDataStorageSpec.LongBytesBoundRepresents a data storage quantity used for Cassandra configuration.static classDataStorageSpec.LongMebibytesBoundRepresents a data storage quantity used for Cassandra configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()longquantity()java.lang.StringtoString()DataStorageSpec.DataStorageUnitunit()
-
-
-
Method Detail
-
quantity
public long quantity()
- Returns:
- the data storage quantity.
-
unit
public DataStorageSpec.DataStorageUnit unit()
- Returns:
- the data storage unit.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-