コード例 #1
0
 private static List<Client> findDepends(String indexName) {
   clientsLock.r.lock();
   try {
     ArrayList<Client> list = new ArrayList<Client>();
     for (Client client : CLIENTS.values()) {
       IndexConfig indexConfig = client.getIndex().getIndexConfig();
       if (indexConfig.isMulti())
         if (indexConfig.isIndexMulti(indexName)) {
           list.add(client);
         }
     }
     return list;
   } finally {
     clientsLock.r.unlock();
   }
 }
コード例 #2
0
 @Override
 public void setMaxSize(int newMaxSize) {
   super.setMaxSize(newMaxSize);
   indexConfig.setTermVectorCache(newMaxSize);
 }
コード例 #3
0
 public TermVectorCache(IndexConfig indexConfig) {
   super("TermVector cache", indexConfig.getTermVectorCache());
   this.indexConfig = indexConfig;
 }