Examples of ShardingStrategy


Examples of com.senseidb.indexing.ShardingStrategy

            zoieConfig.setFreshness(delay * 1000);
        } else {
            readercachefactory = SimpleReaderCache.FACTORY;
        }
        zoieConfig.setReadercachefactory(readercachefactory);
        ShardingStrategy strategy = pluginRegistry.getBeanByFullPrefix(SENSEI_SHARDING_STRATEGY, ShardingStrategy.class);
        if (strategy == null) {
            strategy = new ShardingStrategy.FieldModShardingStrategy(_senseiSchema.getUidField());
        }

        Filter retentionFilter =
View Full Code Here

Examples of com.senseidb.indexing.ShardingStrategy

      platformMBeanServer = JmxUtil.registerNewJmxServer(new MockJMXServer());
      defaultJsonSchemaInterpreter = new DefaultJsonSchemaInterpreter(schema);
      facets = new ArrayList<FacetHandler<?>>();
      runtimeFacets = new ArrayList<RuntimeFacetHandlerFactory<?, ?>>();

      ShardingStrategy strategy = new ShardingStrategy() {
        public int caculateShard(int maxShardId, JSONObject dataObj) throws JSONException {
          return 0;
        }
      };
      ActivityPersistenceFactory.setOverrideForCurrentThread(ActivityPersistenceFactory.getInMemoryInstance());
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.