public class OakIndexUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OakIndexUtils.PropertyIndex
A property index
|
| Constructor and Description |
|---|
OakIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
luceneIndexDefinition(Session session,
String indexDefinitionName,
String async,
String[] propertyNames,
String[] type,
Map<String,Map<String,String>> orderedPropsMap,
String persistencePath)
Helper method to create or update a lucene property index definition.
|
static Node |
orderedIndexDefinition(Session session,
String indexDefinitionName,
String async,
String[] propertyNames,
boolean unique,
String[] enclosingNodeTypes,
String direction)
Helper method to create or update an ordered index definition.
|
static Node |
propertyIndexDefinition(Session session,
String indexDefinitionName,
String[] propertyNames,
boolean unique,
String[] enclosingNodeTypes)
Helper method to create or update a property index definition.
|
public static Node propertyIndexDefinition(Session session, String indexDefinitionName, String[] propertyNames, boolean unique, String[] enclosingNodeTypes) throws RepositoryException
session - the sessionindexDefinitionName - the name of the node for the index definitionpropertyNames - the list of properties to indexunique - if unique or notenclosingNodeTypes - the enclosing node typesRepositoryException - the repository exceptionpublic static Node orderedIndexDefinition(Session session, String indexDefinitionName, String async, String[] propertyNames, boolean unique, String[] enclosingNodeTypes, String direction) throws RepositoryException
session - the sessionindexDefinitionName - the name of the node for the index definitionasync - whether the indexing is async or notpropertyNames - the list of properties to indexunique - if unique or notenclosingNodeTypes - the enclosing node typesdirection - the directionRepositoryException - the repository exceptionpublic static Node luceneIndexDefinition(Session session, String indexDefinitionName, String async, String[] propertyNames, String[] type, Map<String,Map<String,String>> orderedPropsMap, String persistencePath) throws RepositoryException
session - the sessionindexDefinitionName - the name of the node for the index definitionpropertyNames - the list of properties to indextype - the types of the properties in order of the propertiesorderedPropsMap - the ordered props and its propertiespersistencePath - the path if the persistence=file (default is repository)RepositoryException - the repository exceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.