public final class KeyspaceParams
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KeyspaceParams.Option |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DURABLE_WRITES |
static boolean |
DEFAULT_LOCAL_DURABLE_WRITES
This determines durable writes for the
SchemaConstants.SCHEMA_KEYSPACE_NAME
and SchemaConstants.SYSTEM_KEYSPACE_NAME keyspaces,
the only reason it is not final is for commitlog unit tests. |
boolean |
durableWrites |
ReplicationParams |
replication |
Constructor and Description |
---|
KeyspaceParams(boolean durableWrites,
ReplicationParams replication) |
Modifier and Type | Method and Description |
---|---|
static KeyspaceParams |
create(boolean durableWrites,
java.util.Map<java.lang.String,java.lang.String> replication) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static KeyspaceParams |
local() |
static KeyspaceParams |
nts(java.lang.Object... args) |
static KeyspaceParams |
simple(int replicationFactor) |
static KeyspaceParams |
simple(java.lang.String replicationFactor) |
static KeyspaceParams |
simpleTransient(int replicationFactor) |
java.lang.String |
toString() |
void |
validate(java.lang.String name) |
public static final boolean DEFAULT_DURABLE_WRITES
public static boolean DEFAULT_LOCAL_DURABLE_WRITES
SchemaConstants.SCHEMA_KEYSPACE_NAME
and SchemaConstants.SYSTEM_KEYSPACE_NAME
keyspaces,
the only reason it is not final is for commitlog unit tests. It should only be changed for testing purposes.public final boolean durableWrites
public final ReplicationParams replication
public KeyspaceParams(boolean durableWrites, ReplicationParams replication)
public static KeyspaceParams create(boolean durableWrites, java.util.Map<java.lang.String,java.lang.String> replication)
public static KeyspaceParams local()
public static KeyspaceParams simple(int replicationFactor)
public static KeyspaceParams simple(java.lang.String replicationFactor)
public static KeyspaceParams simpleTransient(int replicationFactor)
public static KeyspaceParams nts(java.lang.Object... args)
public void validate(java.lang.String name)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2022 The Apache Software Foundation