CompactionMetadata (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.io.sstable.metadata

## Class CompactionMetadata

- java.lang.Object
- - org.apache.cassandra.io.sstable.metadata.MetadataComponent
  - - org.apache.cassandra.io.sstable.metadata.CompactionMetadata

- All Implemented Interfaces:
    java.lang.Comparable<MetadataComponent>

      public class CompactionMetadata
      extends MetadataComponent

  Compaction related SSTable metadata. Only loaded for compacting SSTables at the time of compaction.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `CompactionMetadata.CompactionMetadataSerializer`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Set<java.lang.Integer>` | `ancestors`
    `com.clearspring.analytics.stream.cardinality.ICardinality` | `cardinalityEstimator`
    `static IMetadataComponentSerializer` | `serializer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CompactionMetadata(java.util.Set<java.lang.Integer> ancestors, com.clearspring.analytics.stream.cardinality.ICardinality cardinalityEstimator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object o)`
    `MetadataType` | `getType()`
    `int` | `hashCode()`

    - ### Methods inherited from class org.apache.cassandra.io.sstable.metadata.MetadataComponent

      `compareTo`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### serializer

          public static final IMetadataComponentSerializer serializer

    - #### ancestors

          public final java.util.Set<java.lang.Integer> ancestors

    - #### cardinalityEstimator

          public final com.clearspring.analytics.stream.cardinality.ICardinality cardinalityEstimator

  - ### Constructor Detail

    - #### CompactionMetadata

          public CompactionMetadata(java.util.Set<java.lang.Integer> ancestors,
                            com.clearspring.analytics.stream.cardinality.ICardinality cardinalityEstimator)

  - ### Method Detail

    - #### getType

          public MetadataType getType()

      Specified by:
        `getType` in class `MetadataComponent`
      Returns:
        Metadata component type

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

Copyright © 2014 The Apache Software Foundation