public interface IndexSchemaElement
| Modifier and Type | Method and Description |
|---|---|
<F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> |
field(String relativeFieldName,
Function<? super IndexFieldTypeFactory,? extends IndexFieldTypeFinalStep<F>> typeContributor)
Add a field to this index schema element with the type to be defined by the given function.
|
<F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> |
field(String relativeFieldName,
IndexFieldType<F> type)
Add a field to this index schema element with the given type.
|
default <F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> |
field(String relativeFieldName,
IndexFieldTypeFinalStep<F> dslFinalStep)
Add a field to this index schema element with the given almost-built type.
|
IndexSchemaFieldTemplateOptionsStep<?> |
fieldTemplate(String templateName,
Function<? super IndexFieldTypeFactory,? extends IndexFieldTypeFinalStep<?>> typeContributor)
Add a field to this index schema element with the type to be defined by the given function.
|
IndexSchemaFieldTemplateOptionsStep<?> |
fieldTemplate(String templateName,
IndexFieldType<?> type)
Add a field template to this index schema element with the given type.
|
default IndexSchemaFieldTemplateOptionsStep<?> |
fieldTemplate(String templateName,
IndexFieldTypeFinalStep<?> dslFinalStep)
Add a field template to this index schema element with the given almost-built type.
|
default IndexSchemaObjectField |
objectField(String relativeFieldName)
Add an object field to this index schema element with the default storage type.
|
IndexSchemaObjectField |
objectField(String relativeFieldName,
ObjectFieldStorage storage)
Add an object field to this index schema element with the given storage type.
|
default IndexSchemaFieldTemplateOptionsStep<?> |
objectFieldTemplate(String templateName)
Add an object field template to this index schema element with the default storage type.
|
IndexSchemaFieldTemplateOptionsStep<?> |
objectFieldTemplate(String templateName,
ObjectFieldStorage storage)
Add an object field template to this index schema element with the given storage type.
|
<F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> field(String relativeFieldName, IndexFieldType<F> type)
F - The type of values held by the field.relativeFieldName - The relative name of the field.type - The type of the new field.a reference to the field can be obtained.default <F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> field(String relativeFieldName, IndexFieldTypeFinalStep<F> dslFinalStep)
F - The type of values held by the field.relativeFieldName - The relative name of the field.dslFinalStep - A final step in the index field type DSL allowing the retrieval of an IndexFieldType.a reference to the field can be obtained.<F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> field(String relativeFieldName, Function<? super IndexFieldTypeFactory,? extends IndexFieldTypeFinalStep<F>> typeContributor)
Best used with lambda expressions.
F - The type of values held by the field.relativeFieldName - The relative name of the field.typeContributor - A function that will use the factory passed in parameter to create a type,
returning the final step in the predicate DSL.
Should generally be a lambda expression.a reference to the field can be obtained.default IndexSchemaObjectField objectField(String relativeFieldName)
relativeFieldName - The relative name of the field.IndexSchemaObjectField, where the field can be defined in more details,
in particular by adding new child fields to it,
and where ultimately a a reference to the field can be obtained.IndexSchemaObjectField objectField(String relativeFieldName, ObjectFieldStorage storage)
relativeFieldName - The relative name of the field.storage - The storage type.IndexSchemaObjectField, where the field can be defined in more details,
in particular by adding new child fields to it,
and where ultimately a a reference to the field can be obtained.ObjectFieldStorageIndexSchemaFieldTemplateOptionsStep<?> fieldTemplate(String templateName, IndexFieldType<?> type)
templateName - The name of the template. Must be non-null and non-empty.
Must be unique for this index schema element.
Must not contain the dot ('.') character.type - The type of fields created by this template.default IndexSchemaFieldTemplateOptionsStep<?> fieldTemplate(String templateName, IndexFieldTypeFinalStep<?> dslFinalStep)
templateName - The name of the template. Must be non-null and non-empty.
Must be unique for this index schema element.
Must not contain the dot ('.') character.dslFinalStep - A final step in the index field type DSL allowing the retrieval of an IndexFieldType.IndexSchemaFieldTemplateOptionsStep<?> fieldTemplate(String templateName, Function<? super IndexFieldTypeFactory,? extends IndexFieldTypeFinalStep<?>> typeContributor)
Best used with lambda expressions.
templateName - The name of the template. Must be non-null and non-empty.
Must be unique for this index schema element.
Must not contain the dot ('.') character.typeContributor - A function that will use the factory passed in parameter to create a type,
returning the final step in the predicate DSL.
Should generally be a lambda expression.default IndexSchemaFieldTemplateOptionsStep<?> objectFieldTemplate(String templateName)
templateName - The name of the template. Must be non-null and non-empty.
Must be unique for this index schema element.
Must not contain the dot ('.') character.IndexSchemaObjectField, where the field can be defined in more details,
in particular by adding new child fields to it,
and where ultimately a a reference to the field can be obtained.IndexSchemaFieldTemplateOptionsStep<?> objectFieldTemplate(String templateName, ObjectFieldStorage storage)
templateName - The name of the template. Must be non-null and non-empty.
Must be unique for this index schema element.
Must not contain the dot ('.') character.storage - The storage type.IndexSchemaObjectField, where the field can be defined in more details,
in particular by adding new child fields to it,
and where ultimately a a reference to the field can be obtained.ObjectFieldStorageCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.