Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static <Key> boolean performLookup(ReadableState<Key> store, org.neo4j.io.pagecache.tracing.cursor.context.VersionContext versionContext, java.util.concurrent.ConcurrentMap<Key,ChangeEntry> changes, Key key, ValueSink sink) throws java.io.IOException
        private static bool PerformLookup <Key>(ReadableState <Key> store, VersionContext versionContext, ConcurrentMap <Key, ChangeEntry> changes, Key key, ValueSink sink)
        {
            ChangeEntry change = changes.get(key);

            if (change != null)
            {
                if (change.Version > versionContext.LastClosedTransactionId())
                {
                    versionContext.MarkAsDirty();
                }
                sink.Value(new BigEndianByteArrayBuffer(change.Data));
                return(true);
            }
            return(store.Lookup(key, sink));
        }
Example #2
0
 protected internal override bool Lookup(Key key, ValueSink sink)
 {
     throw new System.InvalidOperationException("Cannot read in state: " + outerInstance.stateName());
 }
Example #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected boolean lookup(Key key, ValueSink sink) throws java.io.IOException
        protected internal override bool Lookup(Key key, ValueSink sink)
        {
            return(PerformLookup(Store, _versionContextSupplier.VersionContext, _changes, key, sink));
        }
Example #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected boolean lookup(Key key, ValueSink sink) throws java.io.IOException
            protected internal override bool Lookup(Key key, ValueSink sink)
            {
                return(PostState.lookup(key, sink));
            }