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)
MongoMapper
toDocument
in interface MongoMapper
tuple
- the incoming tuplepublic org.bson.Document toDocumentByKeys(List<Object> keys)
MongoMapper
toDocumentByKeys
in interface MongoMapper
keys
- the trident keyspublic SimpleMongoMapper withFields(String... fields)
Copyright © 2023 The Apache Software Foundation. All rights reserved.