public class DocMappingBuilder extends Object
Constructor and Description |
---|
DocMappingBuilder(PathProperties paths,
io.ebean.annotation.DocStore docStore)
Create with the document structure paths and docStore deployment annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DocPropertyMapping docMapping)
Add the property mapping.
|
void |
applyMapping()
Apply any override mappings from the top level docStore annotation.
|
Map<String,String> |
collectSortable()
Collect the mapping of properties to 'raw' properties for those marked as sortable.
|
DocumentMapping |
create(String queueId,
String indexName,
String indexType)
Create the document mapping.
|
boolean |
includesPath(String prefix,
String name)
Return true if the path is included in the document.
|
boolean |
includesProperty(String prefix,
String name)
Return true if the property is included in the document.
|
void |
pop()
Pop the nested object or list off the properties stack.
|
void |
push(DocPropertyMapping nested)
Push the nested object or list onto the properties stack.
|
public DocMappingBuilder(PathProperties paths, io.ebean.annotation.DocStore docStore)
public boolean includesProperty(String prefix, String name)
public boolean includesPath(String prefix, String name)
public void add(DocPropertyMapping docMapping)
public void push(DocPropertyMapping nested)
public void pop()
public void applyMapping()
public Map<String,String> collectSortable()
public DocumentMapping create(String queueId, String indexName, String indexType)
Copyright © 2019. All rights reserved.