DocumentClassMappingContext
class DocumentClassMappingContext
A context object that holds mapping information for document classes and their parent types.
This class encapsulates the documentClassMap and parentTypeMap used during the deserialization of GenericDocument instances into specific document classes.
| See also | |
|---|---|
toDocumentClass |
Summary
Public constructors |
|---|
@ExperimentalAppSearchApiConstructs a new |
Public functions |
|
|---|---|
(Mutable)Map<String!, (Mutable)List<String!>!> |
Returns the document class map. |
(Mutable)Map<String!, (Mutable)List<String!>!> |
Returns the parent type map. |
Public constructors
DocumentClassMappingContext
@ExperimentalAppSearchApi
DocumentClassMappingContext(
documentClassMap: (Mutable)Map<String!, (Mutable)List<String!>!>?,
parentTypeMap: (Mutable)Map<String!, (Mutable)List<String!>!>?
)
Constructs a new DocumentClassMappingContext.
| Parameters | |
|---|---|
documentClassMap: (Mutable)Map<String!, (Mutable)List<String!>!>? |
A map from AppSearch's type name specified by |
parentTypeMap: (Mutable)Map<String!, (Mutable)List<String!>!>? |
A map from AppSearch's type name specified by |
Public functions
getDocumentClassMap
@ExperimentalAppSearchApi
fun getDocumentClassMap(): (Mutable)Map<String!, (Mutable)List<String!>!>
Returns the document class map.
getParentTypeMap
@ExperimentalAppSearchApi
fun getParentTypeMap(): (Mutable)Map<String!, (Mutable)List<String!>!>
Returns the parent type map.