Hi David,

I've run your code and it works fine for me on ignite 1.7-1.9 versions and
master branch.

On Thu, Mar 30, 2017 at 12:19 PM, David Li <[email protected]> wrote:

> Hello,
>
> I am having a little issue with the ScanQuery for BinaryObject.
>
> Some code snippets
>
> IgniteCache<Long, Organization> cache = ignite.cache(CacheConfig.CACHE_NAME);
> IgniteCache<Long, BinaryObject> binaryCache = cache.withKeepBinary();
>
> // scan query
> IgniteBiPredicate<Long, BinaryObject> filter = new IgniteBiPredicate<Long, 
> BinaryObject>() {
>     @Override
>     public boolean apply(Long key, BinaryObject value) {
>         return false;
>     }
> };
> ScanQuery<Long, BinaryObject> scanQuery = new ScanQuery<>(filter);
>
> List<Cache.Entry<Long, BinaryObject>> result = 
> binaryCache.query(scanQuery).getAll();
>
>
> I expect it will return an empty result, somehow it always returns everything 
> in the cache.
>
> Not sure what is wrong?
>
>
> BRs,
>
> David
>
>
>
>


-- 
Best regards,
Andrey V. Mashenkov

Reply via email to