Class: Couchbase::SearchRowLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ SearchRowLocation

Returns a new instance of SearchRowLocation.

Yield Parameters:



1375
1376
1377
# File 'lib/couchbase/search_options.rb', line 1375

def initialize
  yield self if block_given?
end

Instance Attribute Details

#array_positionsArray<Integer>

Returns the positions of the term within any elements.

Returns:

  • (Array<Integer>)

    the positions of the term within any elements.



1372
1373
1374
# File 'lib/couchbase/search_options.rb', line 1372

def array_positions
  @array_positions
end

#end_offsetInteger

Returns end byte offset of the term in the field.

Returns:

  • (Integer)

    end byte offset of the term in the field



1369
1370
1371
# File 'lib/couchbase/search_options.rb', line 1369

def end_offset
  @end_offset
end

#fieldString

Returns:

  • (String)


1357
1358
1359
# File 'lib/couchbase/search_options.rb', line 1357

def field
  @field
end

#positionInteger

Returns the position of the term within the field, starting at 1.

Returns:

  • (Integer)

    the position of the term within the field, starting at 1



1363
1364
1365
# File 'lib/couchbase/search_options.rb', line 1363

def position
  @position
end

#start_offsetInteger

Returns start byte offset of the term in the field.

Returns:

  • (Integer)

    start byte offset of the term in the field



1366
1367
1368
# File 'lib/couchbase/search_options.rb', line 1366

def start_offset
  @start_offset
end

#termString

Returns:

  • (String)


1360
1361
1362
# File 'lib/couchbase/search_options.rb', line 1360

def term
  @term
end