Example usage for com.mongodb DBCallback get

List of usage examples for com.mongodb DBCallback get

Introduction

In this page you can find the example usage for com.mongodb DBCallback get.

Prototype

Object get();

Source Link

Document

Returns the finished top-level Document.

Usage

From source file:com.ikanow.infinit.e.data_model.store.CsvGeneratingBsonDecoder.java

License:Open Source License

@Override
public DBObject decode(byte[] b, DBCollection collection) {
    DBCallback cbk = new CsvGeneratingDBCallback(collection);
    cbk.reset();//from  w  w  w .  j  ava2  s .  co  m
    decode(b, cbk);
    appendRecord((DBObject) cbk.get());
    return _emptyObject;
}

From source file:com.ikanow.infinit.e.data_model.store.CsvGeneratingBsonDecoder.java

License:Open Source License

@Override
public DBObject decode(InputStream in, DBCollection collection) throws IOException {
    DBCallback cbk = new CsvGeneratingDBCallback(collection);
    cbk.reset();//from  w ww  . ja v  a2 s .  c  o  m
    decode(in, cbk);
    appendRecord((DBObject) cbk.get());
    return _emptyObject;
}

From source file:com.ikanow.infinit.e.data_model.store.SizeReportingBasicBSONDecoder.java

License:Open Source License

@Override
public DBObject decode(byte[] b, DBCollection collection) {
    DBCallback cbk = getDBCallback(collection);
    cbk.reset();//  www. ja v a2s .co  m
    decode(b, cbk);
    return (DBObject) cbk.get();
}

From source file:com.ikanow.infinit.e.data_model.store.SizeReportingBasicBSONDecoder.java

License:Open Source License

@Override
public DBObject decode(InputStream in, DBCollection collection) throws IOException {
    DBCallback cbk = getDBCallback(collection);
    cbk.reset();/*from  w w w. j a  va2 s .c  om*/
    decode(in, cbk);
    return (DBObject) cbk.get();
}