Добавил реализацию getCollectionIdsBySQL() в ImdgHazelcast.
This commit is contained in:
parent
026a6a8d09
commit
59e4a091ba
1 changed files with 9 additions and 0 deletions
|
|
@ -149,6 +149,15 @@ public class ImdgHazelcast<T extends SpcexObjectBase> implements Imdg<T> {
|
||||||
return result;
|
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
|
@Override
|
||||||
public Long nextIDSequenceFor() {
|
public Long nextIDSequenceFor() {
|
||||||
return idGenerator.newId();
|
return idGenerator.newId();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue