public void setMongoProjection (BsonDocument projection) {
      LinkedHashSet<String> fields = new LinkedHashSet<>();
      // iterate over the projection document and add the fields to the fields list only if they are not 0
      for (Map.Entry<String, BsonValue> entry : projection.entrySet()) {
         if (!entry.getValue().isInt32() || entry.getValue().asInt32().getValue() != 0) {
            fields.add(entry.getKey());
         }
      }
      this.mongoProjection = fields;
   }
Maps a given class type to a corresponding SQL type.

@param typeString the class type as a string
@return the corresponding SQL type, or {@link java.sql.Types#OTHER} if no corresponding type is found.
src/main/java/org/replicadb/rowset/MongoDBRowSetImpl.java