Skip to content

Package: IndexResponse

IndexResponse

nameinstructionbranchcomplexitylinemethod
IndexResponse(String[])
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
IndexResponse(boolean)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getIndexes()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
isIndexExists()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.elasticsearch.client.model;
14:
15: /**
16: * {@link IndexResponse} definition.
17: *
18: * @since 1.0.0
19: */
20: public class IndexResponse {
21:
22: private boolean indexExists;
23: private String[] indexes;
24:
25: /**
26: * Constructor.
27: *
28: * @param indexExists Whether or not the index esists.
29: * @since 1.0.0
30: */
31: public IndexResponse(boolean indexExists) {
32: this.indexExists = indexExists;
33: }
34:
35: /**
36: * Constructor.
37: *
38: * @param indexes The index names.
39: * @since 1.0.0
40: */
41: public IndexResponse(String[] indexes) {
42: this.indexes = indexes;
43: }
44:
45: /**
46: * Gets whether or not the index esists.
47: *
48: * @return {@code true} if index exists, {@code false} otherwise.
49: * @since 1.0.0
50: */
51: public boolean isIndexExists() {
52: return indexExists;
53: }
54:
55: /**
56: * Gets the index names.
57: *
58: * @return The index names.
59: * @since 1.0.0
60: */
61: public String[] getIndexes() {
62: return indexes;
63: }
64:
65: }