Example usage for org.springframework.data.gemfire IndexType getGemfireIndexType

List of usage examples for org.springframework.data.gemfire IndexType getGemfireIndexType

Introduction

In this page you can find the example usage for org.springframework.data.gemfire IndexType getGemfireIndexType.

Prototype

public org.apache.geode.cache.query.IndexType getGemfireIndexType() 

Source Link

Document

Gets the matching Pivotal GemFire IndexType for this IndexType enumerated value.

Usage

From source file:org.springframework.data.gemfire.IndexFactoryBeanTest.java

private Index mockIndexWithDefinition(String name, String expression, String fromClause, IndexType type) {

    Index mockIndex = mockIndex(name);/*ww w  .  ja va2s .  c o m*/

    when(mockIndex.getIndexedExpression()).thenReturn(expression);
    when(mockIndex.getFromClause()).thenReturn(fromClause);
    when(mockIndex.getType()).thenReturn(type.getGemfireIndexType());

    return mockIndex;
}