Examples of RetentionFilterFactory


Examples of com.senseidb.search.query.RetentionFilterFactory

        if (SENSEI_INDEXER_TYPE_ZOIE.equals(indexerType)) {
            SenseiZoieSystemFactory senseiZoieFactory = new SenseiZoieSystemFactory(idxDir, dirMode, interpreter, decorator, zoieConfig);

            int retentionDays = _senseiConf.getInt(SENSEI_ZOIE_RETENTION_DAYS, -1);
            if (retentionDays > 0) {
                RetentionFilterFactory retentionFilterFactory = pluginRegistry.getBeanByFullPrefix(SENSEI_ZOIE_RETENTION_CLASS, RetentionFilterFactory.class);
                Filter purgeFilter = null;
                if (retentionFilterFactory != null) {
                    purgeFilter = retentionFilterFactory.buildRetentionFilter(retentionDays);
                } else {
                    String timeColumn = _senseiConf.getString(SENSEI_ZOIE_RETENTION_COLUMN, null);
                    if (timeColumn == null) {
                        throw new ConfigurationException("Retention specified without a time column");
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.