Interface IndexCompositeNodeBuilder

    • Method Detail

      • addField

        <F> IndexSchemaFieldOptionsStep<?,​IndexFieldReference<F>> addField​(String relativeFieldName,
                                                                                 IndexFieldInclusion inclusion,
                                                                                 IndexFieldType<F> indexFieldType)
        Create a new field and add it to the current builder.
        Type Parameters:
        F - The type of values for the new field
        Parameters:
        relativeFieldName - The relative name of the new field
        inclusion - Whether fields matching this template should be included, provided their parent is included.
        indexFieldType - The type of the new field
        Returns:
        A DSL step where the field can be defined in more details.
      • addNamedPredicate

        IndexSchemaNamedPredicateOptionsStep addNamedPredicate​(String relativeNamedPredicateName,
                                                               IndexFieldInclusion inclusion,
                                                               NamedPredicateProvider provider)
        Create a new named predicate and add it to the current builder.
        Parameters:
        relativeNamedPredicateName - The relative name of the new named predicate.
        inclusion - Whether fields matching this template should be included, provided their parent is included.
        provider - The provider of named predicate instances.
        Returns:
        A DSL step where the named predicate can be defined in more details.
      • addObjectField

        IndexObjectFieldBuilder addObjectField​(String relativeFieldName,
                                               IndexFieldInclusion inclusion,
                                               ObjectStructure structure)
        Create a new object field and add it to the current builder.
        Parameters:
        relativeFieldName - The relative name of the new object field
        inclusion - Whether fields matching this template should be included, provided their parent is included.
        structure - The structure of the new object field
        Returns:
        A builder for the new object field
      • addObjectFieldTemplate

        IndexSchemaFieldTemplateOptionsStep<?> addObjectFieldTemplate​(String templateName,
                                                                      ObjectStructure structure,
                                                                      String prefix,
                                                                      IndexFieldInclusion inclusion)
        Create a new object field template and add it to the current builder.
        Parameters:
        templateName - The name of the new template
        structure - The structure of the new object field template
        prefix - A prefix to prepend to the glob pattern and to field paths passed to DocumentElement.addObject(String).
        inclusion - Whether fields matching this template should be included, provided their parent is included.
        Returns:
        A DSL step where the field template can be defined in more details.