com.bagri.server.hazelcast.predicate.ResultsQueryExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
The newest version!
package com.bagri.server.hazelcast.predicate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.bagri.core.model.QueryResult;
import com.hazelcast.query.extractor.ValueCollector;
import com.hazelcast.query.extractor.ValueExtractor;
public class ResultsQueryExtractor extends ValueExtractor {
private static final transient Logger logger = LoggerFactory.getLogger(ResultsQueryExtractor.class);
@Override
public void extract(QueryResult target, Object argument, ValueCollector collector) {
for (Long docId: target.getDocIds()) {
collector.addObject(docId);
}
//logger.debug("extract.exit; added {} values to {}", target.getDocIds().size(), collector);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy