当前位置: 首页>>代码示例>>Java>>正文


Java CassandraOperations类代码示例

本文整理汇总了Java中org.springframework.data.cassandra.core.CassandraOperations的典型用法代码示例。如果您正苦于以下问题:Java CassandraOperations类的具体用法?Java CassandraOperations怎么用?Java CassandraOperations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CassandraOperations类属于org.springframework.data.cassandra.core包,在下文中一共展示了CassandraOperations类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CassandraHealthIndicatorConfiguration

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
public CassandraHealthIndicatorConfiguration(
		Map<String, CassandraOperations> cassandraOperations) {
	this.cassandraOperations = cassandraOperations;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:HealthIndicatorAutoConfiguration.java

示例2: CassandraHealthIndicator

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
/**
 * Create a new {@link CassandraHealthIndicator} instance.
 * @param cassandraOperations the Cassandra operations
 */
public CassandraHealthIndicator(CassandraOperations cassandraOperations) {
	Assert.notNull(cassandraOperations, "CassandraOperations must not be null");
	this.cassandraOperations = cassandraOperations;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:9,代码来源:CassandraHealthIndicator.java

示例3: cassandraOperations

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
@Bean
public CassandraOperations cassandraOperations() {
	CassandraOperations operations = mock(CassandraOperations.class);
	return operations;
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:6,代码来源:HealthIndicatorAutoConfigurationTests.java

示例4: cassandraZuulRouteStore

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean
public ZuulRouteStore cassandraZuulRouteStore(CassandraOperations cassandraOperations) {

    return new CassandraZuulRouteStore(cassandraOperations);
}
 
开发者ID:jmnarloch,项目名称:zuul-route-cassandra-spring-cloud-starter,代码行数:7,代码来源:CassandraZuulStoreAutoConfiguration.java

示例5: cassandraTemplate

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
@Bean
public CassandraOperations cassandraTemplate(Cluster cluster) {
    return new CassandraTemplate(cluster.connect("zuul"));
}
 
开发者ID:jmnarloch,项目名称:zuul-route-cassandra-spring-cloud-starter,代码行数:5,代码来源:CassandraZuulProxyStoreTest.java

示例6: ops

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
private CassandraOperations ops() {
    return new CassandraTemplate(session);
}
 
开发者ID:Excelian,项目名称:Mache,代码行数:4,代码来源:CassandraCacheLoader.java

示例7: operations

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
@Bean
public CassandraOperations operations() throws Exception {
    return new CassandraTemplate(session().getObject(), new MappingCassandraConverter(new BasicCassandraMappingContext()));
}
 
开发者ID:pivotal-cf,项目名称:cf-cassandra-spring-example-app,代码行数:5,代码来源:ApplicationConfiguration.java

示例8: CassandraZuulRouteStore

import org.springframework.data.cassandra.core.CassandraOperations; //导入依赖的package包/类
/**
 * Creates new instance of {@link CassandraZuulRouteStore}.
 *
 * @param cassandraOperations the cassandra template
 * @param keyspace            the optional keyspace
 * @param table               the table name
 * @throws IllegalArgumentException if {@code keyspace} is {@code null}
 *                                  or {@code table} is {@code null} or empty
 */
public CassandraZuulRouteStore(CassandraOperations cassandraOperations, String keyspace, String table) {
    Assert.notNull(cassandraOperations, "Parameter 'cassandraOperations' can not be null.");
    Assert.hasLength(table, "Parameter 'table' can not be empty.");
    this.cassandraOperations = cassandraOperations;
    this.keyspace = keyspace;
    this.table = table;
}
 
开发者ID:jmnarloch,项目名称:zuul-route-cassandra-spring-cloud-starter,代码行数:17,代码来源:CassandraZuulRouteStore.java


注:本文中的org.springframework.data.cassandra.core.CassandraOperations类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。