Examples of deleteIndex()


Examples of com.alibaba.wasp.client.MasterAdminKeepAliveConnection.deleteIndex()

        } else if (executePlan instanceof DropIndexPlan) {
          DropIndexPlan dropIndexPlan = (DropIndexPlan) executePlan;
          MasterAdminProtos.DropIndexRequest request = RequestConverter.buildDropIndexRequest(
              dropIndexPlan.getTableName(), dropIndexPlan.getIndexName());
          return ResponseConverter
              .buildExecuteResponse(masterAdminKeepAliveConnection.deleteIndex(
                  null, request));
        } else if (executePlan instanceof DropTablePlan) {
          List<DeleteTableResponse> responses = new ArrayList<DeleteTableResponse>();
          for (String tableName : ((DropTablePlan) executePlan).getTableNames()) {
            byte[] byteName = Bytes.toBytes(tableName);
View Full Code Here

Examples of com.stimulus.archiva.index.MessageIndex.deleteIndex()

        Volume volume = config.getVolumes().getVolume(volumeIndex);
        audit.info("index volume {"+volume+", "+principal+"}");
      logger.debug("index volume {"+volume+", "+principal+"}");
      MessageIndex index = (MessageIndex)config.getIndex();
        try {
          index.deleteIndex(volume);
          config.getArchiver().processMessages(new IndexMessage(volume));
       } catch (Exception e) {
         logger.error("failed to index volume {"+volume+"}:"+e.getMessage(),e);
       }
    }
View Full Code Here

Examples of com.stimulus.archiva.index.MessageIndex.deleteIndex()

        Volume volume = config.getVolumes().getVolume(volumeIndex);
        audit.info("index volume {"+volume+", "+principal+"}");
      logger.debug("index volume {"+volume+", "+principal+"}");
      MessageIndex index = (MessageIndex)config.getIndex();
        try {
          index.deleteIndex(volume);
          config.getArchiver().processMessages(new IndexMessage(volume));
       } catch (Exception e) {
         logger.error("failed to index volume {"+volume+"}:"+e.getMessage(),e);
       }
    }
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.deleteIndex()

      createLogResource("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.createIndex(getLogResource());
      indexService.synchronize(getLogResource(), null);
      assertTrue(IndexPlugin.getDefault().getIndexFile(getLogResource()).exists());
      assertEquals(5, indexService.count(getLogResource()));
      indexService.deleteIndex(getLogResource());
      assertTrue(!IndexPlugin.getDefault().getIndexFile(getLogResource()).exists());
    } catch (Exception e) {
      getLogger().error(e.getLocalizedMessage(), e);
      fail("Exception should not occur: " + e.getLocalizedMessage());
    }
View Full Code Here

Examples of org.elasticsearch.hadoop.rest.RestClient.deleteIndex()

        AbstractPigTests.startup();

        // initialize Pig in local mode
        RestClient client = new RestClient(new TestSettings());
        try {
            client.deleteIndex("pig");
        } catch (Exception ex) {
            // ignore
        }
    }
View Full Code Here

Examples of org.elasticsearch.hadoop.rest.RestClient.deleteIndex()

    public static void startup() throws Exception {
        AbstractPigTests.startup();
        // initialize Pig in local mode
        RestClient client = new RestClient(new TestSettings());
        try {
            client.deleteIndex("json-pig");
        } catch (Exception ex) {
            // ignore
        }
    }
View Full Code Here

Examples of org.lilyproject.hbaseindex.IndexManager.deleteIndex()

     * @throws IndexNotFoundException if the index doesn't exist (maybe it was already deleted?)
     */
    public static void delete(final String indexName, final Configuration hbaseConfiguration)
            throws IOException, IndexNotFoundException {
        final IndexManager manager = new IndexManager(hbaseConfiguration);
        manager.deleteIndex(forwardIndexName(indexName));
        manager.deleteIndex(backwardIndexName(indexName));
    }

    public static String forwardIndexName(String indexName) {
        return "deref-forward-" + indexName;
View Full Code Here

Examples of org.lilyproject.hbaseindex.IndexManager.deleteIndex()

     */
    public static void delete(final String indexName, final Configuration hbaseConfiguration)
            throws IOException, IndexNotFoundException {
        final IndexManager manager = new IndexManager(hbaseConfiguration);
        manager.deleteIndex(forwardIndexName(indexName));
        manager.deleteIndex(backwardIndexName(indexName));
    }

    public static String forwardIndexName(String indexName) {
        return "deref-forward-" + indexName;
    }
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.