@Test public void testGetDistinctIndices_02() { Set<IndexInfo> indices = getDistinctIndices(TAXON); assertEquals("01", 1, indices.size()); }
public static Set<IndexInfo> getDistinctIndices() { Set<IndexInfo> result = new HashSet<>(); for (DocumentType<?> dt : DocumentType.getAllDocumentTypes()) { result.add(dt.getIndexInfo()); } return result; }
ESUtil { public static Set<IndexInfo> getDistinctIndices() { Set<IndexInfo> result = new HashSet<>(); for (DocumentType<?> dt : DocumentType.getAllDocumentTypes()) { result.add(dt.getIndexInfo()); } return result; } }
ESUtil { public static Set<IndexInfo> getDistinctIndices() { Set<IndexInfo> result = new HashSet<>(); for (DocumentType<?> dt : DocumentType.getAllDocumentTypes()) { result.add(dt.getIndexInfo()); } return result; } private  ESUtil(); }
ESUtil { public static Set<IndexInfo> getDistinctIndices() { Set<IndexInfo> result = new HashSet<>(); for (DocumentType<?> dt : DocumentType.getAllDocumentTypes()) { result.add(dt.getIndexInfo()); } return result; } private  ESUtil(); static RestHighLevelClient esClient(); static T toDocumentObject(SearchHit hit, DocumentType<T> dt); static SearchRequest newSearchRequest(DocumentType<?> dt); static CountRequest newCountRequest(DocumentType<?> dt); static SearchResponse executeSearchRequest(SearchRequest request); static CountResponse executeCountRequest(CountRequest request); static String getElasticsearchId(SourceSystem sourceSystem, String sourceSystemId); static String getElasticsearchId(SourceSystem sourceSystem, int sourceSystemId); static Set<IndexInfo> getDistinctIndices(); static Set<IndexInfo> getDistinctIndices(DocumentType<?>... documentTypes); static void deleteAllIndices(); static void createAllIndices(); static void deleteIndex(DocumentType<?> documentType); static void deleteIndices(Set<IndexInfo> indices); static void deleteIndex(IndexInfo indexInfo); static void deleteIndex(String index); static void createIndex(DocumentType<?> documentType); static void createIndices(Set<IndexInfo> indices); @SuppressWarnings("unchecked") static void createIndex(IndexInfo indexInfo); static void clearCache(IndexInfo indexInfo); static String getIndexSetting(DocumentType<?> dt, String setting); static String getIndexSetting(IndexInfo indexInfo, String setting); static Map<String, String> getIndexSettings(DocumentType<?> dt, String... settings); static Map<String, String> getIndexSettings(IndexInfo indexInfo, String... settings); static void refreshIndex(DocumentType<?> documentType); static void refreshIndex(IndexInfo indexInfo); static String getAutoRefreshInterval(IndexInfo indexInfo); static Object disableAutoRefresh(IndexInfo indexInfo); static void setAutoRefreshInterval(IndexInfo indexInfo, String interval); static void createType(DocumentType<T> dt); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static Map<String, Object> getNbaMetadata(); }
ESUtil { public static Set<IndexInfo> getDistinctIndices() { Set<IndexInfo> result = new HashSet<>(); for (DocumentType<?> dt : DocumentType.getAllDocumentTypes()) { result.add(dt.getIndexInfo()); } return result; } private  ESUtil(); static RestHighLevelClient esClient(); static T toDocumentObject(SearchHit hit, DocumentType<T> dt); static SearchRequest newSearchRequest(DocumentType<?> dt); static CountRequest newCountRequest(DocumentType<?> dt); static SearchResponse executeSearchRequest(SearchRequest request); static CountResponse executeCountRequest(CountRequest request); static String getElasticsearchId(SourceSystem sourceSystem, String sourceSystemId); static String getElasticsearchId(SourceSystem sourceSystem, int sourceSystemId); static Set<IndexInfo> getDistinctIndices(); static Set<IndexInfo> getDistinctIndices(DocumentType<?>... documentTypes); static void deleteAllIndices(); static void createAllIndices(); static void deleteIndex(DocumentType<?> documentType); static void deleteIndices(Set<IndexInfo> indices); static void deleteIndex(IndexInfo indexInfo); static void deleteIndex(String index); static void createIndex(DocumentType<?> documentType); static void createIndices(Set<IndexInfo> indices); @SuppressWarnings("unchecked") static void createIndex(IndexInfo indexInfo); static void clearCache(IndexInfo indexInfo); static String getIndexSetting(DocumentType<?> dt, String setting); static String getIndexSetting(IndexInfo indexInfo, String setting); static Map<String, String> getIndexSettings(DocumentType<?> dt, String... settings); static Map<String, String> getIndexSettings(IndexInfo indexInfo, String... settings); static void refreshIndex(DocumentType<?> documentType); static void refreshIndex(IndexInfo indexInfo); static String getAutoRefreshInterval(IndexInfo indexInfo); static Object disableAutoRefresh(IndexInfo indexInfo); static void setAutoRefreshInterval(IndexInfo indexInfo, String interval); static void createType(DocumentType<T> dt); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static Map<String, Object> getNbaMetadata();  }