Class: VertxSqlClient::RowIterator

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb

Overview

An iterator for processing rows.

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)

18
19
20
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 18

def @@j_api_type.accept?(obj)
  obj.class == RowIterator
end

+ (Object) j_api_type


27
28
29
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 27

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class


30
31
32
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 30

def self.j_class
  Java::IoVertxSqlclient::RowIterator.java_class
end

+ (Object) unwrap(obj)


24
25
26
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 24

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)


21
22
23
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 21

def @@j_api_type.wrap(obj)
  RowIterator.new(obj)
end

Instance Method Details

- (true, false) has_next?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)

34
35
36
37
38
39
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 34

def has_next?
  if !block_given?
    return @j_del.java_method(:hasNext, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling has_next?()"
end

- (::VertxSqlClient::Row) next

Returns:

Raises:

  • (ArgumentError)

41
42
43
44
45
46
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/row_iterator.rb', line 41

def next
  if !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:next, []).call(),::VertxSqlClient::Row)
  end
  raise ArgumentError, "Invalid arguments when calling next()"
end