T - public abstract class MongoDBOutputOp<T> extends Object implements Operation<T>
| Constructor and Description |
|---|
MongoDBOutputOp() |
MongoDBOutputOp(List<com.mongodb.ServerAddress> seeds) |
| Modifier and Type | Method and Description |
|---|---|
abstract com.mongodb.DBObject |
asDBObject(T obj) |
abstract String |
getCollectionName() |
abstract String |
getDBName() |
void |
perform(T object)
Perform the operation on the given object.
|
public MongoDBOutputOp() throws UnknownHostException
UnknownHostExceptionpublic MongoDBOutputOp(List<com.mongodb.ServerAddress> seeds) throws UnknownHostException
seeds - UnknownHostExceptionpublic abstract String getCollectionName()
public void perform(T object)
Operationpublic abstract com.mongodb.DBObject asDBObject(T obj)
obj -