Basho\Riak\Object::getIndexes PHP Method

getIndexes() public method

public getIndexes ( )
    public function getIndexes()
    {
        return $this->indexes;
    }

Usage Example

Beispiel #1
0
 public function testRemoveIndexes()
 {
     $data = new \StdClass();
     $data->woot = 'sauce';
     $headers = ['x-riak-index-foo_bin' => 'bar, baz', 'x-riak-index-foo_int' => '42, 50'];
     $object = new Object($data, $headers);
     $object->removeValueFromIndex("foo_int", 50);
     $object->removeValueFromIndex("foo_bin", 'baz');
     $object->removeValueFromIndex("foo_bin", 'bar');
     $indexes = $object->getIndexes();
     $this->assertNotEmpty($indexes);
     $this->assertEquals(1, count($indexes));
     $this->assertEquals([42], $indexes["foo_int"]);
 }