keyValueFactory = $key_value_factory; $this->namespaces = Query::getNamespaces($this); } /** * {@inheritdoc} */ public function get(EntityTypeInterface $entity_type, $conjunction) { return new Query($entity_type, $conjunction, $this->namespaces, $this->keyValueFactory); } /** * {@inheritdoc} */ public function getAggregate(EntityTypeInterface $entity_type, $conjunction) { throw new QueryException('Aggregation over key-value entity storage is not supported'); } }