Esempio n. 1
0
 public static function executeTransfer(InputInterface $input, OutputInterface $output)
 {
     list($source, $importLabel, $importIdKey, $readBatchSize, $nodeBatchSize, $relationBatchSize, $file, $clean, $transactional, $ignoredRelationProperties, $preserveIds) = DumpCommand::makeReadArguments($input);
     list($target) = ImportCommand::makeWriteArguments($input);
     if (!isset($file) || $file == 'default') {
         $file = DumpCommand::makeDumpFileName($source->getHost(), $output);
     }
     if (isset($file)) {
         $file = fopen($file, 'w+');
     }
     Neo4jTransfer::transfer($source, $target, $importLabel, $importIdKey, $readBatchSize, $nodeBatchSize, $relationBatchSize, $clean, $transactional, $ignoredRelationProperties, $preserveIds, $file, $output);
     if (isset($file)) {
         fclose($file);
     }
 }
 public static function executeTransfer(InputInterface $input, OutputInterface $output)
 {
     list($source, $importLabel, $importIdKey, $readBatchSize, $nodeBatchSize, $relationBatchSize, $file, $clean, $transactional, $ignoredRelationProperties, $preserveIds) = DumpCommand::makeReadArguments($input, 300, 100, 150);
     list($target) = ImportCommand::makeWriteArguments($input);
     Neo4jTransfer::directTransfer($source, $target, $readBatchSize, $nodeBatchSize, $relationBatchSize, $ignoredRelationProperties, $preserveIds, $output);
 }