Class VersionAndType
- java.lang.Object
-
- org.apache.cassandra.io.sstable.format.VersionAndType
-
public final class VersionAndType extends java.lang.ObjectGroups a sstableVersionwith aSSTableFormat.Type.Note that both information are currently necessary to identify the exact "format" of an sstable (without having its
Descriptor). In particular, whileVersioncontains 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 booleanequals(java.lang.Object o)SSTableFormat.TypeformatType()static VersionAndTypefromString(java.lang.String versionAndType)inthashCode()java.lang.StringtoString()Versionversion()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
fromString
public static VersionAndType fromString(java.lang.String versionAndType)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-