public interface ESPropertyInfo
Modifier and Type | Method and Description |
---|---|
void |
describeProperty(com.alibaba.fastjson.JSONObject description)
Creates the mapping description for this property into the given JSON.
|
default void |
transferOption(String key,
Optional<IndexMode> annotation,
Function<IndexMode,ESOption> mapper,
com.alibaba.fastjson.JSONObject mapping)
Transfers the given option which (via
IndexMode ) to the mapping. |
default void transferOption(String key, Optional<IndexMode> annotation, Function<IndexMode,ESOption> mapper, com.alibaba.fastjson.JSONObject mapping)
IndexMode
) to the mapping.key
- the mapping key to useannotation
- the annotation wrapped as optionalmapper
- the lambda which selects the value to transfermapping
- the target mapping to fillvoid describeProperty(com.alibaba.fastjson.JSONObject description)
description
- the target JSON to fillCopyright © 2018. All rights reserved.