@Test public void testDelete() { System.out.println("delete"); int expResult = 0; int result = instance.delete(MOCK_TABLE, MOCK_KEY1); assertEquals(expResult, result); }
@Override public int delete(String table, String key) { try { client.prepareDelete(indexKey, table, key) .execute() .actionGet(); return 0; } catch (Exception e) { e.printStackTrace(); } return 1; }
ElasticSearchClient extends DB { @Override public int delete(String table, String key) { try { client.prepareDelete(indexKey, table, key) .execute() .actionGet(); return 0; } catch (Exception e) { e.printStackTrace(); } return 1; } }
ElasticSearchClient extends DB { @Override public int delete(String table, String key) { try { client.prepareDelete(indexKey, table, key) .execute() .actionGet(); return 0; } catch (Exception e) { e.printStackTrace(); } return 1; }  }
ElasticSearchClient extends DB { @Override public int delete(String table, String key) { try { client.prepareDelete(indexKey, table, key) .execute() .actionGet(); return 0; } catch (Exception e) { e.printStackTrace(); } return 1; }  @Override void init(); @Override void cleanup(); @Override int insert(String table, String key, HashMap<String, ByteIterator> values); @Override int delete(String table, String key); @Override int read(String table, String key, Set<String> fields, HashMap<String, ByteIterator> result); @Override int update(String table, String key, HashMap<String, ByteIterator> values); @Override int scan(String table, String startkey, int recordcount, Set<String> fields, Vector<HashMap<String, ByteIterator>> result); }
ElasticSearchClient extends DB { @Override public int delete(String table, String key) { try { client.prepareDelete(indexKey, table, key) .execute() .actionGet(); return 0; } catch (Exception e) { e.printStackTrace(); } return 1; }  @Override void init(); @Override void cleanup(); @Override int insert(String table, String key, HashMap<String, ByteIterator> values); @Override int delete(String table, String key); @Override int read(String table, String key, Set<String> fields, HashMap<String, ByteIterator> result); @Override int update(String table, String key, HashMap<String, ByteIterator> values); @Override int scan(String table, String startkey, int recordcount, Set<String> fields, Vector<HashMap<String, ByteIterator>> result); static final String DEFAULT_CLUSTER_NAME; static final String DEFAULT_INDEX_KEY; }