Class BsonMarshaller
java.lang.Object
tech.skworks.tachyon.common.marshaller.BsonMarshaller
- All Implemented Interfaces:
io.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
public class BsonMarshaller
extends Object
implements io.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bson.RawBsonDocumentstatic final BsonMarshaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.RawBsonDocumentparse(InputStream stream) stream(org.bson.RawBsonDocument value) static org.bson.RawBsonDocumenttoRawBsonDocument(org.bson.BsonDocument document)
-
Field Details
-
INSTANCE
-
EMPTY
public static final org.bson.RawBsonDocument EMPTY
-
-
Constructor Details
-
BsonMarshaller
public BsonMarshaller()
-
-
Method Details
-
stream
- Specified by:
streamin interfaceio.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
-
parse
- Specified by:
parsein interfaceio.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
-
toRawBsonDocument
public static org.bson.RawBsonDocument toRawBsonDocument(org.bson.BsonDocument document)
-