Class: ReactivePgClient::Row

Inherits:
Tuple
  • Object
show all
Defined in:
/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Tuple

of, tuple

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)

20
21
22
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 20

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

+ (Object) j_api_type


29
30
31
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 29

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class


32
33
34
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 32

def self.j_class
  Java::IoReactiversePgclient::Row.java_class
end

+ (Object) unwrap(obj)


26
27
28
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 26

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

+ (Object) wrap(obj)


23
24
25
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 23

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

Instance Method Details

- (self) add_boolean(value = nil)

Add a boolean value at the end of the tuple.

Parameters:

  • value (true, false) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

290
291
292
293
294
295
296
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 290

def add_boolean(value=nil)
  if (value.class == TrueClass || value.class == FalseClass) && !block_given?
    @j_del.java_method(:addBoolean, [Java::JavaLang::Boolean.java_class]).call(value)
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_boolean(#{value})"
end

- (self) add_box(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

420
421
422
423
424
425
426
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 420

def add_box(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addBox, [Java::IoReactiversePgclientData::Box.java_class]).call(Java::IoReactiversePgclientData::Box.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_box(#{value})"
end

- (self) add_buffer(value = nil)

Add a buffer value at the end of the tuple.

Parameters:

  • value (::Vertx::Buffer) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

380
381
382
383
384
385
386
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 380

def add_buffer(value=nil)
  if value.class.method_defined?(:j_del) && !block_given?
    @j_del.java_method(:addBuffer, [Java::IoVertxCoreBuffer::Buffer.java_class]).call(value.j_del)
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_buffer(#{value})"
end

- (self) add_circle(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

450
451
452
453
454
455
456
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 450

def add_circle(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addCircle, [Java::IoReactiversePgclientData::Circle.java_class]).call(Java::IoReactiversePgclientData::Circle.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_circle(#{value})"
end

- (self) add_double(value = nil)

Add a double value at the end of the tuple.

Parameters:

  • value (Float) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

350
351
352
353
354
355
356
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 350

def add_double(value=nil)
  if value.class == Float && !block_given?
    @j_del.java_method(:addDouble, [Java::JavaLang::Double.java_class]).call(::Vertx::Util::Utils.to_double(value))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_double(#{value})"
end

- (self) add_float(value = nil)

Add a float value at the end of the tuple.

Parameters:

  • value (Float) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

340
341
342
343
344
345
346
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 340

def add_float(value=nil)
  if value.class == Float && !block_given?
    @j_del.java_method(:addFloat, [Java::JavaLang::Float.java_class]).call(::Vertx::Util::Utils.to_float(value))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_float(#{value})"
end

- (self) add_integer(value = nil)

Add an integer value at the end of the tuple.

Parameters:

  • value (Fixnum) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

320
321
322
323
324
325
326
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 320

def add_integer(value=nil)
  if value.class == Fixnum && !block_given?
    @j_del.java_method(:addInteger, [Java::JavaLang::Integer.java_class]).call(::Vertx::Util::Utils.to_integer(value))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_integer(#{value})"
end

- (self) add_interval(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

460
461
462
463
464
465
466
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 460

def add_interval(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addInterval, [Java::IoReactiversePgclientData::Interval.java_class]).call(Java::IoReactiversePgclientData::Interval.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_interval(#{value})"
end

- (self) add_json(value = nil)

Add a json value at the end of the tuple.

Parameters:

Returns:

  • (self)

Raises:

  • (ArgumentError)

370
371
372
373
374
375
376
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 370

def add_json(value=nil)
  if value.class.method_defined?(:j_del) && !block_given?
    @j_del.java_method(:addJson, [Java::IoReactiversePgclientData::Json.java_class]).call(value.j_del)
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_json(#{value})"
end

- (self) add_line(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

400
401
402
403
404
405
406
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 400

def add_line(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addLine, [Java::IoReactiversePgclientData::Line.java_class]).call(Java::IoReactiversePgclientData::Line.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_line(#{value})"
end

- (self) add_line_segment(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

410
411
412
413
414
415
416
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 410

def add_line_segment(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addLineSegment, [Java::IoReactiversePgclientData::LineSegment.java_class]).call(Java::IoReactiversePgclientData::LineSegment.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_line_segment(#{value})"
end

- (self) add_long(value = nil)

Add a long value at the end of the tuple.

Parameters:

  • value (Fixnum) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

330
331
332
333
334
335
336
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 330

def add_long(value=nil)
  if value.class == Fixnum && !block_given?
    @j_del.java_method(:addLong, [Java::JavaLang::Long.java_class]).call(value)
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_long(#{value})"
end

- (self) add_path(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

430
431
432
433
434
435
436
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 430

def add_path(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addPath, [Java::IoReactiversePgclientData::Path.java_class]).call(Java::IoReactiversePgclientData::Path.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_path(#{value})"
end

- (self) add_point(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

390
391
392
393
394
395
396
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 390

def add_point(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addPoint, [Java::IoReactiversePgclientData::Point.java_class]).call(Java::IoReactiversePgclientData::Point.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_point(#{value})"
end

- (self) add_polygon(value = nil)

Add a value at the end of the tuple.

Parameters:

  • value (Hash) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

440
441
442
443
444
445
446
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 440

def add_polygon(value=nil)
  if value.class == Hash && !block_given?
    @j_del.java_method(:addPolygon, [Java::IoReactiversePgclientData::Polygon.java_class]).call(Java::IoReactiversePgclientData::Polygon.new(::Vertx::Util::Utils.to_json_object(value)))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_polygon(#{value})"
end

- (self) add_short(value = nil)

Add a short value at the end of the tuple.

Parameters:

  • value (Fixnum) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

310
311
312
313
314
315
316
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 310

def add_short(value=nil)
  if value.class == Fixnum && !block_given?
    @j_del.java_method(:addShort, [Java::JavaLang::Short.java_class]).call(::Vertx::Util::Utils.to_short(value))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_short(#{value})"
end

- (self) add_string(value = nil)

Add a string value at the end of the tuple.

Parameters:

  • value (String) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

360
361
362
363
364
365
366
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 360

def add_string(value=nil)
  if value.class == String && !block_given?
    @j_del.java_method(:addString, [Java::java.lang.String.java_class]).call(value)
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_string(#{value})"
end

- (self) add_value(value = nil)

Add an object value at the end of the tuple.

Parameters:

  • value (Object) (defaults to: nil)
    the value

Returns:

  • (self)

Raises:

  • (ArgumentError)

300
301
302
303
304
305
306
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 300

def add_value(value=nil)
  if ::Vertx::Util::unknown_type.accept?(value) && !block_given?
    @j_del.java_method(:addValue, [Java::java.lang.Object.java_class]).call(::Vertx::Util::Utils.to_object(value))
    return self
  end
  raise ArgumentError, "Invalid arguments when calling add_value(#{value})"
end

- (void) clear

This method returns an undefined value.

Raises:

  • (ArgumentError)

475
476
477
478
479
480
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 475

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

- (true, false) getBoolean(pos) - (true, false) getBoolean(name)

Get a boolean value at pos.

Overloads:

  • - (true, false) getBoolean(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (true, false) getBoolean(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (true, false)
    the value or null

Raises:

  • (ArgumentError)

41
42
43
44
45
46
47
48
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 41

def get_boolean?(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getBoolean, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getBoolean, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_boolean?(#{param_1})"
end

- (Hash) getBox(pos) - (Hash) getBox(name)

Get value at pos.

Overloads:

  • - (Hash) getBox(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getBox(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

209
210
211
212
213
214
215
216
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 209

def get_box(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getBox, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getBox, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getBox, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getBox, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_box(#{param_1})"
end

- (::Vertx::Buffer) getBuffer(pos) - (::Vertx::Buffer) getBuffer(name)

Get a buffer value at pos.

Overloads:

  • - (::Vertx::Buffer) getBuffer(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (::Vertx::Buffer) getBuffer(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (::Vertx::Buffer)
    the value or null

Raises:

  • (ArgumentError)

279
280
281
282
283
284
285
286
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 279

def get_buffer(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::int.java_class]).call(param_1),::Vertx::Buffer)
  elsif param_1.class == String && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getBuffer, [Java::java.lang.String.java_class]).call(param_1),::Vertx::Buffer)
  end
  raise ArgumentError, "Invalid arguments when calling get_buffer(#{param_1})"
end

- (Hash) getCircle(pos) - (Hash) getCircle(name)

Get value at pos.

Overloads:

  • - (Hash) getCircle(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getCircle(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

251
252
253
254
255
256
257
258
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 251

def get_circle(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getCircle, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getCircle, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getCircle, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getCircle, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_circle(#{param_1})"
end

- (String) get_column_name(pos = nil)

Get a column name at pos.

Parameters:

  • pos (Fixnum) (defaults to: nil)
    the position

Returns:

  • (String)
    the column name or null

Raises:

  • (ArgumentError)

484
485
486
487
488
489
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 484

def get_column_name(pos=nil)
  if pos.class == Fixnum && !block_given?
    return @j_del.java_method(:getColumnName, [Java::int.java_class]).call(pos)
  end
  raise ArgumentError, "Invalid arguments when calling get_column_name(#{pos})"
end

- (Float) getDouble(pos) - (Float) getDouble(name)

Get a double value at pos.

Overloads:

  • - (Float) getDouble(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Float) getDouble(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Float)
    the value or null

Raises:

  • (ArgumentError)

125
126
127
128
129
130
131
132
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 125

def get_double(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getDouble, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getDouble, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_double(#{param_1})"
end

- (Float) getFloat(pos) - (Float) getFloat(name)

Get a float value at pos.

Overloads:

  • - (Float) getFloat(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Float) getFloat(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Float)
    the value or null

Raises:

  • (ArgumentError)

111
112
113
114
115
116
117
118
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 111

def get_float(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getFloat, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getFloat, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_float(#{param_1})"
end

- (Fixnum) getInteger(pos) - (Fixnum) getInteger(name)

Get an integer value at pos.

Overloads:

  • - (Fixnum) getInteger(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Fixnum) getInteger(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Fixnum)
    the value or null

Raises:

  • (ArgumentError)

83
84
85
86
87
88
89
90
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 83

def get_integer(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getInteger, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getInteger, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_integer(#{param_1})"
end

- (Hash) getInterval(pos) - (Hash) getInterval(name)

Get value at pos.

Overloads:

  • - (Hash) getInterval(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getInterval(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

265
266
267
268
269
270
271
272
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 265

def get_interval(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getInterval, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getInterval, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getInterval, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getInterval, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_interval(#{param_1})"
end

- (::ReactivePgClient::Json) getJson(pos) - (::ReactivePgClient::Json) getJson(name)

Get a json value at pos.

Overloads:

Returns:

Raises:

  • (ArgumentError)

153
154
155
156
157
158
159
160
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 153

def get_json(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getJson, [Java::int.java_class]).call(param_1),::ReactivePgClient::Json)
  elsif param_1.class == String && !block_given?
    return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getJson, [Java::java.lang.String.java_class]).call(param_1),::ReactivePgClient::Json)
  end
  raise ArgumentError, "Invalid arguments when calling get_json(#{param_1})"
end

- (Hash) getLine(pos) - (Hash) getLine(name)

Get value at pos.

Overloads:

  • - (Hash) getLine(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getLine(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

181
182
183
184
185
186
187
188
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 181

def get_line(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getLine, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getLine, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getLine, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getLine, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_line(#{param_1})"
end

- (Hash) getLineSegment(pos) - (Hash) getLineSegment(name)

Get value at pos.

Overloads:

  • - (Hash) getLineSegment(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getLineSegment(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

195
196
197
198
199
200
201
202
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 195

def get_line_segment(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getLineSegment, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getLineSegment, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getLineSegment, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getLineSegment, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_line_segment(#{param_1})"
end

- (Fixnum) getLong(pos) - (Fixnum) getLong(name)

Get a long value at pos.

Overloads:

  • - (Fixnum) getLong(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Fixnum) getLong(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Fixnum)
    the value or null

Raises:

  • (ArgumentError)

97
98
99
100
101
102
103
104
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 97

def get_long(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getLong, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getLong, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_long(#{param_1})"
end

- (Hash) getPath(pos) - (Hash) getPath(name)

Get value at pos.

Overloads:

  • - (Hash) getPath(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getPath(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

223
224
225
226
227
228
229
230
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 223

def get_path(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getPath, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPath, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getPath, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPath, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_path(#{param_1})"
end

- (Hash) getPoint(pos) - (Hash) getPoint(name)

Get value at pos.

Overloads:

  • - (Hash) getPoint(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getPoint(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

167
168
169
170
171
172
173
174
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 167

def get_point(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getPoint, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPoint, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getPoint, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPoint, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_point(#{param_1})"
end

- (Hash) getPolygon(pos) - (Hash) getPolygon(name)

Get value at pos.

Overloads:

  • - (Hash) getPolygon(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Hash) getPolygon(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Hash)
    the value or null

Raises:

  • (ArgumentError)

237
238
239
240
241
242
243
244
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 237

def get_polygon(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getPolygon, [Java::int.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPolygon, [Java::int.java_class]).call(param_1).toJson.encode) : nil
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getPolygon, [Java::java.lang.String.java_class]).call(param_1) != nil ? JSON.parse(@j_del.java_method(:getPolygon, [Java::java.lang.String.java_class]).call(param_1).toJson.encode) : nil
  end
  raise ArgumentError, "Invalid arguments when calling get_polygon(#{param_1})"
end

- (Fixnum) getShort(pos) - (Fixnum) getShort(name)

Get a short value at pos.

Overloads:

  • - (Fixnum) getShort(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Fixnum) getShort(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Fixnum)
    the value or null

Raises:

  • (ArgumentError)

69
70
71
72
73
74
75
76
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 69

def get_short(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getShort, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getShort, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_short(#{param_1})"
end

- (String) getString(pos) - (String) getString(name)

Get a string value at pos.

Overloads:

  • - (String) getString(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (String) getString(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (String)
    the value or null

Raises:

  • (ArgumentError)

139
140
141
142
143
144
145
146
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 139

def get_string(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return @j_del.java_method(:getString, [Java::int.java_class]).call(param_1)
  elsif param_1.class == String && !block_given?
    return @j_del.java_method(:getString, [Java::java.lang.String.java_class]).call(param_1)
  end
  raise ArgumentError, "Invalid arguments when calling get_string(#{param_1})"
end

- (Object) getValue(pos) - (Object) getValue(name)

Get an object value at pos.

Overloads:

  • - (Object) getValue(pos)

    Parameters:

    • pos (Fixnum)
      the position
  • - (Object) getValue(name)

    Parameters:

    • name (String)
      the column

Returns:

  • (Object)
    the value or null

Raises:

  • (ArgumentError)

55
56
57
58
59
60
61
62
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 55

def get_value(param_1=nil)
  if param_1.class == Fixnum && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getValue, [Java::int.java_class]).call(param_1))
  elsif param_1.class == String && !block_given?
    return ::Vertx::Util::Utils.from_object(@j_del.java_method(:getValue, [Java::java.lang.String.java_class]).call(param_1))
  end
  raise ArgumentError, "Invalid arguments when calling get_value(#{param_1})"
end

- (Fixnum) size

Returns the tuple size

Returns:

  • (Fixnum)
    the tuple size

Raises:

  • (ArgumentError)

468
469
470
471
472
473
# File '/Users/julien/java/reactive-pg-client/target/classes/reactive-pg-client/row.rb', line 468

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