public abstract class DataRateSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DataRateSpec.DataRateUnit |
static class |
DataRateSpec.LongBytesPerSecondBound
Represents a data rate used for Cassandra configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
double |
toBytesPerSecond() |
int |
toBytesPerSecondAsInt()
Returns the data rate in bytes per second as an
int |
double |
toKibibytesPerSecond() |
int |
toKibibytesPerSecondAsInt()
Returns the data rate in kibibytes per second as an
int |
double |
toMebibytesPerSecond() |
int |
toMebibytesPerSecondAsInt()
Returns the data rate in mebibytes per second as an
int |
double |
toMegabitsPerSecond()
This method is required in order to support backward compatibility with the old unit used for a few Data Rate
parameters before CASSANDRA-15234
|
int |
toMegabitsPerSecondAsInt()
Returns the data rate in megabits per second as an
int . |
java.lang.String |
toString() |
DataRateSpec.DataRateUnit |
unit() |
public DataRateSpec.DataRateUnit unit()
public double toBytesPerSecond()
public int toBytesPerSecondAsInt()
int
Integer.MAX_VALUE
if the rate is too large.public double toKibibytesPerSecond()
public int toKibibytesPerSecondAsInt()
int
Integer.MAX_VALUE
if the number of kibibytes is too large.public double toMebibytesPerSecond()
public int toMebibytesPerSecondAsInt()
int
Integer.MAX_VALUE
if the number of mebibytes is too large.public double toMegabitsPerSecond()
public int toMegabitsPerSecondAsInt()
int
. This method is required in order to support
backward compatibility with the old unit used for a few Data Rate parameters before CASSANDRA-15234Integer.MAX_VALUE
if the number of mebibytes is too large.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2022 The Apache Software Foundation