public class OakIndexUtils
extends java.lang.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 |
orderedIndexDefinition(Session session,
java.lang.String indexDefinitionName,
java.lang.String async,
java.lang.String[] propertyNames,
boolean unique,
java.lang.String[] enclosingNodeTypes,
java.lang.String direction)
Helper method to create or update an ordered index definition.
|
static Node |
propertyIndexDefinition(Session session,
java.lang.String indexDefinitionName,
java.lang.String[] propertyNames,
boolean unique,
java.lang.String[] enclosingNodeTypes)
Helper method to create or update a property index definition.
|
public static Node propertyIndexDefinition(Session session, java.lang.String indexDefinitionName, java.lang.String[] propertyNames, boolean unique, java.lang.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, java.lang.String indexDefinitionName, java.lang.String async, java.lang.String[] propertyNames, boolean unique, java.lang.String[] enclosingNodeTypes, java.lang.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 exceptionCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.