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