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.Object
Represents 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 class
DataStorageSpec.DataStorageUnit
static class
DataStorageSpec.IntBytesBound
Represents a data storage quantity used for Cassandra configuration.static class
DataStorageSpec.IntKibibytesBound
Represents a data storage quantity used for Cassandra configuration.static class
DataStorageSpec.IntMebibytesBound
Represents a data storage quantity used for Cassandra configuration.static class
DataStorageSpec.LongBytesBound
Represents a data storage quantity used for Cassandra configuration.static class
DataStorageSpec.LongMebibytesBound
Represents a data storage quantity used for Cassandra configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
long
quantity()
java.lang.String
toString()
DataStorageSpec.DataStorageUnit
unit()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-