Class Version
- java.lang.Object
-
- org.apache.cassandra.io.sstable.format.Version
-
public abstract class Version extends java.lang.ObjectA set of feature flags associated with a SSTable format versions are denoted as [major][minor]. Minor versions must be forward-compatible: new fields are allowed in e.g. the metadata component, but fields can't be removed or have their size changed. Minor versions were introduced with version "hb" for Cassandra 1.0.3; prior to that, we always incremented the major version.
-
-
Field Summary
Fields Modifier and Type Field Description protected SSTableFormatformatprotected java.lang.Stringversion
-
Constructor Summary
Constructors Modifier Constructor Description protectedVersion(SSTableFormat format, java.lang.String version)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcorrespondingMessagingVersion()booleanequals(java.lang.Object o)SSTableFormatgetSSTableFormat()java.lang.StringgetVersion()abstract booleanhasAccurateMinMax()abstract booleanhasCommitLogIntervals()abstract booleanhasCommitLogLowerBound()inthashCode()abstract booleanhasIsTransient()abstract booleanhasMaxCompressedLength()abstract booleanhasMetadataChecksum()abstract booleanhasOldBfFormat()The old bloomfilter format serializes the data as BIG_ENDIAN long's, the new one uses the same format as in memory (serializes as bytes).abstract booleanhasOriginatingHostId()abstract booleanhasPendingRepair()abstract booleanisCompatible()abstract booleanisCompatibleForStreaming()abstract booleanisLatestVersion()java.lang.StringtoString()static booleanvalidate(java.lang.String ver)
-
-
-
Field Detail
-
version
protected final java.lang.String version
-
format
protected final SSTableFormat format
-
-
Constructor Detail
-
Version
protected Version(SSTableFormat format, java.lang.String version)
-
-
Method Detail
-
isLatestVersion
public abstract boolean isLatestVersion()
-
correspondingMessagingVersion
public abstract int correspondingMessagingVersion()
-
hasCommitLogLowerBound
public abstract boolean hasCommitLogLowerBound()
-
hasCommitLogIntervals
public abstract boolean hasCommitLogIntervals()
-
hasMaxCompressedLength
public abstract boolean hasMaxCompressedLength()
-
hasPendingRepair
public abstract boolean hasPendingRepair()
-
hasIsTransient
public abstract boolean hasIsTransient()
-
hasMetadataChecksum
public abstract boolean hasMetadataChecksum()
-
hasOldBfFormat
public abstract boolean hasOldBfFormat()
The old bloomfilter format serializes the data as BIG_ENDIAN long's, the new one uses the same format as in memory (serializes as bytes).- Returns:
- True if the bloomfilter file is old serialization format
-
hasAccurateMinMax
public abstract boolean hasAccurateMinMax()
-
getVersion
public java.lang.String getVersion()
-
getSSTableFormat
public SSTableFormat getSSTableFormat()
-
validate
public static boolean validate(java.lang.String ver)
- Parameters:
ver- SSTable version- Returns:
- True if the given version string matches the format.
- See Also:
version
-
isCompatible
public abstract boolean isCompatible()
-
isCompatibleForStreaming
public abstract boolean isCompatibleForStreaming()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
hasOriginatingHostId
public abstract boolean hasOriginatingHostId()
-
-