Beispiel #1
0
        internal virtual ICollection <EntityId> GetAddedIds(LuceneExplicitIndex index, string key, object value)
        {
            TxDataHolder added = AddedTxDataOrNull(index);

            if (added == null)
            {
                return(Collections.emptySet());
            }
            ICollection <EntityId> ids = added.Get(key, value);

            return(ids != null ? ids : Collections.emptySet());
        }
Beispiel #2
0
        internal virtual ICollection <EntityId> GetRemovedIds(LuceneExplicitIndex index, string key, object value)
        {
            TxDataHolder removed = RemovedTxDataOrNull(index);

            if (removed == null)
            {
                return(Collections.emptySet());
            }
            ICollection <EntityId> ids       = removed.Get(key, value);
            ICollection <EntityId> orphanIds = removed.GetOrphans(key);

            return(Merge(ids, orphanIds));
        }