Пример #1
0
        private long StoreRule(SchemaRule rule)
        {
            ICollection <DynamicRecord> records = _store.allocateFrom(rule);

            foreach (DynamicRecord record in records)
            {
                _store.updateRecord(record);
            }
            return(Iterables.first(records).Id);
        }
Пример #2
0
 public SchemaRecord newUnused(long key, SchemaRule additionalData)
 {
     // Don't blindly mark as created here since some records may be reused.
     return(new SchemaRecord(_store.allocateFrom(additionalData)));
 }