List of usage examples for com.mongodb DBCallback reset
void reset();
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(); decode(b, cbk);/*from ww w . ja va 2 s . c o m*/ 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(); decode(in, cbk);//from w w w. j a v a 2 s.c o m 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(); decode(b, cbk);/*w w w .j a va2s . com*/ 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(); decode(in, cbk);/*from w w w. j a v a 2 s. c o m*/ return (DBObject) cbk.get(); }