@Test public void indexNameIsIndexPath() throws Exception { NodeBuilder index = builder.child(INDEX_DEFINITIONS_NAME); newLucenePropertyIndexDefinition(index, "lucene", ImmutableSet.of("foo"), null); NodeState before = builder.getNodeState(); builder.setProperty("foo", "bar"); NodeState after = builder.getNodeState(); NodeState indexed = HOOK.processCommit(before, after, CommitInfo.EMPTY); String indexPath = "/oak:index/lucene"; IndexDefinition defn = new IndexDefinition(root, indexed.getChildNode("oak:index").getChildNode("lucene"), indexPath); assertEquals(indexPath, defn.getIndexName()); assertEquals(indexPath, defn.getIndexPath()); }
@Override public String getIndexName() { return "lucene"; }
LuceneIndex implements AdvanceFulltextQueryIndex { @Override public String getIndexName() { return "lucene"; } }
LuceneIndex implements AdvanceFulltextQueryIndex { @Override public String getIndexName() { return "lucene"; } LuceneIndex(IndexTracker tracker, NodeAggregator aggregator); }
LuceneIndex implements AdvanceFulltextQueryIndex { @Override public String getIndexName() { return "lucene"; } LuceneIndex(IndexTracker tracker, NodeAggregator aggregator); @Override double getMinimumCost(); @Override String getIndexName(); @Override List<IndexPlan> getPlans(Filter filter, List<OrderEntry> sortOrder, NodeState rootState); @Override double getCost(Filter filter, NodeState root); @Override String getPlan(Filter filter, NodeState root); @Override String getPlanDescription(IndexPlan plan, NodeState root); @Override Cursor query(final Filter filter, final NodeState root); @Override Cursor query(final IndexPlan plan, NodeState rootState); @Override NodeAggregator getNodeAggregator(); }
LuceneIndex implements AdvanceFulltextQueryIndex { @Override public String getIndexName() { return "lucene"; } LuceneIndex(IndexTracker tracker, NodeAggregator aggregator); @Override double getMinimumCost(); @Override String getIndexName(); @Override List<IndexPlan> getPlans(Filter filter, List<OrderEntry> sortOrder, NodeState rootState); @Override double getCost(Filter filter, NodeState root); @Override String getPlan(Filter filter, NodeState root); @Override String getPlanDescription(IndexPlan plan, NodeState root); @Override Cursor query(final Filter filter, final NodeState root); @Override Cursor query(final IndexPlan plan, NodeState rootState); @Override NodeAggregator getNodeAggregator(); static final String NATIVE_QUERY_FUNCTION; }