public final class IndexSchemaFieldDefinitionHelper<F> extends Object
Constructor and Description |
---|
IndexSchemaFieldDefinitionHelper(IndexSchemaContext schemaContext,
Class<F> indexFieldType) |
IndexSchemaFieldDefinitionHelper(IndexSchemaContext schemaContext,
Class<F> indexFieldType,
ToIndexFieldValueConverter<F,? extends F> identityToIndexConverter) |
Modifier and Type | Method and Description |
---|---|
IndexFieldAccessor<F> |
createAccessor() |
UserIndexFieldConverter<F> |
createUserIndexFieldConverter() |
void |
dslConverter(ToIndexFieldValueConverter<?,? extends F> toIndexConverter) |
IndexSchemaContext |
getSchemaContext() |
void |
initialize(IndexFieldAccessor<F> delegate)
Initialize the field definition, enabling writes to an underlying field.
|
void |
projectionConverter(FromIndexFieldValueConverter<? super F,?> fromIndexConverter) |
public IndexSchemaFieldDefinitionHelper(IndexSchemaContext schemaContext, Class<F> indexFieldType)
public IndexSchemaFieldDefinitionHelper(IndexSchemaContext schemaContext, Class<F> indexFieldType, ToIndexFieldValueConverter<F,? extends F> identityToIndexConverter)
public IndexSchemaContext getSchemaContext()
public void dslConverter(ToIndexFieldValueConverter<?,? extends F> toIndexConverter)
public void projectionConverter(FromIndexFieldValueConverter<? super F,?> fromIndexConverter)
public IndexFieldAccessor<F> createAccessor()
initialized
) accessorpublic UserIndexFieldConverter<F> createUserIndexFieldConverter()
IndexSchemaFieldTypedContext.dslConverter(ToIndexFieldValueConverter)
public 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-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.