Exemple #1
0
 /// <summary>
 /// Initialize collector for some known and expected number of entries that are suspected to be duplicates. </summary>
 /// <param name="expectedNumberOfEntries"> expected number entries </param>
 public virtual void Init(int expectedNumberOfEntries)
 {
     if (UseFastCheck(expectedNumberOfEntries))
     {
         DuplicateCheckStrategy = new DuplicateCheckStrategy.MapDuplicateCheckStrategy(expectedNumberOfEntries);
     }
     else
     {
         DuplicateCheckStrategy = new BucketsDuplicateCheckStrategy(expectedNumberOfEntries);
     }
 }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected void doCollect(int doc) throws java.io.IOException, org.neo4j.internal.kernel.api.exceptions.KernelException, org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
        protected internal override void DoCollect(int doc)
        {
            Document document = Reader.document(doc);
            long     nodeId   = LuceneDocumentStructure.getNodeId(document);

            Value[] values = new Value[_propertyKeyIds.Length];
            for (int i = 0; i < values.Length; i++)
            {
                values[i] = Accessor.getNodePropertyValue(nodeId, _propertyKeyIds[i]);
            }
            DuplicateCheckStrategy.checkForDuplicate(values, nodeId);
        }
Exemple #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void SetUp()
        {
            _checkStrategy = DuplicateCheckStrategyFactory.newInstance();
        }
Exemple #4
0
 /// <summary>
 /// Initialise collector for unknown number of entries that are suspected to be duplicates.
 /// </summary>
 public virtual void Init()
 {
     DuplicateCheckStrategy = new BucketsDuplicateCheckStrategy();
 }