forked from alibaba/DataX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request alibaba#1318 from johnrobbet/obreader_read_by_part…
…ition Obreader read by partition
- Loading branch information
Showing
11 changed files
with
470 additions
and
42 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
11 changes: 11 additions & 0 deletions
11
...reader/src/main/java/com/alibaba/datax/plugin/reader/oceanbasev10reader/ext/Constant.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,11 @@ | ||
package com.alibaba.datax.plugin.reader.oceanbasev10reader.ext; | ||
|
||
/** | ||
* @author johnrobbet | ||
*/ | ||
public class Constant { | ||
|
||
public static String WEAK_READ_QUERY_SQL_TEMPLATE_WITHOUT_WHERE = "select /*+read_consistency(weak)*/ %s from %s "; | ||
|
||
public static String WEAK_READ_QUERY_SQL_TEMPLATE = "select /*+read_consistency(weak)*/ %s from %s where (%s)"; | ||
} |
16 changes: 16 additions & 0 deletions
16
...der/src/main/java/com/alibaba/datax/plugin/reader/oceanbasev10reader/ext/ObReaderKey.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,16 @@ | ||
package com.alibaba.datax.plugin.reader.oceanbasev10reader.ext; | ||
|
||
/** | ||
* @author johnrobbet | ||
*/ | ||
public class ObReaderKey { | ||
|
||
public final static String READ_BY_PARTITION = "readByPartition"; | ||
|
||
public final static String PARTITION_NAME = "partitionName"; | ||
|
||
public final static String PARTITION_TYPE = "partitionType"; | ||
|
||
public final static String OB_COMPATIBILITY_MODE = "obCompatibilityMode"; | ||
|
||
} |
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.