Package org.springframework.cassandra.core.keyspace

Examples of org.springframework.cassandra.core.keyspace.DefaultOption


    public Map<Option, Object> replicationMap = new HashMap<Option, Object>();

    @Override
    public AlterKeyspaceSpecification specification() {
      replicationMap.put(new DefaultOption("class", String.class, false, false, true), "SimpleStrategy");
      replicationMap.put(new DefaultOption("replication_factor", Long.class, false, false, true), 1);
      replicationMap.put(new DefaultOption("dc1", Long.class, false, false, true), 2);
      replicationMap.put(new DefaultOption("dc2", Long.class, false, false, true), 3);

      return AlterKeyspaceSpecification.alterKeyspace().name(name).with(KeyspaceOption.REPLICATION, replicationMap);
    }
View Full Code Here

TOP

Related Classes of org.springframework.cassandra.core.keyspace.DefaultOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.