Example usage for com.mongodb DBDecoder decode

List of usage examples for com.mongodb DBDecoder decode

Introduction

In this page you can find the example usage for com.mongodb DBDecoder decode.

Prototype

DBObject decode(byte[] bytes, DBCollection collection);

Source Link

Document

Decode a single DBObject belonging to the given collection from the given array of bytes.

Usage

From source file:org.jongo.bench.DecoderBench.java

License:Apache License

private DBObject decode(DBDecoderFactory factory) {
    DBDecoder decoder = factory.create();
    return decoder.decode(FRIEND_AS_BYTE, (DBCollection) null);
}