Class: VertxMongo::MongoClient
- Inherits:
-
Object
- Object
- VertxMongo::MongoClient
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb
Overview
Some of the operations might change _id field of passed document.
Direct Known Subclasses
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary (collapse)
- + (Boolean) accept?(obj)
-
+ (::VertxMongo::MongoClient) create(vertx = nil, config = nil)
Create a Mongo client which maintains its own data source.
- + (::VertxMongo::MongoClient) create_non_shared(vertx = nil, config = nil)
-
+ (::VertxMongo::MongoClient) create_shared(vertx = nil, config = nil, dataSourceName = nil)
Create a Mongo client which shares its data source with any other Mongo clients created with the same data source name.
-
+ (Object) DEFAULT_DB_NAME
The name of the default database.
-
+ (Object) DEFAULT_POOL_NAME
The name of the default pool.
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)
Instance Method Summary (collapse)
-
- (::Vertx::ReadStream) aggregate(collection = nil, pipeline = nil)
Run aggregate MongoDB command with default Hash.
-
- (::Vertx::ReadStream) aggregate_with_options(collection = nil, pipeline = nil, options = nil)
Run aggregate MongoDB command.
-
- (self) bulk_write(collection = nil, operations = nil) { ... }
Execute a bulk operation.
-
- (self) bulk_write_with_options(collection = nil, operations = nil, bulkWriteOptions = nil) { ... }
Execute a bulk operation with the specified write options.
-
- (void) close
Close the client and release its resources.
-
- (self) count(collection = nil, query = nil) { ... }
Count matching documents in a collection.
-
- (self) create_collection(collectionName = nil) { ... }
Create a new collection.
-
- (self) create_index(collection = nil, key = nil) { ... }
Creates an index.
-
- (self) create_index_with_options(collection = nil, key = nil, options = nil) { ... }
Creates an index.
-
- (self) distinct(collection = nil, fieldName = nil, resultClassname = nil) { ... }
Gets the distinct values of the specified field name.
-
- (::Vertx::ReadStream) distinct_batch(collection = nil, fieldName = nil, resultClassname = nil)
Gets the distinct values of the specified field name.
-
- (::Vertx::ReadStream) distinct_batch_with_query(collection = nil, fieldName = nil, resultClassname = nil, query = nil, batchSize = nil)
Gets the distinct values of the specified field name filtered by specified query.
-
- (self) distinct_with_query(collection = nil, fieldName = nil, resultClassname = nil, query = nil) { ... }
Gets the distinct values of the specified field name filtered by specified query.
-
- (self) drop_collection(collection = nil) { ... }
Drop a collection.
-
- (self) drop_index(collection = nil, indexName = nil) { ... }
Drops the index given its name.
-
- (self) find(collection = nil, query = nil) { ... }
Find matching documents in the specified collection.
-
- (::Vertx::ReadStream) find_batch(collection = nil, query = nil)
Find matching documents in the specified collection.
-
- (::Vertx::ReadStream) find_batch_with_options(collection = nil, query = nil, options = nil)
Find matching documents in the specified collection, specifying options.
-
- (self) find_one(collection = nil, query = nil, fields = nil) { ... }
Find a single matching document in the specified collection This operation might change _id field of query parameter.
-
- (self) find_one_and_delete(collection = nil, query = nil) { ... }
Find a single matching document in the specified collection and delete it.
-
- (self) find_one_and_delete_with_options(collection = nil, query = nil, findOptions = nil) { ... }
Find a single matching document in the specified collection and delete it.
-
- (self) find_one_and_replace(collection = nil, query = nil, replace = nil) { ... }
Find a single matching document in the specified collection and replace it.
-
- (self) find_one_and_replace_with_options(collection = nil, query = nil, replace = nil, findOptions = nil, updateOptions = nil) { ... }
Find a single matching document in the specified collection and replace it.
-
- (self) find_one_and_update(collection = nil, query = nil, update = nil) { ... }
Find a single matching document in the specified collection and update it.
-
- (self) find_one_and_update_with_options(collection = nil, query = nil, update = nil, findOptions = nil, updateOptions = nil) { ... }
Find a single matching document in the specified collection and update it.
-
- (self) find_with_options(collection = nil, query = nil, options = nil) { ... }
Find matching documents in the specified collection, specifying options.
-
- (self) get_collections { ... }
Get a list of all collections in the database.
-
- (self) insert(collection = nil, document = nil) { ... }
Insert a document in the specified collection This operation might change _id field of document parameter.
-
- (self) insert_with_options(collection = nil, document = nil, writeOption = nil) { ... }
Insert a document in the specified collection with the specified write option This operation might change _id field of document parameter.
-
- (self) list_indexes(collection = nil) { ... }
Get all the indexes in this collection.
-
- (self) remove(collection = nil, query = nil) { ... }
Remove matching documents from a collection.
-
- (self) remove_document(collection = nil, query = nil) { ... }
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result.
-
- (self) remove_document_with_options(collection = nil, query = nil, writeOption = nil) { ... }
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result.
-
- (self) remove_documents(collection = nil, query = nil) { ... }
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result.
-
- (self) remove_documents_with_options(collection = nil, query = nil, writeOption = nil) { ... }
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result.
-
- (self) remove_one(collection = nil, query = nil) { ... }
Remove a single matching document from a collection.
-
- (self) remove_one_with_options(collection = nil, query = nil, writeOption = nil) { ... }
Remove a single matching document from a collection with the specified write option.
-
- (self) remove_with_options(collection = nil, query = nil, writeOption = nil) { ... }
Remove matching documents from a collection with the specified write option.
-
- (self) replace(collection = nil, query = nil, replace = nil) { ... }
Replace matching documents in the specified collection This operation might change _id field of replace parameter.
-
- (self) replace_documents(collection = nil, query = nil, replace = nil) { ... }
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result.
-
- (self) replace_documents_with_options(collection = nil, query = nil, replace = nil, options = nil) { ... }
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result.
-
- (self) replace_with_options(collection = nil, query = nil, replace = nil, options = nil) { ... }
Replace matching documents in the specified collection, specifying options This operation might change _id field of replace parameter.
-
- (self) run_command(commandName = nil, command = nil) { ... }
Run an arbitrary MongoDB command.
-
- (self) save(collection = nil, document = nil) { ... }
Save a document in the specified collection This operation might change _id field of document parameter.
-
- (self) save_with_options(collection = nil, document = nil, writeOption = nil) { ... }
Save a document in the specified collection with the specified write option This operation might change _id field of document parameter.
-
- (self) update(collection = nil, query = nil, update = nil) { ... }
Update matching documents in the specified collection.
-
- (self) update_collection(collection = nil, query = nil, update = nil) { ... }
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result.
-
- (self) update_collection_with_options(collection = nil, query = nil, update = nil, options = nil) { ... }
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result.
-
- (self) update_with_options(collection = nil, query = nil, update = nil, options = nil) { ... }
Update matching documents in the specified collection, specifying options.
Class Method Details
+ (Boolean) accept?(obj)
21 22 23 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 21 def @@j_api_type.accept?(obj) obj.class == MongoClient end |
+ (::VertxMongo::MongoClient) create(vertx = nil, config = nil)
49 50 51 52 53 54 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 49 def self.create(vertx=nil,config=nil) if vertx.class.method_defined?(:j_del) && config.class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:create, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config)),::VertxMongo::MongoClient) end raise ArgumentError, "Invalid arguments when calling create(#{vertx},#{config})" end |
+ (::VertxMongo::MongoClient) create_non_shared(vertx = nil, config = nil)
39 40 41 42 43 44 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 39 def self.create_non_shared(vertx=nil,config=nil) if vertx.class.method_defined?(:j_del) && config.class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createNonShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config)),::VertxMongo::MongoClient) end raise ArgumentError, "Invalid arguments when calling create_non_shared(#{vertx},#{config})" end |
+ (::VertxMongo::MongoClient) create_shared(vertx = nil, config = nil, dataSourceName = nil)
61 62 63 64 65 66 67 68 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 61 def self.create_shared(vertx=nil,config=nil,dataSourceName=nil) if vertx.class.method_defined?(:j_del) && config.class == Hash && !block_given? && dataSourceName == nil return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config)),::VertxMongo::MongoClient) elsif vertx.class.method_defined?(:j_del) && config.class == Hash && dataSourceName.class == String && !block_given? return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtMongo::MongoClient.java_method(:createShared, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::java.lang.String.java_class]).call(vertx.j_del,::Vertx::Util::Utils.to_json_object(config),dataSourceName),::VertxMongo::MongoClient) end raise ArgumentError, "Invalid arguments when calling create_shared(#{vertx},#{config},#{dataSourceName})" end |
+ (Object) DEFAULT_DB_NAME
718 719 720 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 718 def self.DEFAULT_DB_NAME Java::IoVertxExtMongo::MongoClient.DEFAULT_DB_NAME end |
+ (Object) DEFAULT_POOL_NAME
714 715 716 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 714 def self.DEFAULT_POOL_NAME Java::IoVertxExtMongo::MongoClient.DEFAULT_POOL_NAME end |
+ (Object) j_api_type
30 31 32 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 30 def self.j_api_type @@j_api_type end |
+ (Object) j_class
33 34 35 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 33 def self.j_class Java::IoVertxExtMongo::MongoClient.java_class end |
+ (Object) unwrap(obj)
27 28 29 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 27 def @@j_api_type.unwrap(obj) obj.j_del end |
+ (Object) wrap(obj)
24 25 26 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 24 def @@j_api_type.wrap(obj) MongoClient.new(obj) end |
Instance Method Details
- (::Vertx::ReadStream) aggregate(collection = nil, pipeline = nil)
688 689 690 691 692 693 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 688 def aggregate(collection=nil,pipeline=nil) if collection.class == String && pipeline.class == Array && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:aggregate, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonArray.java_class]).call(collection,::Vertx::Util::Utils.to_json_array(pipeline)),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling aggregate(#{collection},#{pipeline})" end |
- (::Vertx::ReadStream) aggregate_with_options(collection = nil, pipeline = nil, options = nil)
699 700 701 702 703 704 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 699 def (collection=nil,pipeline=nil,=nil) if collection.class == String && pipeline.class == Array && .class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:aggregateWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonArray.java_class,Java::IoVertxExtMongo::AggregateOptions.java_class]).call(collection,::Vertx::Util::Utils.to_json_array(pipeline),Java::IoVertxExtMongo::AggregateOptions.new(::Vertx::Util::Utils.to_json_object())),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling aggregate_with_options(#{collection},#{pipeline},#{})" end |
- (self) bulk_write(collection = nil, operations = nil) { ... }
244 245 246 247 248 249 250 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 244 def bulk_write(collection=nil,operations=nil) if collection.class == String && operations.class == Array && block_given? @j_del.java_method(:bulkWrite, [Java::java.lang.String.java_class,Java::JavaUtil::List.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,operations.map { |element| Java::IoVertxExtMongo::BulkOperation.new(::Vertx::Util::Utils.to_json_object(element)) },(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling bulk_write(#{collection},#{operations})" end |
- (self) bulk_write_with_options(collection = nil, operations = nil, bulkWriteOptions = nil) { ... }
258 259 260 261 262 263 264 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 258 def (collection=nil,operations=nil,bulkWriteOptions=nil) if collection.class == String && operations.class == Array && bulkWriteOptions.class == Hash && block_given? @j_del.java_method(:bulkWriteWithOptions, [Java::java.lang.String.java_class,Java::JavaUtil::List.java_class,Java::IoVertxExtMongo::BulkWriteOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,operations.map { |element| Java::IoVertxExtMongo::BulkOperation.new(::Vertx::Util::Utils.to_json_object(element)) },Java::IoVertxExtMongo::BulkWriteOptions.new(::Vertx::Util::Utils.to_json_object(bulkWriteOptions)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling bulk_write_with_options(#{collection},#{operations},#{bulkWriteOptions})" end |
- (void) close
This method returns an undefined value.
Close the client and release its resources
707 708 709 710 711 712 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 707 def close if !block_given? return @j_del.java_method(:close, []).call() end raise ArgumentError, "Invalid arguments when calling close()" end |
- (self) count(collection = nil, query = nil) { ... }
426 427 428 429 430 431 432 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 426 def count(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:count, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) })) return self end raise ArgumentError, "Invalid arguments when calling count(#{collection},#{query})" end |
- (self) create_collection(collectionName = nil) { ... }
537 538 539 540 541 542 543 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 537 def create_collection(collectionName=nil) if collectionName.class == String && block_given? @j_del.java_method(:createCollection, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(collectionName,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling create_collection(#{collectionName})" end |
- (self) create_index(collection = nil, key = nil) { ... }
570 571 572 573 574 575 576 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 570 def create_index(collection=nil,key=nil) if collection.class == String && key.class == Hash && block_given? @j_del.java_method(:createIndex, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(key),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling create_index(#{collection},#{key})" end |
- (self) create_index_with_options(collection = nil, key = nil, options = nil) { ... }
583 584 585 586 587 588 589 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 583 def (collection=nil,key=nil,=nil) if collection.class == String && key.class == Hash && .class == Hash && block_given? @j_del.java_method(:createIndexWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::IndexOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(key),Java::IoVertxExtMongo::IndexOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling create_index_with_options(#{collection},#{key},#{})" end |
- (self) distinct(collection = nil, fieldName = nil, resultClassname = nil) { ... }
632 633 634 635 636 637 638 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 632 def distinct(collection=nil,fieldName=nil,resultClassname=nil) if collection.class == String && fieldName.class == String && resultClassname.class == String && block_given? @j_del.java_method(:distinct, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,fieldName,resultClassname,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling distinct(#{collection},#{fieldName},#{resultClassname})" end |
- (::Vertx::ReadStream) distinct_batch(collection = nil, fieldName = nil, resultClassname = nil)
661 662 663 664 665 666 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 661 def distinct_batch(collection=nil,fieldName=nil,resultClassname=nil) if collection.class == String && fieldName.class == String && resultClassname.class == String && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatch, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class]).call(collection,fieldName,resultClassname),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling distinct_batch(#{collection},#{fieldName},#{resultClassname})" end |
- (::Vertx::ReadStream) distinct_batch_with_query(collection = nil, fieldName = nil, resultClassname = nil, query = nil, batchSize = nil)
676 677 678 679 680 681 682 683 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 676 def distinct_batch_with_query(collection=nil,fieldName=nil,resultClassname=nil,query=nil,batchSize=nil) if collection.class == String && fieldName.class == String && resultClassname.class == String && query.class == Hash && !block_given? && batchSize == nil return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatchWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(collection,fieldName,resultClassname,::Vertx::Util::Utils.to_json_object(query)),::Vertx::ReadStreamImpl, nil) elsif collection.class == String && fieldName.class == String && resultClassname.class == String && query.class == Hash && batchSize.class == Fixnum && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:distinctBatchWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::int.java_class]).call(collection,fieldName,resultClassname,::Vertx::Util::Utils.to_json_object(query),batchSize),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling distinct_batch_with_query(#{collection},#{fieldName},#{resultClassname},#{query},#{batchSize})" end |
- (self) distinct_with_query(collection = nil, fieldName = nil, resultClassname = nil, query = nil) { ... }
647 648 649 650 651 652 653 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 647 def distinct_with_query(collection=nil,fieldName=nil,resultClassname=nil,query=nil) if collection.class == String && fieldName.class == String && resultClassname.class == String && query.class == Hash && block_given? @j_del.java_method(:distinctWithQuery, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,fieldName,resultClassname,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling distinct_with_query(#{collection},#{fieldName},#{resultClassname},#{query})" end |
- (self) drop_collection(collection = nil) { ... }
558 559 560 561 562 563 564 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 558 def drop_collection(collection=nil) if collection.class == String && block_given? @j_del.java_method(:dropCollection, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling drop_collection(#{collection})" end |
- (self) drop_index(collection = nil, indexName = nil) { ... }
606 607 608 609 610 611 612 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 606 def drop_index(collection=nil,indexName=nil) if collection.class == String && indexName.class == String && block_given? @j_del.java_method(:dropIndex, [Java::java.lang.String.java_class,Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,indexName,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling drop_index(#{collection},#{indexName})" end |
- (self) find(collection = nil, query = nil) { ... }
270 271 272 273 274 275 276 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 270 def find(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:find, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt != nil ? JSON.parse(elt.encode) : nil } : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find(#{collection},#{query})" end |
- (::Vertx::ReadStream) find_batch(collection = nil, query = nil)
282 283 284 285 286 287 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 282 def find_batch(collection=nil,query=nil) if collection.class == String && query.class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:findBatch, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query)),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling find_batch(#{collection},#{query})" end |
- (::Vertx::ReadStream) find_batch_with_options(collection = nil, query = nil, options = nil)
307 308 309 310 311 312 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 307 def (collection=nil,query=nil,=nil) if collection.class == String && query.class == Hash && .class == Hash && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:findBatchWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object())),::Vertx::ReadStreamImpl, nil) end raise ArgumentError, "Invalid arguments when calling find_batch_with_options(#{collection},#{query},#{})" end |
- (self) find_one(collection = nil, query = nil, fields = nil) { ... }
This operation might change _id field of query parameter
321 322 323 324 325 326 327 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 321 def find_one(collection=nil,query=nil,fields=nil) if collection.class == String && query.class == Hash && fields.class == Hash && block_given? @j_del.java_method(:findOne, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(fields),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one(#{collection},#{query},#{fields})" end |
- (self) find_one_and_delete(collection = nil, query = nil) { ... }
This operation might change _id field of query parameter
399 400 401 402 403 404 405 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 399 def find_one_and_delete(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:findOneAndDelete, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_delete(#{collection},#{query})" end |
- (self) find_one_and_delete_with_options(collection = nil, query = nil, findOptions = nil) { ... }
This operation might change _id field of query parameter
414 415 416 417 418 419 420 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 414 def (collection=nil,query=nil,findOptions=nil) if collection.class == String && query.class == Hash && findOptions.class == Hash && block_given? @j_del.java_method(:findOneAndDeleteWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(findOptions)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_delete_with_options(#{collection},#{query},#{findOptions})" end |
- (self) find_one_and_replace(collection = nil, query = nil, replace = nil) { ... }
This operation might change _id field of query parameter
368 369 370 371 372 373 374 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 368 def find_one_and_replace(collection=nil,query=nil,replace=nil) if collection.class == String && query.class == Hash && replace.class == Hash && block_given? @j_del.java_method(:findOneAndReplace, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_replace(#{collection},#{query},#{replace})" end |
- (self) find_one_and_replace_with_options(collection = nil, query = nil, replace = nil, findOptions = nil, updateOptions = nil) { ... }
This operation might change _id field of query parameter
385 386 387 388 389 390 391 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 385 def (collection=nil,query=nil,replace=nil,findOptions=nil,updateOptions=nil) if collection.class == String && query.class == Hash && replace.class == Hash && findOptions.class == Hash && updateOptions.class == Hash && block_given? @j_del.java_method(:findOneAndReplaceWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(findOptions)),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(updateOptions)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_replace_with_options(#{collection},#{query},#{replace},#{findOptions},#{updateOptions})" end |
- (self) find_one_and_update(collection = nil, query = nil, update = nil) { ... }
This operation might change _id field of query parameter
336 337 338 339 340 341 342 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 336 def find_one_and_update(collection=nil,query=nil,update=nil) if collection.class == String && query.class == Hash && update.class == Hash && block_given? @j_del.java_method(:findOneAndUpdate, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_update(#{collection},#{query},#{update})" end |
- (self) find_one_and_update_with_options(collection = nil, query = nil, update = nil, findOptions = nil, updateOptions = nil) { ... }
This operation might change _id field of query parameter
353 354 355 356 357 358 359 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 353 def (collection=nil,query=nil,update=nil,findOptions=nil,updateOptions=nil) if collection.class == String && query.class == Hash && update.class == Hash && findOptions.class == Hash && updateOptions.class == Hash && block_given? @j_del.java_method(:findOneAndUpdateWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object(findOptions)),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object(updateOptions)),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_one_and_update_with_options(#{collection},#{query},#{update},#{findOptions},#{updateOptions})" end |
- (self) find_with_options(collection = nil, query = nil, options = nil) { ... }
294 295 296 297 298 299 300 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 294 def (collection=nil,query=nil,=nil) if collection.class == String && query.class == Hash && .class == Hash && block_given? @j_del.java_method(:findWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::FindOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::FindOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt != nil ? JSON.parse(elt.encode) : nil } : nil) })) return self end raise ArgumentError, "Invalid arguments when calling find_with_options(#{collection},#{query},#{})" end |
- (self) get_collections { ... }
547 548 549 550 551 552 553 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 547 def get_collections if block_given? @j_del.java_method(:getCollections, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result.to_a.map { |elt| elt } : nil) })) return self end raise ArgumentError, "Invalid arguments when calling get_collections()" end |
- (self) insert(collection = nil, document = nil) { ... }
This operation might change _id field of document parameter
105 106 107 108 109 110 111 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 105 def insert(collection=nil,document=nil) if collection.class == String && document.class == Hash && block_given? @j_del.java_method(:insert, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(document),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) })) return self end raise ArgumentError, "Invalid arguments when calling insert(#{collection},#{document})" end |
- (self) insert_with_options(collection = nil, document = nil, writeOption = nil) { ... }
This operation might change _id field of document parameter
120 121 122 123 124 125 126 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 120 def (collection=nil,document=nil,writeOption=nil) if collection.class == String && document.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:insertWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(document),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) })) return self end raise ArgumentError, "Invalid arguments when calling insert_with_options(#{collection},#{document},#{writeOption})" end |
- (self) list_indexes(collection = nil) { ... }
594 595 596 597 598 599 600 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 594 def list_indexes(collection=nil) if collection.class == String && block_given? @j_del.java_method(:listIndexes, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling list_indexes(#{collection})" end |
- (self) remove(collection = nil, query = nil) { ... }
438 439 440 441 442 443 444 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 438 def remove(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:remove, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove(#{collection},#{query})" end |
- (self) remove_document(collection = nil, query = nil) { ... }
500 501 502 503 504 505 506 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 500 def remove_document(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:removeDocument, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_document(#{collection},#{query})" end |
- (self) remove_document_with_options(collection = nil, query = nil, writeOption = nil) { ... }
526 527 528 529 530 531 532 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 526 def (collection=nil,query=nil,writeOption=nil) if collection.class == String && query.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:removeDocumentWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_document_with_options(#{collection},#{query},#{writeOption})" end |
- (self) remove_documents(collection = nil, query = nil) { ... }
450 451 452 453 454 455 456 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 450 def remove_documents(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:removeDocuments, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_documents(#{collection},#{query})" end |
- (self) remove_documents_with_options(collection = nil, query = nil, writeOption = nil) { ... }
476 477 478 479 480 481 482 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 476 def (collection=nil,query=nil,writeOption=nil) if collection.class == String && query.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:removeDocumentsWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_documents_with_options(#{collection},#{query},#{writeOption})" end |
- (self) remove_one(collection = nil, query = nil) { ... }
488 489 490 491 492 493 494 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 488 def remove_one(collection=nil,query=nil) if collection.class == String && query.class == Hash && block_given? @j_del.java_method(:removeOne, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_one(#{collection},#{query})" end |
- (self) remove_one_with_options(collection = nil, query = nil, writeOption = nil) { ... }
513 514 515 516 517 518 519 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 513 def (collection=nil,query=nil,writeOption=nil) if collection.class == String && query.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:removeOneWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_one_with_options(#{collection},#{query},#{writeOption})" end |
- (self) remove_with_options(collection = nil, query = nil, writeOption = nil) { ... }
463 464 465 466 467 468 469 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 463 def (collection=nil,query=nil,writeOption=nil) if collection.class == String && query.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:removeWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling remove_with_options(#{collection},#{query},#{writeOption})" end |
- (self) replace(collection = nil, query = nil, replace = nil) { ... }
This operation might change _id field of replace parameter
189 190 191 192 193 194 195 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 189 def replace(collection=nil,query=nil,replace=nil) if collection.class == String && query.class == Hash && replace.class == Hash && block_given? @j_del.java_method(:replace, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling replace(#{collection},#{query},#{replace})" end |
- (self) replace_documents(collection = nil, query = nil, replace = nil) { ... }
202 203 204 205 206 207 208 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 202 def replace_documents(collection=nil,query=nil,replace=nil) if collection.class == String && query.class == Hash && replace.class == Hash && block_given? @j_del.java_method(:replaceDocuments, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling replace_documents(#{collection},#{query},#{replace})" end |
- (self) replace_documents_with_options(collection = nil, query = nil, replace = nil, options = nil) { ... }
232 233 234 235 236 237 238 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 232 def (collection=nil,query=nil,replace=nil,=nil) if collection.class == String && query.class == Hash && replace.class == Hash && .class == Hash && block_given? @j_del.java_method(:replaceDocumentsWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling replace_documents_with_options(#{collection},#{query},#{replace},#{})" end |
- (self) replace_with_options(collection = nil, query = nil, replace = nil, options = nil) { ... }
This operation might change _id field of replace parameter
218 219 220 221 222 223 224 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 218 def (collection=nil,query=nil,replace=nil,=nil) if collection.class == String && query.class == Hash && replace.class == Hash && .class == Hash && block_given? @j_del.java_method(:replaceWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(replace),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling replace_with_options(#{collection},#{query},#{replace},#{})" end |
- (self) run_command(commandName = nil, command = nil) { ... }
618 619 620 621 622 623 624 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 618 def run_command(commandName=nil,command=nil) if commandName.class == String && command.class == Hash && block_given? @j_del.java_method(:runCommand, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(commandName,::Vertx::Util::Utils.to_json_object(command),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling run_command(#{commandName},#{command})" end |
- (self) save(collection = nil, document = nil) { ... }
This operation might change _id field of document parameter
76 77 78 79 80 81 82 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 76 def save(collection=nil,document=nil) if collection.class == String && document.class == Hash && block_given? @j_del.java_method(:save, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(document),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) })) return self end raise ArgumentError, "Invalid arguments when calling save(#{collection},#{document})" end |
- (self) save_with_options(collection = nil, document = nil, writeOption = nil) { ... }
This operation might change _id field of document parameter
91 92 93 94 95 96 97 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 91 def (collection=nil,document=nil,writeOption=nil) if collection.class == String && document.class == Hash && writeOption.class == Symbol && block_given? @j_del.java_method(:saveWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::WriteOption.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(document),Java::IoVertxExtMongo::WriteOption.valueOf(writeOption.to_s),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result : nil) })) return self end raise ArgumentError, "Invalid arguments when calling save_with_options(#{collection},#{document},#{writeOption})" end |
- (self) update(collection = nil, query = nil, update = nil) { ... }
133 134 135 136 137 138 139 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 133 def update(collection=nil,query=nil,update=nil) if collection.class == String && query.class == Hash && update.class == Hash && block_given? @j_del.java_method(:update, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling update(#{collection},#{query},#{update})" end |
- (self) update_collection(collection = nil, query = nil, update = nil) { ... }
146 147 148 149 150 151 152 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 146 def update_collection(collection=nil,query=nil,update=nil) if collection.class == String && query.class == Hash && update.class == Hash && block_given? @j_del.java_method(:updateCollection, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling update_collection(#{collection},#{query},#{update})" end |
- (self) update_collection_with_options(collection = nil, query = nil, update = nil, options = nil) { ... }
174 175 176 177 178 179 180 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 174 def (collection=nil,query=nil,update=nil,=nil) if collection.class == String && query.class == Hash && update.class == Hash && .class == Hash && block_given? @j_del.java_method(:updateCollectionWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil, ar.succeeded ? ar.result != nil ? JSON.parse(ar.result.toJson.encode) : nil : nil) })) return self end raise ArgumentError, "Invalid arguments when calling update_collection_with_options(#{collection},#{query},#{update},#{})" end |
- (self) update_with_options(collection = nil, query = nil, update = nil, options = nil) { ... }
160 161 162 163 164 165 166 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mongo/mongo_client.rb', line 160 def (collection=nil,query=nil,update=nil,=nil) if collection.class == String && query.class == Hash && update.class == Hash && .class == Hash && block_given? @j_del.java_method(:updateWithOptions, [Java::java.lang.String.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxExtMongo::UpdateOptions.java_class,Java::IoVertxCore::Handler.java_class]).call(collection,::Vertx::Util::Utils.to_json_object(query),::Vertx::Util::Utils.to_json_object(update),Java::IoVertxExtMongo::UpdateOptions.new(::Vertx::Util::Utils.to_json_object()),(Proc.new { |ar| yield(ar.failed ? ar.cause : nil) })) return self end raise ArgumentError, "Invalid arguments when calling update_with_options(#{collection},#{query},#{update},#{})" end |