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.
|
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.
|
<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 new 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 new 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 accessors for the new field.relativeFieldName - The relative name of the new 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 new 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 new 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.ObjectFieldStorageCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.