Exemple #1
0
 internal virtual void Clear()
 {
     if (_changedProperties != null)
     {
         _changedProperties.clear();
     }
     if (_addedProperties != null)
     {
         _addedProperties.clear();
     }
     if (_removedProperties != null)
     {
         _removedProperties.clear();
     }
 }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void updateReader(org.neo4j.kernel.impl.api.KernelTransactionImplementation kti) throws Exception
        private void UpdateReader(KernelTransactionImplementation kti)
        {
            _modifiedEntityIdsInThisTransaction.clear();               // Clear this so we don't filter out entities who have had their changes reversed since last time.
            _writer.resetWriterState();
            AllStoreHolder   read             = ( AllStoreHolder )kti.DataRead();
            TransactionState transactionState = kti.TxState();

            using (NodeCursor nodeCursor = _visitingNodes ? kti.Cursors().allocateNodeCursor() : null, RelationshipScanCursor relationshipCursor = _visitingNodes ? null : kti.Cursors().allocateRelationshipScanCursor(), PropertyCursor propertyCursor = kti.Cursors().allocatePropertyCursor())
            {
                transactionState.Accept(_txStateVisitor.init(read, nodeCursor, relationshipCursor, propertyCursor));
            }
            FulltextIndexReader baseReader         = ( FulltextIndexReader )read.IndexReader(_descriptor, false);
            FulltextIndexReader nearRealTimeReader = _writer.NearRealTimeReader;

            _currentReader      = new TransactionStateFulltextIndexReader(baseReader, nearRealTimeReader, _modifiedEntityIdsInThisTransaction);
            _lastUpdateRevision = kti.TransactionDataRevision;
        }
 internal virtual void Reset()
 {
     Values.clear();
 }