private long StoreRule(SchemaRule rule) { ICollection <DynamicRecord> records = _store.allocateFrom(rule); foreach (DynamicRecord record in records) { _store.updateRecord(record); } return(Iterables.first(records).Id); }
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))); }