Package org.apache.cassandra.io.sstable
Class Component
java.lang.Object
org.apache.cassandra.io.sstable.Component
SSTables are made up of multiple components in separate files. Components are
identified by a type and an id, but required unique components (such as the Data
and Index files) may have implicit ids assigned to them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWARNING: Be careful while changing the names or string representation of the enum members. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSingletonsFor(Class<? extends SSTableFormat<?, ?>> formatClass) getSingletonsFor(SSTableFormat<?, ?> format) inthashCode()booleanisValidFor(Descriptor descriptor) name()static Componentparse(String name, SSTableFormat<?, ?> format) Parse the component part of a sstable filename into aComponentobject.toString()
-
Field Details
-
separator
public static final char separator- See Also:
-
type
-
name
-
hashCode
public final int hashCode
-
-
Method Details
-
name
- Returns:
- The unique (within an sstable) name for this component.
-
parse
Parse the component part of a sstable filename into aComponentobject.- Parameters:
name- a string representing a sstable component.- Returns:
- the component corresponding to
name. Note that this always return a component as an unrecognized name is parsed into a CUSTOM component.
-
getSingletonsFor
-
getSingletonsFor
-
isValidFor
-
toString
-
equals
-
hashCode
public int hashCode()
-