X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=sdnr%2Fwt%2Fcommon%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fccsdk%2Ffeatures%2Fsdnr%2Fwt%2Fcommon%2Fdatabase%2FSearchHit.java;h=020dd2b4628a8becb81e336c76b9e1c06e504ffc;hb=64d0d3d599e0ea26ec1613b2befd411ad08f884d;hp=b6df2620b9ab0d0c53f146aba8dcfe1abfcebc04;hpb=ce964fd1a1bc139bad6548ba79a0ac84190af598;p=ccsdk%2Ffeatures.git diff --git a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/database/SearchHit.java b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/database/SearchHit.java index b6df2620b..020dd2b46 100644 --- a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/database/SearchHit.java +++ b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/database/SearchHit.java @@ -21,42 +21,38 @@ import org.json.JSONObject; public class SearchHit { - private final String index; - private final String type; - private final String id; - private final JSONObject source; - private final JSONObject raw; + private final String index; + private final String type; + private final String id; + private final JSONObject source; + private final JSONObject raw; - public SearchHit(JSONObject o) { - this.raw = o; - this.index=o.getString("_index"); - this.type = o.getString("_type"); - this.id = o.getString("_id"); - this.source = o.getJSONObject("_source"); - } - - public String getIndex() { - return this.index; - } - public String getType() { - return this.type; - } - public String getId() { - return this.id; - } + public SearchHit(JSONObject o) { + this.raw = o; + this.index=o.getString("_index"); + this.type = o.getString("_type"); + this.id = o.getString("_id"); + this.source = o.getJSONObject("_source"); + } - public JSONObject getSource() { - return this.source; - } - public String getSourceAsString() { - return this.source.toString(); - } + public String getIndex() { + return this.index; + } + public String getType() { + return this.type; + } + public String getId() { + return this.id; + } - /** - * @return - */ - public JSONObject getRaw() { - return this.raw; - } + public JSONObject getSource() { + return this.source; + } + public String getSourceAsString() { + return this.source.toString(); + } + public JSONObject getRaw() { + return this.raw; + } }