public final class IndexSchemaFieldDefinitionHelper<F> extends Object
Constructor and Description |
---|
IndexSchemaFieldDefinitionHelper(IndexSchemaBuildContext schemaContext) |
Modifier and Type | Method and Description |
---|---|
IndexFieldAccessor<F> |
createAccessor() |
void |
initialize(IndexFieldAccessor<F> delegate)
Initialize the field definition, enabling writes to an underlying field.
|
public IndexSchemaFieldDefinitionHelper(IndexSchemaBuildContext schemaContext)
public IndexFieldAccessor<F> createAccessor()
initialized
) accessorpublic void initialize(IndexFieldAccessor<F> delegate)
This method may or may not be called during bootstrap; if it isn't called, writes triggered by the mapper through the accessor won't have any effect.
delegate
- The delegate to use when writing to the accessor returned by createAccessor()
.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.