Class Component

java.lang.Object
org.apache.cassandra.io.sstable.Component

public class Component extends Object
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.
  • Field Details

  • Method Details

    • name

      public String name()
      Returns:
      The unique (within an sstable) name for this component.
    • parse

      public static Component parse(String name, SSTableFormat<?,?> format)
      Parse the component part of a sstable filename into a Component object.
      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

      public static Iterable<Component> getSingletonsFor(SSTableFormat<?,?> format)
    • getSingletonsFor

      public static Iterable<Component> getSingletonsFor(Class<? extends SSTableFormat<?,?>> formatClass)
    • isValidFor

      public boolean isValidFor(Descriptor descriptor)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object