@Test public void ID省略でcreate処理が正常に終了する() { EsIndex index = esClient.idxAdmin("index_for_test"); assertNotNull(index); DataSourceAccessor dsa = new DataSourceAccessor(index, "TypeForTest", "RoutingIdTest"); DcIndexResponse response = dsa.create(new HashMap<Object, Object>()); assertNotNull(response); assertFalse(response.getId().equals("")); }
@SuppressWarnings("rawtypes") public DcIndexResponse create(final Map data) { String id = DcUUID.randomUUID(); return this.create(id, data); }
DataSourceAccessor { @SuppressWarnings("rawtypes") public DcIndexResponse create(final Map data) { String id = DcUUID.randomUUID(); return this.create(id, data); } }
DataSourceAccessor { @SuppressWarnings("rawtypes") public DcIndexResponse create(final Map data) { String id = DcUUID.randomUUID(); return this.create(id, data); } DataSourceAccessor(EsIndex index); protected  DataSourceAccessor(EsIndex index, String name, String routingId); }
DataSourceAccessor { @SuppressWarnings("rawtypes") public DcIndexResponse create(final Map data) { String id = DcUUID.randomUUID(); return this.create(id, data); } DataSourceAccessor(EsIndex index); protected  DataSourceAccessor(EsIndex index, String name, String routingId); EsIndex getIndex(); String getType(); DcGetResponse get(final String id); @SuppressWarnings("rawtypes") DcIndexResponse create(final Map data); @SuppressWarnings({"rawtypes" }) DcActionResponse createForDavNodeFile(final String id, final Map data); @SuppressWarnings({"rawtypes" }) DcIndexResponse create(final String id, final Map data); @SuppressWarnings({"rawtypes" }) DcIndexResponse create(final String id, final Map data, final EntitySetDocHandler docHandler); @SuppressWarnings({"rawtypes" }) DcIndexResponse update(final String id, final Map data, final long version); @SuppressWarnings("rawtypes") DcIndexResponse update(final String id, final Map data); long count(final Map<String, Object> query); DcSearchResponse search(final Map<String, Object> query); DcMultiSearchResponse multiSearch(final List<Map<String, Object>> queryList); DcSearchResponse indexSearch(final Map<String, Object> query); DcDeleteResponse delete(final String docId, final long version); DcBulkResponse bulkCreate(List<EsBulkRequest> esBulkRequest,
            List<EntitySetDocHandler> adsBulkRequest,
            String routingId); DcBulkResponse bulkUpdateLink(List<EsBulkRequest> esBulkRequest,
            List<EntitySetDocHandler> adsBulkEntityRequest,
            List<LinkDocHandler> adsBulkLinkRequest,
            String routingId); DcSearchResponse searchForIndex(String routingId, Map<String, Object> query); DcMultiSearchResponse multiSearchForIndex(String routingId, List<Map<String, Object>> queryList); }
DataSourceAccessor { @SuppressWarnings("rawtypes") public DcIndexResponse create(final Map data) { String id = DcUUID.randomUUID(); return this.create(id, data); } DataSourceAccessor(EsIndex index); protected  DataSourceAccessor(EsIndex index, String name, String routingId); EsIndex getIndex(); String getType(); DcGetResponse get(final String id); @SuppressWarnings("rawtypes") DcIndexResponse create(final Map data); @SuppressWarnings({"rawtypes" }) DcActionResponse createForDavNodeFile(final String id, final Map data); @SuppressWarnings({"rawtypes" }) DcIndexResponse create(final String id, final Map data); @SuppressWarnings({"rawtypes" }) DcIndexResponse create(final String id, final Map data, final EntitySetDocHandler docHandler); @SuppressWarnings({"rawtypes" }) DcIndexResponse update(final String id, final Map data, final long version); @SuppressWarnings("rawtypes") DcIndexResponse update(final String id, final Map data); long count(final Map<String, Object> query); DcSearchResponse search(final Map<String, Object> query); DcMultiSearchResponse multiSearch(final List<Map<String, Object>> queryList); DcSearchResponse indexSearch(final Map<String, Object> query); DcDeleteResponse delete(final String docId, final long version); DcBulkResponse bulkCreate(List<EsBulkRequest> esBulkRequest,
            List<EntitySetDocHandler> adsBulkRequest,
            String routingId); DcBulkResponse bulkUpdateLink(List<EsBulkRequest> esBulkRequest,
            List<EntitySetDocHandler> adsBulkEntityRequest,
            List<LinkDocHandler> adsBulkLinkRequest,
            String routingId); DcSearchResponse searchForIndex(String routingId, Map<String, Object> query); DcMultiSearchResponse multiSearchForIndex(String routingId, List<Map<String, Object>> queryList);  }