public interface IndexSchemaElement
| Modifier and Type | Method and Description |
|---|---|
<F> IndexSchemaFieldTerminalContext<IndexFieldAccessor<F>> |
field(String relativeFieldName,
Function<IndexFieldTypeFactoryContext,IndexFieldType<F>> typeContributor)
Add a field to this index schema element with the type to be defined by the given function.
|
<F> IndexSchemaFieldTerminalContext<IndexFieldAccessor<F>> |
field(String relativeFieldName,
IndexFieldType<F> type)
Add a field to this index schema element with the given type.
|
default <F> IndexSchemaFieldTerminalContext<IndexFieldAccessor<F>> |
field(String relativeFieldName,
IndexFieldTypeTerminalContext<F> terminalContext)
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> IndexSchemaFieldTerminalContext<IndexFieldAccessor<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.default <F> IndexSchemaFieldTerminalContext<IndexFieldAccessor<F>> field(String relativeFieldName, IndexFieldTypeTerminalContext<F> terminalContext)
F - The type of values held by the field.relativeFieldName - The relative name of the new field.terminalContext - The almost-built type of the new field.<F> IndexSchemaFieldTerminalContext<IndexFieldAccessor<F>> field(String relativeFieldName, Function<IndexFieldTypeFactoryContext,IndexFieldType<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 context passed in parameter to create a IndexFieldType.
Should generally be a lambda expression.default IndexSchemaObjectField objectField(String relativeFieldName)
relativeFieldName - The relative name of the new field.IndexSchemaObjectField objectField(String relativeFieldName, ObjectFieldStorage storage)
relativeFieldName - The relative name of the new field.storage - The storage type.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.