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 Details

    • INSTANCE

      public static final BsonMarshaller INSTANCE
    • EMPTY

      public static final org.bson.RawBsonDocument EMPTY
  • Constructor Details

    • BsonMarshaller

      public BsonMarshaller()
  • Method Details

    • stream

      public InputStream stream(org.bson.RawBsonDocument value)
      Specified by:
      stream in interface io.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
    • parse

      public org.bson.RawBsonDocument parse(InputStream stream)
      Specified by:
      parse in interface io.grpc.MethodDescriptor.Marshaller<org.bson.RawBsonDocument>
    • toRawBsonDocument

      public static org.bson.RawBsonDocument toRawBsonDocument(org.bson.BsonDocument document)