Esempio n. 1
0
        private PropertyRecord CreateRecord(PropertyRecordFormat format, long recordId)
        {
            PropertyRecord record = format.NewRecord();

            record.InUse    = true;
            record.Id       = recordId;
            record.NextProp = 1L;
            record.PrevProp = (int.MaxValue + 1L) << (sizeof(sbyte) * 8) * 3;
            return(record);
        }
Esempio n. 2
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()
        {
            _recordFormat = new PropertyRecordFormat();
            _pageCursor   = new StubPageCursor(0, ( int )ByteUnit.kibiBytes(8));
            _idSequence   = new ConstantIdSequence();
        }