Package org.apache.hop.core.metadata
Class SerializableMetadataProvider
- java.lang.Object
-
- org.apache.hop.metadata.serializer.BaseMetadataProvider
-
- org.apache.hop.metadata.serializer.memory.MemoryMetadataProvider
-
- org.apache.hop.core.metadata.SerializableMetadataProvider
-
- All Implemented Interfaces:
IHopMetadataProvider
public class SerializableMetadataProvider extends MemoryMetadataProvider implements IHopMetadataProvider
This metadata implementation is an in-memory metadata which serializes using JSON. In other words, JSON is read into memory as a MetaStore and then you can ask to serialize that information to and from JSON.
-
-
Field Summary
-
Fields inherited from class org.apache.hop.metadata.serializer.memory.MemoryMetadataProvider
DEFAULT_DESCRIPTION
-
Fields inherited from class org.apache.hop.metadata.serializer.BaseMetadataProvider
description, variables
-
-
Constructor Summary
Constructors Constructor Description SerializableMetadataProvider()SerializableMetadataProvider(String storeJson)SerializableMetadataProvider(IHopMetadataProvider source)Create a copy of all elements in an existing metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoJson()-
Methods inherited from class org.apache.hop.metadata.serializer.memory.MemoryMetadataProvider
getSerializer, getSerializerMap, getTwoWayPasswordEncoder, setSerializerMap, setTwoWayPasswordEncoder
-
Methods inherited from class org.apache.hop.metadata.serializer.BaseMetadataProvider
getDescription, getMetadataClasses, getMetadataClassForKey, getVariables, setDescription, setVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.metadata.api.IHopMetadataProvider
getDescription, getMetadataClasses, getMetadataClassForKey, getSerializer, getTwoWayPasswordEncoder
-
-
-
-
Constructor Detail
-
SerializableMetadataProvider
public SerializableMetadataProvider()
-
SerializableMetadataProvider
public SerializableMetadataProvider(IHopMetadataProvider source) throws HopException
Create a copy of all elements in an existing metadata.- Parameters:
source- the source store to copy over- Throws:
HopException
-
SerializableMetadataProvider
public SerializableMetadataProvider(String storeJson) throws org.json.simple.parser.ParseException, HopException
- Throws:
org.json.simple.parser.ParseExceptionHopException
-
-
Method Detail
-
toJson
public String toJson() throws HopException
- Throws:
HopException
-
-