src/Repository/DynamoDb/NodeTable.php
final public function beforePutItem(array &$item, Node $node): void
    {
        $this->loadIndexes();
        $this->addShardAttributes($item, $node);
        if ($node instanceof Indexed) {
            $item[NodeTable::INDEXED_KEY_NAME] = ['BOOL' => true];
        }

        foreach ($this->gsi as $gsi) {
            $gsi->beforePutItem($item, $node);
        }

        $this->doBeforePutItem($item, $node);
    }
final public function beforePutItem(array &$item, Node $node): void
    {
        $this->loadIndexes();
        $this->addShardAttributes($item, $node);
        if ($node instanceof Indexed) {
            $item[NodeTable::INDEXED_KEY_NAME] = ['BOOL' => true];
        }

        foreach ($this->gsi as $gsi) {
            $gsi->beforePutItem($item, $node);
        }

        $this->doBeforePutItem($item, $node);
    }
final public function beforePutItem ( array & $ item , Node $ node ) : void { $ this -> loadIndexes ( ) ; $ this -> addShardAttributes ( $ item , $ node ) ; if ( $ node instanceof Indexed ) { $ item [ NodeTable :: INDEXED_KEY_NAME ] = [ 'BOOL' => true ] ; } foreach ( $ this -> gsi as $ gsi ) { $ gsi -> beforePutItem ( $ item , $ node ) ; } $ this -> doBeforePutItem ( $ item , $ node ) ; }
Calls all of the indexes on this table "beforePutItem" methods.

@param array $item
@param Node  $node
Calls all of the indexes on this table beforePutItem methods .