EsIndex implements ProvidedIndex { @Override public String getName() { return name; } EsIndex(EsClient client, ExecutionContext context, IndexDefinition defn, String workspace); protected  EsIndex(EsClient client, EsIndexColumns columns, ExecutionContext context, String name, String workspace); @Override void add(String nodeKey, String propertyName, Object value); @Override void add(String nodeKey, String propertyName, Object[] values); @Override void remove(String nodeKey); @Override void remove(String nodeKey, String propertyName, Object value); @Override void remove(String nodeKey, String propertyName, Object[] values); @Override void commit(); @Override String getName(); @Override Results filter(IndexConstraints constraints, long cardinalityEstimate); @Override long estimateCardinality(List<Constraint> constraints, Map<String, Object> variables); @Override long estimateTotalCount(); @Override boolean requiresReindexing(); @Override void clearAllData(); @Override void shutdown(boolean destroyed);  }
@Test public void shouldSupportPropertyExistanceConstraint() { PropertyExistence pe = new PropertyExistence(new SelectorName("test"), def2.getName()); validate(pe, "key1", "key2", "key3", "key4", "key5", "key6"); }