Package org.teiid.translator.mongodb
Class MongoDBMetadataProcessor
- java.lang.Object
-
- org.teiid.translator.mongodb.MongoDBMetadataProcessor
-
- All Implemented Interfaces:
MetadataProcessor<MongoDBConnection>
public class MongoDBMetadataProcessor extends Object implements MetadataProcessor<MongoDBConnection>
-
-
Field Summary
Fields Modifier and Type Field Description static StringEMBEDDABLEstatic StringMERGE-
Fields inherited from interface org.teiid.translator.MetadataProcessor
FQN, SOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description MongoDBMetadataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExcludeTables()StringgetIncludeTables()intgetSampleSize()booleanisFullEmbeddedNames()voidprocess(MetadataFactory metadataFactory, MongoDBConnection connection)voidsetExcludeTables(String excludeTables)voidsetFullEmbeddedNames(boolean fullEmbeddedNames)voidsetIncludeTables(String tableNamePattern)voidsetSampleSize(int sampleSize)protected booleanshouldExclude(String fullName)protected booleanshouldInclude(String fullName)
-
-
-
Field Detail
-
MERGE
@ExtensionMetadataProperty(applicable=org.teiid.metadata.Table.class, datatype=java.lang.String.class, display="Merge Into Table", description="Declare the name of table that this table needs to be merged into. No separate copy maintained") public static final String MERGE
- See Also:
- Constant Field Values
-
EMBEDDABLE
@ExtensionMetadataProperty(applicable=org.teiid.metadata.Table.class, datatype=java.lang.String.class, display="Embedded Into Table", description="Declare the name of table that this table needs to be embedded into. A separate copy is also maintained") public static final String EMBEDDABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(MetadataFactory metadataFactory, MongoDBConnection connection) throws TranslatorException
- Specified by:
processin interfaceMetadataProcessor<MongoDBConnection>- Throws:
TranslatorException
-
getExcludeTables
@TranslatorProperty(display="Exclude Tables", category=IMPORT, description="A case-insensitive regular expression that when matched against a fully qualified Teiid table name will exclude it from import. Applied after table names are retrieved. Use a negative look-ahead (?!<inclusion pattern>).* to act as an inclusion filter.") public String getExcludeTables()
-
shouldExclude
protected boolean shouldExclude(String fullName)
-
setExcludeTables
public void setExcludeTables(String excludeTables)
-
getIncludeTables
@TranslatorProperty(display="Include Tables", category=IMPORT, description="A case-insensitive regular expression that when matched against a fully qualified Teiid table name will include it from import. Applied after table names are retrieved. Use a negative look-ahead (?!<inclusion pattern>).* to act as an exclusion filter") public String getIncludeTables()
-
shouldInclude
protected boolean shouldInclude(String fullName)
-
setIncludeTables
public void setIncludeTables(String tableNamePattern)
-
getSampleSize
@TranslatorProperty(display="Sample Size", category=IMPORT, description="The number of top level documents of a given collection name to sample.") public int getSampleSize()
-
setSampleSize
public void setSampleSize(int sampleSize)
-
isFullEmbeddedNames
@TranslatorProperty(display="Full Embedded Names", category=IMPORT, description="Whether to prefix embedded table names with their parents, e.g. parent_embedded") public boolean isFullEmbeddedNames()
-
setFullEmbeddedNames
public void setFullEmbeddedNames(boolean fullEmbeddedNames)
-
-