Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cassandra.config
Class KSMetaData

    java.lang.Object
      org.apache.cassandra.config.KSMetaData

    public final class KSMetaData

extends java.lang.Object

Field Summary
`boolean` | `durableWrites`
`java.lang.String` | `name`
`java.lang.Class<? extends AbstractReplicationStrategy>` | `strategyClass`
`java.util.Map<java.lang.String,java.lang.String>` | `strategyOptions`

Method Summary
`java.util.Map<java.lang.String,CFMetaData>` | `cfMetaData()`
`static KSMetaData` | `cloneWith(KSMetaData ksm, java.lang.Iterable<CFMetaData> cfDefs)`
`static java.lang.String` | `convertOldStrategyName(java.lang.String name)`
`static java.util.Map<java.lang.String,CFMetaData>` | `deserializeColumnFamilies(Row row)` Deserialize ColumnFamilies from low-level schema representation, all of them belong to the same keyspace
`RowMutation` | `dropFromSchema(long timestamp)`
`boolean` | `equals(java.lang.Object obj)`
`static KSMetaData` | `fromSchema(Row row, java.lang.Iterable<CFMetaData> cfms)` Deserialize only Keyspace attributes without nested ColumnFamilies
`static KSMetaData` | `fromSchema(Row serializedKs, Row serializedCFs)` Deserialize Keyspace with nested ColumnFamilies
`static KSMetaData` | `fromThrift(KsDef ksd, CFMetaData... cfDefs)`
`int` | `hashCode()`
`static KSMetaData` | `newKeyspace(java.lang.String name, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, java.util.Map<java.lang.String,java.lang.String> options, boolean durablesWrites, java.lang.Iterable<CFMetaData> cfDefs)`
`static KSMetaData` | `newKeyspace(java.lang.String name, java.lang.String strategyName, java.util.Map<java.lang.String,java.lang.String> options, boolean durableWrites)`
`static java.util.Map<java.lang.String,java.lang.String>` | `optsWithRF(java.lang.Integer rf)`
`KSMetaData` | `reloadAttributes()`
`static KSMetaData` | `systemKeyspace()`
`static KSMetaData` | `testMetadata(java.lang.String name, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, java.util.Map<java.lang.String,java.lang.String> strategyOptions, CFMetaData... cfDefs)`
`static KSMetaData` | `testMetadataNotDurable(java.lang.String name, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, java.util.Map<java.lang.String,java.lang.String> strategyOptions, CFMetaData... cfDefs)`
`RowMutation` | `toSchema(long timestamp)`
`RowMutation` | `toSchemaUpdate(KSMetaData newState, long modificationTimestamp)`
`java.lang.String` | `toString()`
`KsDef` | `toThrift()`
`KSMetaData` | `validate()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### name

    public final java.lang.String name

### strategyClass

    public final java.lang.Class<? extends AbstractReplicationStrategy> strategyClass

### strategyOptions

    public final java.util.Map<java.lang.String,java.lang.String> strategyOptions

### durableWrites

    public final boolean durableWrites

Method Detail

### newKeyspace

    public static KSMetaData newKeyspace(java.lang.String name,
                                         java.lang.String strategyName,
                                         java.util.Map<java.lang.String,java.lang.String> options,
                                         boolean durableWrites)
                                  throws ConfigurationException

  Throws:
    `ConfigurationException`

### newKeyspace

    public static KSMetaData newKeyspace(java.lang.String name,
                                         java.lang.Class<? extends AbstractReplicationStrategy> strategyClass,
                                         java.util.Map<java.lang.String,java.lang.String> options,
                                         boolean durablesWrites,
                                         java.lang.Iterable<CFMetaData> cfDefs)

### cloneWith

    public static KSMetaData cloneWith(KSMetaData ksm,
                                       java.lang.Iterable<CFMetaData> cfDefs)

### systemKeyspace

    public static KSMetaData systemKeyspace()

### testMetadata

    public static KSMetaData testMetadata(java.lang.String name,
                                          java.lang.Class<? extends AbstractReplicationStrategy> strategyClass,
                                          java.util.Map<java.lang.String,java.lang.String> strategyOptions,
                                          CFMetaData... cfDefs)

### testMetadataNotDurable

    public static KSMetaData testMetadataNotDurable(java.lang.String name,
                                                    java.lang.Class<? extends AbstractReplicationStrategy> strategyClass,
                                                    java.util.Map<java.lang.String,java.lang.String> strategyOptions,
                                                    CFMetaData... cfDefs)

### hashCode

    public int hashCode()

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

### equals

    public boolean equals(java.lang.Object obj)

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

### cfMetaData

    public java.util.Map<java.lang.String,CFMetaData> cfMetaData()

### toString

    public java.lang.String toString()

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

### convertOldStrategyName

    public static java.lang.String convertOldStrategyName(java.lang.String name)

### optsWithRF

    public static java.util.Map<java.lang.String,java.lang.String> optsWithRF(java.lang.Integer rf)

### fromThrift

    public static KSMetaData fromThrift(KsDef ksd,
                                        CFMetaData... cfDefs)
                                 throws ConfigurationException

  Throws:
    `ConfigurationException`

### toThrift

    public KsDef toThrift()

### toSchemaUpdate

    public RowMutation toSchemaUpdate(KSMetaData newState,
                                      long modificationTimestamp)

### validate

    public KSMetaData validate()
                        throws ConfigurationException

  Throws:
    `ConfigurationException`

### reloadAttributes

    public KSMetaData reloadAttributes()
                                throws java.io.IOException

  Throws:
    `java.io.IOException`

### dropFromSchema

    public RowMutation dropFromSchema(long timestamp)

### toSchema

    public RowMutation toSchema(long timestamp)

### fromSchema

    public static KSMetaData fromSchema(Row row,
                                        java.lang.Iterable<CFMetaData> cfms)
                                 throws java.io.IOException

  Deserialize only Keyspace attributes without nested ColumnFamilies

  Parameters:
    `row` - Keyspace attributes in serialized form
  Returns:
    deserialized keyspace without cf_defs
  Throws:
    `java.io.IOException` - if deserialization failed

### fromSchema

    public static KSMetaData fromSchema(Row serializedKs,
                                        Row serializedCFs)
                                 throws java.io.IOException

  Deserialize Keyspace with nested ColumnFamilies

  Parameters:
    `serializedKs` - Keyspace in serialized form
    `serializedCFs` - Collection of the serialized ColumnFamilies
  Returns:
    deserialized keyspace with cf_defs
  Throws:
    `java.io.IOException` - if deserialization failed

### deserializeColumnFamilies

    public static java.util.Map<java.lang.String,CFMetaData> deserializeColumnFamilies(Row row)

  Deserialize ColumnFamilies from low-level schema representation, all of them belong to the same keyspace

  Parameters:
    `row` -
  Returns:
    map containing name of the ColumnFamily and it's metadata for faster lookup

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013 The Apache Software Foundation