public function getDataSource()
 {
     if ($this->dataSource === null) {
         $this->dataSource = DedupeDataSource::create($this->typeID, $this->params);
     }
     return $this->dataSource;
 }
 public function __construct($typeID, DedupeParams $params)
 {
     parent::__construct($typeID, $params);
 }
 public function getActualCount($entityTypeID, $rootEntityID, $userID, $enablePermissionCheck = false, $limit = 0)
 {
     $dataSource = DedupeDataSource::create($this->getIndexTypeID(), new DedupeParams($entityTypeID, $userID, $enablePermissionCheck));
     return $dataSource->calculateEntityCount($this, array('ROOT_ENTITY_ID' => $rootEntityID, 'LIMIT' => $limit));
 }