//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)); }
protected internal override bool Lookup(Key key, ValueSink sink) { throw new System.InvalidOperationException("Cannot read in state: " + outerInstance.stateName()); }
//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)); }
//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)); }