Добавил реализацию getCollectionIdsBySQL() в ImdgHazelcast.
This commit is contained in:
psemenkov 2023-04-20 11:22:31 +03:00
parent 026a6a8d09
commit 59e4a091ba

View file

@ -149,6 +149,15 @@ public class ImdgHazelcast<T extends SpcexObjectBase> implements Imdg<T> {
return result;
}
@Override
public Collection<Long> getCollectionIdsBySQL(String paramString) {
SqlPredicate sqlPredicate = new SqlPredicate(paramString);
Set<Map.Entry<Long, T>> found = map.entrySet(sqlPredicate);
List<Long> result = new ArrayList<>(found.size());
for (Map.Entry<Long, T> entry : found) result.add(entry.getKey());
return result;
}
@Override
public Long nextIDSequenceFor() {
return idGenerator.newId();