private static void AssertValidRelGroupCommand(StorageCommand command)
        {
            assertThat(command, instanceOf(typeof(RelationshipGroupCommand)));
            RelationshipGroupCommand relGroupCommand = ( RelationshipGroupCommand )command;
            RelationshipGroupRecord  record          = relGroupCommand.After;

            assertEquals(ID, record.Id);
            if (_inUseFlag == Record.IN_USE.byteValue())
            {
                assertTrue(record.InUse());
            }
            else if (_inUseFlag == Record.NOT_IN_USE.byteValue())
            {
                assertFalse(record.InUse());
            }
            else
            {
                throw new System.InvalidOperationException("Illegal inUse flag: " + _inUseFlag);
            }
            assertEquals(_typeAsInt, record.Type);
            assertEquals(NEXT, record.Next);
            assertEquals(FIRST_OUT, record.FirstOut);
            assertEquals(FIRST_IN, record.FirstIn);
            assertEquals(FIRST_LOOP, record.Next);
            assertEquals(OWNING_NODE, record.OwningNode);
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visit(org.neo4j.storageengine.api.StorageCommand element) throws java.io.IOException
        public override bool Visit(StorageCommand element)
        {
            foreach (TransactionApplier applier in Appliers)
            {
                if ((( Command )element).handle(applier))
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visit(org.neo4j.storageengine.api.StorageCommand element) throws java.io.IOException
        public override bool Visit(StorageCommand element)
        {
            return((( Command )element).handle(this));
        }
Esempio n. 4
0
 public LogEntryCommand(LogEntryVersion version, StorageCommand command) : base(version, COMMAND)
 {
     this._command = command;
 }
Esempio n. 5
0
 public LogEntryCommand(StorageCommand command) : this(CURRENT, command)
 {
 }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void assertCanReadRelGroup(org.neo4j.storageengine.api.CommandReader reader) throws java.io.IOException
        private void AssertCanReadRelGroup(CommandReader reader)
        {
            StorageCommand command = reader.Read(ChannelWithRelGroupRecord());

            AssertValidRelGroupCommand(command);
        }