private function parsePipelines(\DOMXPath $xpath, \DOMNode $rootNode)
    {
        $pipelines = [];

        foreach ($xpath->query(self::PIPELINES_PATH, $rootNode) as $pipelineNode) {
            $pipeline = [];
            foreach ($pipelineNode->attributes as $attribute) {
                $pipeline[$attribute->name] = $attribute->value;
            }
            $pipeline['bucketsPath'] = $this->parsePipelineBucketsPath($xpath, $pipelineNode);
            $pipelines[$pipeline['name']] = $pipeline;
        }

        return $pipelines;
    }
private function parsePipelines(\DOMXPath $xpath, \DOMNode $rootNode)
    {
        $pipelines = [];

        foreach ($xpath->query(self::PIPELINES_PATH, $rootNode) as $pipelineNode) {
            $pipeline = [];
            foreach ($pipelineNode->attributes as $attribute) {
                $pipeline[$attribute->name] = $attribute->value;
            }
            $pipeline['bucketsPath'] = $this->parsePipelineBucketsPath($xpath, $pipelineNode);
            $pipelines[$pipeline['name']] = $pipeline;
        }

        return $pipelines;
    }
private function parsePipelines ( \ DOMXPath $ xpath , \ DOMNode $ rootNode ) { $ pipelines = [ ] ; foreach ( $ xpath -> query ( self :: PIPELINES_PATH , $ rootNode ) as $ pipelineNode ) { $ pipeline = [ ] ; foreach ( $ pipelineNode -> attributes as $ attribute ) { $ pipeline [ $ attribute -> name ] = $ attribute -> value ; } $ pipeline [ 'bucketsPath' ] = $ this -> parsePipelineBucketsPath ( $ xpath , $ pipelineNode ) ; $ pipelines [ $ pipeline [ 'name' ] ] = $ pipeline ; } return $ pipelines ; }
Parse pipelines from a bucket.

@param \DOMXPath $xpath    XPath access to the document parsed.
@param \DOMNode  $rootNode Aggregation node to be parsed for pipeline aggregations.

@return array
Parse pipelines from a bucket .