Class CreateIndex


  • public class CreateIndex
    extends Object
    A built CREATE INDEX statement.
    • Method Detail

      • ifNotExists

        public CreateIndex ifNotExists()
        Add the 'IF NOT EXISTS' condition to this CREATE INDEX statement.
        Returns:
        this CREATE INDEX statement.
      • onTable

        public CreateIndex.CreateIndexOn onTable​(String keyspaceName,
                                                 String tableName)
        Specify the keyspace and table to create the index on.
        Parameters:
        keyspaceName - the keyspace name.
        tableName - the table name.
        Returns:
        a CreateIndex.CreateIndexOn that will allow the specification of the column.
      • buildInternal

        public String buildInternal()