cql3: Convert KSPropDefs to C++

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2015-01-12 15:16:35 +02:00
parent ff714bdd35
commit db12a1ac2d
2 changed files with 28 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
#include "functions/function_call.hh"
#include "statements/cf_statement.hh"
#include "statements/ks_prop_defs.hh"
#include "statements/use_statement.hh"
#include "statements/parsed_statement.hh"
#include "statements/property_definitions.hh"

View File

@@ -15,15 +15,33 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright 2015 Cloudius Systems
*
* Modified by Cloudius Systems
*/
#ifndef CQL3_STATEMENTS_KS_PROP_DEFS_HH
#define CQL3_STATEMENTS_KS_PROP_DEFS_HH
#include "cql3/statements/property_definitions.hh"
namespace cql3 {
namespace statements {
#if 0
package org.apache.cassandra.cql3.statements;
import java.util.*;
import org.apache.cassandra.config.KSMetaData;
import org.apache.cassandra.exceptions.*;
#endif
public class KSPropDefs extends PropertyDefinitions
{
class ks_prop_defs : public property_definitions {
#if 0
public static final String KW_DURABLE_WRITES = "durable_writes";
public static final String KW_REPLICATION = "replication";
@@ -86,4 +104,11 @@ public class KSPropDefs extends PropertyDefinitions
}
return KSMetaData.newKeyspace(old.name, sClass, sOptions, getBoolean(KW_DURABLE_WRITES, old.durableWrites));
}
#endif
};
}
}
#endif