forked from alibaba/DataX
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Types.OTHER for postgresql geometry column type
- Loading branch information
1 parent
ba0a9bc
commit 59e3667
Showing
8 changed files
with
222 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../java/com/alibaba/datax/plugin/writer/elasticsearchwriter/IInitialElasticSearchIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.alibaba.datax.plugin.writer.elasticsearchwriter; | ||
|
||
import com.qlangtech.tis.datax.IDataxProcessor; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author: 百岁([email protected]) | ||
* @create: 2024-07-06 21:02 | ||
**/ | ||
public interface IInitialElasticSearchIndex { | ||
public List<ESColumn> initialIndex(IDataxProcessor dataxProcessor); | ||
} |
25 changes: 25 additions & 0 deletions
25
...riter/src/test/java/com/alibaba/datax/plugin/writer/elasticsearchwriter/TestESClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.alibaba.datax.plugin.writer.elasticsearchwriter; | ||
|
||
import com.alibaba.datax.plugin.writer.elasticsearchwriter.ESClient.SchemaCol; | ||
import junit.framework.TestCase; | ||
import org.junit.Assert; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author: 百岁([email protected]) | ||
* @create: 2024-07-06 17:27 | ||
**/ | ||
public class TestESClient extends TestCase { | ||
public void testGetMapping() throws Exception { | ||
String endpoint = "http://192.168.28.201:9200"; | ||
ESInitialization config = (ESInitialization.create(endpoint, null, null, | ||
false, | ||
300000, | ||
false, | ||
false)); | ||
ESClient esClient = new ESClient(config); | ||
List<SchemaCol> mapping = esClient.getMapping("video"); | ||
Assert.assertTrue(mapping.size() > 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.