public class ProtobufMetadataProcessor extends Object implements MetadataProcessor<InfinispanConnection>
Modifier and Type | Field and Description |
---|---|
static String |
CACHE |
static String |
MERGE |
static String |
MESSAGE_NAME |
static String |
PARENT_COLUMN_NAME |
static String |
PARENT_TAG |
static String |
PSEUDO |
static String |
TAG |
FQN, SOURCE_PREFIX
Constructor and Description |
---|
ProtobufMetadataProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getProtobufName() |
ProtobufResource |
getProtobufResource() |
String |
getProtoFilePath() |
void |
process(MetadataFactory metadataFactory,
InfinispanConnection connection) |
void |
setProtobufName(String name) |
void |
setProtobufResource(ProtobufResource resource) |
void |
setProtoFilePath(String path) |
@ExtensionMetadataProperty(applicable=Table.class, datatype=java.lang.String.class, display="Merge Into Table", description="Declare the name of parent table that this table needs to be merged into.") public static final String MERGE
@ExtensionMetadataProperty(applicable=Table.class, datatype=java.lang.String.class, display="Cache Name", description="Cache name to store the contents into") public static final String CACHE
@ExtensionMetadataProperty(applicable={Table.class,Column.class}, datatype=java.lang.String.class, display="Message Name", description="Message name this table or column represents") public static final String MESSAGE_NAME
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Protobuf Tag Number", description="Protobuf field tag number") public static final String TAG
@ExtensionMetadataProperty(applicable={Table.class,Column.class}, datatype=java.lang.String.class, display="Protobuf Parent Tag Number", description="Protobuf field parent tag number in the case of complex document") public static final String PARENT_TAG
@ExtensionMetadataProperty(applicable={Table.class,Column.class}, datatype=java.lang.String.class, display="column\'s parent column name", description="Protobuf field parent column name in the case of complex document") public static final String PARENT_COLUMN_NAME
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Pseudo Column", description="Pseudo column for join purposes") public static final String PSEUDO
@TranslatorProperty(display="Protobuf file path", category=IMPORT, description="Protobuf file path to load as the schema of this model") public String getProtoFilePath()
public void setProtoFilePath(String path)
@TranslatorProperty(display="Protobuf Name", category=IMPORT, description="When loading the Protobuf contents from Infinispan, limit the import to this given protobuf name") public String getProtobufName()
public void setProtobufName(String name)
public void process(MetadataFactory metadataFactory, InfinispanConnection connection) throws TranslatorException
process
in interface MetadataProcessor<InfinispanConnection>
TranslatorException
public ProtobufResource getProtobufResource()
public void setProtobufResource(ProtobufResource resource)
Copyright © 2019. All rights reserved.