Search in sources :

Example 11 with AtlasGraphIndex

use of org.apache.atlas.repository.graphdb.AtlasGraphIndex in project incubator-atlas by apache.

the class GraphBackedSearchIndexerTest method verifyVertexIndexContains.

private void verifyVertexIndexContains(AtlasGraphManagement managementSystem, String indexName) {
    AtlasGraphIndex vertexIndex = managementSystem.getGraphIndex(Constants.VERTEX_INDEX);
    Set<AtlasPropertyKey> fieldKeys = vertexIndex.getFieldKeys();
    Arrays.asList(fieldKeys).contains(managementSystem.getPropertyKey(indexName));
}
Also used : AtlasPropertyKey(org.apache.atlas.repository.graphdb.AtlasPropertyKey) AtlasGraphIndex(org.apache.atlas.repository.graphdb.AtlasGraphIndex)

Aggregations

AtlasGraphIndex (org.apache.atlas.repository.graphdb.AtlasGraphIndex)11 AtlasPropertyKey (org.apache.atlas.repository.graphdb.AtlasPropertyKey)5 AtlasGraphManagement (org.apache.atlas.repository.graphdb.AtlasGraphManagement)4 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 RepositoryException (org.apache.atlas.repository.RepositoryException)2 AtlasGraph (org.apache.atlas.repository.graphdb.AtlasGraph)2 Test (org.testng.annotations.Test)2 AtlasException (org.apache.atlas.AtlasException)1 AtlasBaseException (org.apache.atlas.exception.AtlasBaseException)1 IndexException (org.apache.atlas.repository.IndexException)1