@Override IndexSearcher asSearcher(TxDataHolder holder, QueryContext context) { if (context != null && context.getTradeCorrectnessForSpeed()) { return null; } TxData fullTxData = toFullTxData(); holder.set(fullTxData); return fullTxData.asSearcher(holder, context); }
@Override Collection<Long> query(TxDataHolder holder, Query query, QueryContext contextOrNull) { if (contextOrNull != null && contextOrNull.getTradeCorrectnessForSpeed()) { return Collections.<Long>emptyList(); } TxData fullTxData = toFullTxData(); holder.set(fullTxData); return fullTxData.query(holder, query, contextOrNull); }
@Override void remove(TxDataHolder holder, Object entityId, String key, Object value) { if (data == null) { return; } if (key == null || value == null) { TxData fullData = toFullTxData(); fullData.remove(holder, entityId, key, value); holder.set(fullData); } else { Collection<Object> ids = idCollection(key, value, false); if (ids != null) { ids.remove(entityId); } } }