Package org.dashbuilder.dataset.json
Class ELSDefJSONMarshaller
- java.lang.Object
-
- org.dashbuilder.dataset.json.ELSDefJSONMarshaller
-
- All Implemented Interfaces:
DataSetDefJSONMarshallerExt<ElasticSearchDataSetDef>
public class ELSDefJSONMarshaller extends Object implements DataSetDefJSONMarshallerExt<ElasticSearchDataSetDef>
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_SYNCEDstatic StringCLUSTER_NAMEstatic StringINDEXstatic ELSDefJSONMarshallerINSTANCEstatic StringQUERYstatic StringRELEVANCEstatic StringSERVER_URLstatic StringTYPE
-
Constructor Summary
Constructors Constructor Description ELSDefJSONMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJson(ElasticSearchDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Updates the given data set def instance with the status stored into the json object passed as a parameter.voidtoJson(ElasticSearchDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Writes into the given json object the status of the data set def instance.
-
-
-
Field Detail
-
INSTANCE
public static ELSDefJSONMarshaller INSTANCE
-
SERVER_URL
public static final String SERVER_URL
- See Also:
- Constant Field Values
-
CLUSTER_NAME
public static final String CLUSTER_NAME
- See Also:
- Constant Field Values
-
INDEX
public static final String INDEX
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
QUERY
public static final String QUERY
- See Also:
- Constant Field Values
-
RELEVANCE
public static final String RELEVANCE
- See Also:
- Constant Field Values
-
CACHE_SYNCED
public static final String CACHE_SYNCED
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public void fromJson(ElasticSearchDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtUpdates the given data set def instance with the status stored into the json object passed as a parameter.- Specified by:
fromJsonin interfaceDataSetDefJSONMarshallerExt<ElasticSearchDataSetDef>
-
toJson
public void toJson(ElasticSearchDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtWrites into the given json object the status of the data set def instance.- Specified by:
toJsonin interfaceDataSetDefJSONMarshallerExt<ElasticSearchDataSetDef>
-
-