org.apache.cassandra.db.migration
Class DropColumnFamily

java.lang.Object
  extended by org.apache.cassandra.db.migration.Migration
      extended by org.apache.cassandra.db.migration.DropColumnFamily

public class DropColumnFamily
extends Migration

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Field Summary
 
Fields inherited from class org.apache.cassandra.db.migration.Migration
clientMode, LAST_MIGRATION_KEY, lastVersion, logger, MIGRATIONS_CF, MIGRATIONS_KEY, NAME_VALIDATOR_REGEX, newVersion, rm, SCHEMA_CF
 
Constructor Summary
protected DropColumnFamily()
          Required no-arg constructor
  DropColumnFamily(java.lang.String tableName, java.lang.String cfName)
           
 
Method Summary
 void applyModels()
          keep in mind that applyLive might happen on another machine
 void beforeApplyModels()
          override this to perform logic before writing the migration or applying it.
 void subdeflate(org.apache.cassandra.db.migration.avro.Migration mi)
          Deflate this Migration into an Avro object.
 void subinflate(org.apache.cassandra.db.migration.avro.Migration mi)
          Inflate this Migration from an Avro object: called after the required no-arg constructor.
 
Methods inherited from class org.apache.cassandra.db.migration.Migration
acquireLocks, announce, apply, deserialize, getLastMigrationId, getLocalMigrations, getVersion, isLegalName, releaseLocks, serialize, toUTF8Bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropColumnFamily

protected DropColumnFamily()
Required no-arg constructor


DropColumnFamily

public DropColumnFamily(java.lang.String tableName,
                        java.lang.String cfName)
                 throws ConfigurationException,
                        java.io.IOException
Throws:
ConfigurationException
java.io.IOException
Method Detail

beforeApplyModels

public void beforeApplyModels()
Description copied from class: Migration
override this to perform logic before writing the migration or applying it. defaults to nothing.

Overrides:
beforeApplyModels in class Migration

applyModels

public void applyModels()
                 throws java.io.IOException
Description copied from class: Migration
keep in mind that applyLive might happen on another machine

Throws:
java.io.IOException

subdeflate

public void subdeflate(org.apache.cassandra.db.migration.avro.Migration mi)
Description copied from class: Migration
Deflate this Migration into an Avro object.

Specified by:
subdeflate in class Migration

subinflate

public void subinflate(org.apache.cassandra.db.migration.avro.Migration mi)
Description copied from class: Migration
Inflate this Migration from an Avro object: called after the required no-arg constructor.

Specified by:
subinflate in class Migration


Copyright © 2010 The Apache Software Foundation