Package com.datastax.driver.core.ColumnMetadata

Examples of com.datastax.driver.core.ColumnMetadata.IndexMetadata


public class CqlIndexSpecificationAssertions {

  public static double DELTA = 1e-6; // delta for comparisons of doubles

  public static void assertIndex(IndexDescriptor expected, String keyspace, Session session) {
    IndexMetadata imd = session.getCluster().getMetadata().getKeyspace(keyspace.toLowerCase())
        .getTable(expected.getTableName().toCql()).getColumn(expected.getColumnName().toCql()).getIndex();

    assertEquals(expected.getName(), imd.getName());
  }
View Full Code Here


    assertEquals(expected.getName(), imd.getName());
  }

  public static void assertNoIndex(IndexDescriptor expected, String keyspace, Session session) {
    IndexMetadata imd = session.getCluster().getMetadata().getKeyspace(keyspace.toLowerCase())
        .getTable(expected.getTableName().toCql()).getColumn(expected.getColumnName().toCql()).getIndex();

    assertNull(imd);
  }
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.ColumnMetadata.IndexMetadata

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.