Examples of addIndices()


Examples of com.nearinfinity.honeycomb.mysql.schema.TableSchema.addIndices()

        final List<IndexSchema> indexDetailMap = ImmutableList.of(indexSchema);

        // Update the table schema to store the new index schema details
        final TableSchema existingSchema = getSchema(tableId);
        final TableSchema updatedSchema = existingSchema.schemaCopy();
        updatedSchema.addIndices(indexDetailMap);

        // Write the updated table schema and created index
        puts.add(putTableSchema(tableId, updatedSchema));
        puts.add(putIndices(tableId, indexDetailMap));
View Full Code Here

Examples of org.apache.ddlutils.model.Table.addIndices()

       
                readIndex(metaData, indexValues, indices);
            }
            resultSet.close();
       
            table.addIndices(indices.values());
        }
       
        return table;
    }
View Full Code Here

Examples of org.apache.ddlutils.model.Table.addIndices()

            table.setSchema((String)values.get("TABLE_SCHEM"));
            table.setDescription((String)values.get("REMARKS"));

            table.addColumns(readColumns(metaData, tableName));
            table.addForeignKeys(readForeignKeys(metaData, tableName));
            table.addIndices(readIndices(metaData, tableName));

            Collection primaryKeys = readPrimaryKeyNames(metaData, tableName);

            for (Iterator it = primaryKeys.iterator(); it.hasNext();)
            {
View Full Code Here

Examples of org.springframework.data.elasticsearch.core.query.NativeSearchQuery.addIndices()

    repository.save(new SpELEntity());
    //When

    //Then
    NativeSearchQuery nativeSearchQuery = new NativeSearchQuery(QueryBuilders.matchAllQuery());
    nativeSearchQuery.addIndices("abz-entity");
    long count = template.count(nativeSearchQuery);
    assertThat(count, is(2L));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.