public class MongoDBUtils extends Object
| Constructor and Description |
|---|
MongoDBUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Row |
toRow(com.mongodb.DBObject dbObject,
DataSetHeader header)
Converts a MongoDB data object
DBObject into MetaModel
Row. |
static Row |
toRow(Map<?,?> map,
DataSetHeader header)
Converts a map into MetaModel.
|
public static Row toRow(com.mongodb.DBObject dbObject, DataSetHeader header)
DBObject into MetaModel
Row.dbObject - a MongoDB object storing data.header - a header describing the columns of the data stored.Row result object.public static Row toRow(Map<?,?> map, DataSetHeader header)
map - a map object storing data of a MongoDB document.header - a header describing the columns of the data stored.Row result object.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.