public class SimpleMongoMapper extends Object implements MongoMapper
| Constructor and Description |
|---|
SimpleMongoMapper(String... fields) |
| Modifier and Type | Method and Description |
|---|---|
org.bson.Document |
toDocument(ITuple tuple)
Converts a Tuple to a Document.
|
org.bson.Document |
toDocumentByKeys(List<Object> keys)
Converts a keys to a Document.
|
SimpleMongoMapper |
withFields(String... fields) |
public SimpleMongoMapper(String... fields)
public org.bson.Document toDocument(ITuple tuple)
MongoMapperConverts a Tuple to a Document.
toDocument in interface MongoMappertuple - the incoming tuplepublic org.bson.Document toDocumentByKeys(List<Object> keys)
MongoMapperConverts a keys to a Document.
toDocumentByKeys in interface MongoMapperkeys - the trident keyspublic SimpleMongoMapper withFields(String... fields)
Copyright © 2021 The Apache Software Foundation. All rights reserved.