Class: VertxCassandra::ResultSet

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

Overview

It is like ResultSet, but adapted for Vert.x.

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)


17
18
19
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 17

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

+ (Object) j_api_type



26
27
28
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 26

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



29
30
31
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 29

def self.j_class
  Java::IoVertxCassandra::ResultSet.java_class
end

+ (Object) unwrap(obj)



23
24
25
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 23

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

+ (Object) wrap(obj)



20
21
22
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 20

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

Instance Method Details

- (true, false) exhausted?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


33
34
35
36
37
38
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 33

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

- (self) fetch_more_results { ... }

Yields:

  • handler called when result is fetched

Returns:

  • (self)

Raises:

  • (ArgumentError)


55
56
57
58
59
60
61
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 55

def fetch_more_results
  if block_given?
    @j_del.java_method(:fetchMoreResults, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |ar| yield(ar.failed ? ar.cause : nil) }))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling fetch_more_results()"
end

- (true, false) fully_fetched?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


40
41
42
43
44
45
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 40

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

- (Fixnum) get_available_without_fetching

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


47
48
49
50
51
52
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 47

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

- (true, false) was_applied?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


63
64
65
66
67
68
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-cassandra/result_set.rb', line 63

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