org.apache.metamodel.mongodb
Class MongoDBUtils

java.lang.Object
  extended by org.apache.metamodel.mongodb.MongoDBUtils

public class MongoDBUtils
extends Object

A utility class for MongoDB module.


Constructor Summary
MongoDBUtils()
           
 
Method Summary
static Row toRow(com.mongodb.DBObject dbObject, DataSetHeader header)
          Converts a MongoDB data object DBObject into MetaModel Row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoDBUtils

public MongoDBUtils()
Method Detail

toRow

public static Row toRow(com.mongodb.DBObject dbObject,
                        DataSetHeader header)
Converts a MongoDB data object DBObject into MetaModel Row.

Parameters:
dbObject - a MongoDB object storing data.
header - a header describing the columns of the data stored.
Returns:
the MetaModel Row result object.


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.