Class VersionAndType
- java.lang.Object
-
- org.apache.cassandra.io.sstable.format.VersionAndType
-
public final class VersionAndType extends java.lang.Object
Groups a sstableVersion
with aSSTableFormat.Type
.Note that both information are currently necessary to identify the exact "format" of an sstable (without having its
Descriptor
). In particular, whileVersion
contains its {SSTableFormat
}, you cannot get the {SSTableFormat.Type
} from that.
-
-
Constructor Summary
Constructors Constructor Description VersionAndType(Version version, SSTableFormat.Type formatType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
SSTableFormat.Type
formatType()
static VersionAndType
fromString(java.lang.String versionAndType)
int
hashCode()
java.lang.String
toString()
Version
version()
-
-
-
Constructor Detail
-
VersionAndType
public VersionAndType(Version version, SSTableFormat.Type formatType)
-
-
Method Detail
-
version
public Version version()
-
formatType
public SSTableFormat.Type formatType()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
fromString
public static VersionAndType fromString(java.lang.String versionAndType)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-