@Immutable public class IndexRules extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexRules.Builder
A builder of immutable
IndexRules objects. |
static interface |
IndexRules.Factory |
static class |
IndexRules.FieldType |
static class |
IndexRules.FixedFactory
A simple
IndexRules.Factory that always returns the same IndexRules . |
static interface |
IndexRules.NumericRule<T> |
protected static class |
IndexRules.NumericTypedRule<T> |
static interface |
IndexRules.Rule
A single rule that dictates how a single property should be indexed.
|
protected static class |
IndexRules.SkipRule |
protected static class |
IndexRules.TypedRule |
Modifier and Type | Field and Description |
---|---|
static IndexRules |
DEFAULT_RULES
The default set of
IndexRules when no rules are provided. |
protected static IndexRules.Factory |
DEFAULT_RULES_FACTORY |
static IndexRules.Rule |
SKIP |
Modifier | Constructor and Description |
---|---|
protected |
IndexRules(Map<Name,IndexRules.Rule> rulesByName,
IndexRules.Rule defaultRule) |
Modifier and Type | Method and Description |
---|---|
static IndexRules.Builder |
createBuilder()
Return a new builder that can be used to create
IndexRules objects. |
static IndexRules.Builder |
createBuilder(IndexRules initialRules)
Return a new builder that can be used to create
IndexRules objects. |
IndexRules.Rule |
getRule(Name name)
Get the rule associated with the given property name.
|
public static final IndexRules DEFAULT_RULES
IndexRules
when no rules are provided. These rules default to index and analyze all properties,
and only index the jcr:uuid
properties to be indexed and stored only (not analyzed and not included
in full-text search. The rules also treat jcr:created
and jcr:lastModified
properties as dates.protected static final IndexRules.Factory DEFAULT_RULES_FACTORY
public static final IndexRules.Rule SKIP
protected IndexRules(Map<Name,IndexRules.Rule> rulesByName, IndexRules.Rule defaultRule)
public IndexRules.Rule getRule(Name name)
name
- the property name, or null if the default rule is to be returnedpublic static IndexRules.Builder createBuilder()
IndexRules
objects.public static IndexRules.Builder createBuilder(IndexRules initialRules)
IndexRules
objects.initialRules
- the rules that the builder should start withIllegalArgumentException
- if the initial rules reference is nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.