Class: Couchbase::SearchRowLocation

Inherits:
Object
  • Object
show all
Defined in:
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:



1380
1381
1382
# File 'lib/couchbase/search_options.rb', line 1380

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.



1377
1378
1379
# File 'lib/couchbase/search_options.rb', line 1377

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



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

def end_offset
  @end_offset
end

#fieldString

Returns:

  • (String)


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

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



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

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



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

def start_offset
  @start_offset
end

#termString

Returns:

  • (String)


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

def term
  @term
end