Package org.apache.cassandra.io.sstable
Class Component.Type
java.lang.Object
org.apache.cassandra.io.sstable.Component.Type
- Enclosing class:
- Component
WARNING: Be careful while changing the names or string representation of the enum
members. Streaming code depends on the names during streaming (Ref: CASSANDRA-14556).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<Component.Type>final Class<? extends SSTableFormat>final intfinal Stringfinal Stringfinal boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic Component.Typecreate(String name, String repr, boolean streamable, Class<? extends SSTableFormat<?, ?>> formatClass) Creates a new non-singleton type and registers it a global type registry - seeregisterType(Type).createComponent(String repr) static ComponentcreateComponent(String repr, SSTableFormat<?, ?> format) static Component.TypecreateSingleton(String name, String repr, boolean streamable, Class<? extends SSTableFormat<?, ?>> formatClass) Creates a new singleton type and registers it in a global type registry - seeregisterType(Type).booleanstatic Component.TypefromRepresentation(String repr, SSTableFormat<?, ?> format) inthashCode()toString()
-
Field Details
-
all
-
id
public final int id -
name
-
repr
-
streamable
public final boolean streamable -
formatClass
-
-
Method Details
-
create
public static Component.Type create(String name, String repr, boolean streamable, Class<? extends SSTableFormat<?, ?>> formatClass) Creates a new non-singleton type and registers it a global type registry - seeregisterType(Type).- Parameters:
name- type name, must be unique for this and all parent formatsrepr- the regular expression to be used to recognize a name represents this typestreamable- whether components of this type should be streamed to other nodesformatClass- format class for which this type is defined for
-
createSingleton
public static Component.Type createSingleton(String name, String repr, boolean streamable, Class<? extends SSTableFormat<?, ?>> formatClass) Creates a new singleton type and registers it in a global type registry - seeregisterType(Type).- Parameters:
name- type name, must be unique for this and all parent formatsrepr- the regular expression to be used to recognize a name represents this typestreamable- whether components of this type should be streamed to other nodesformatClass- format class for which this type is defined for
-
fromRepresentation
-
createComponent
-
equals
-
hashCode
public int hashCode() -
toString
-
getSingleton
-
createComponent
-