public class Component
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Component.Type
WARNING: Be careful while changing the names or string representation of the enum
members.
|
Modifier and Type | Field and Description |
---|---|
static Component |
COMPRESSION_INFO |
static Component |
CRC |
static Component |
DATA |
static Component |
DIGEST |
static Component |
FILTER |
int |
hashCode |
java.lang.String |
name |
static Component |
PRIMARY_INDEX |
static char |
separator |
static Component |
STATS |
static Component |
SUMMARY |
static Component |
TOC |
Component.Type |
type |
Constructor and Description |
---|
Component(Component.Type type) |
Component(Component.Type type,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
name() |
static Component |
parse(java.lang.String name)
Parse the component part of a sstable filename into a
Component object. |
java.lang.String |
toString() |
public static final char separator
public static final Component DATA
public static final Component PRIMARY_INDEX
public static final Component FILTER
public static final Component COMPRESSION_INFO
public static final Component STATS
public static final Component DIGEST
public static final Component CRC
public static final Component SUMMARY
public static final Component TOC
public final Component.Type type
public final java.lang.String name
public final int hashCode
public Component(Component.Type type)
public Component(Component.Type type, java.lang.String name)
public java.lang.String name()
public static Component parse(java.lang.String name)
Component
object.name
- a string representing a sstable component.name
. Note that this always return a component as an unrecognized
name is parsed into a CUSTOM component.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2009-2021 The Apache Software Foundation