T
- the encoded object type@API.Public public interface OjaiCodec<T>
Modifier and Type | Method and Description |
---|---|
QueryCondition |
decodeCondition(T encodedCondition)
Decodes an instance of <T> into an OJAI
QueryCondition |
Document |
decodeDocument(T encodedDocument)
Decodes an instance of <T> into an OJAI
Document |
DocumentMutation |
decodeMutation(T encodedMutation)
Decodes an instance of <T> into an OJAI
DocumentMutation |
Query |
decodeQuery(T encodedQuery,
Document options)
Decodes an instance of <T> into an OJAI
Query |
T |
encodeCondition(QueryCondition condition)
Encodes an OJAI
QueryCondition into an instance of <T> |
T |
encodeDocument(Document document)
Encodes an OJAI
Document into an instance of <T> |
T |
encodeMutation(DocumentMutation mutation)
Encodes an OJAI
DocumentMutation into an instance of <T> |
T |
encodeQuery(Query query)
Encodes an OJAI
Query into an instance of <T> |
T encodeDocument(@API.NonNullable Document document) throws EncodingException
Document
into an instance of <T>document
- OJAI Document to encodeEncodingException
Document decodeDocument(@API.NonNullable T encodedDocument) throws DecodingException
Document
encodedDocument
- an instance of <T> containing encoded OJAI DocumentDecodingException
T encodeQuery(@API.NonNullable Query query) throws EncodingException
Query
into an instance of <T>query
- OJAI Query to encodeEncodingException
Query decodeQuery(@API.NonNullable T encodedQuery, @API.Nullable Document options) throws DecodingException
Query
encodedQuery
- an instance of <T> containing encoded OJAI QueryDecodingException
T encodeCondition(@API.NonNullable QueryCondition condition) throws EncodingException
QueryCondition
into an instance of <T>condition
- OJAI QueryCondition to encodeEncodingException
QueryCondition decodeCondition(@API.NonNullable T encodedCondition) throws DecodingException
QueryCondition
encodedCondition
- an instance of <T> containing encoded OJAI QueryConditionQueryCondition
DecodingException
T encodeMutation(@API.NonNullable DocumentMutation mutation) throws EncodingException
DocumentMutation
into an instance of <T>condition
- OJAI DocumentMutation to encodeEncodingException
DocumentMutation decodeMutation(@API.NonNullable T encodedMutation) throws DecodingException
DocumentMutation
encodedMutation
- an instance of <T> containing encoded OJAI DocumentMutationDocumentMutation
DecodingException
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.