@Deprecated public class DataFilter extends Object implements DataFilterBase
FILTER_SEPARATOR, FILTER_SEPARATOR_INNER| 构造器和说明 |
|---|
DataFilter()
已过时。
|
DataFilter(String tableFields)
已过时。
|
DataFilter(String tenant,
String tableFields)
已过时。
Initialize the filter using formatted string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addTablesFields(String tableFields)
已过时。
Add more filter information after initializing, note that the user should
make it consistent to the formatted parameters.
|
String |
getConnectStoreFilterConditions()
已过时。
Get the formatted filter string which will be delivered to store.
|
boolean |
getIsAllMatch()
已过时。
Fast match if cols are all needed.
|
Map<String,Map<String,List<String>>> |
getReflectionMap()
已过时。
|
Map<String,Map<String,List<String>>> |
getRequireMap()
已过时。
|
void |
setBranchDb(String db)
已过时。
The current version uses topic instead of dbname, so use the
method to be compatible with the older version.
|
String |
toString()
已过时。
|
boolean |
validateFilter(com.aliyun.drc.client.enums.DBType dbType)
已过时。
Validate if the filter user passed is legal
|
public DataFilter()
public DataFilter(String tenant, String tableFields)
tenant - tenanttableFields - the formatted filter information such as
"tableName1;fieldName1;fieldName2|tableName2;fieldName1". No ";" or "|" should be
transfer to
*.tableName1.fieldName1|*.tableName1.fieldName2|...
added at the beginning or end of the string.public DataFilter(String tableFields)
public void setBranchDb(String db)
setBranchDb 在接口中 DataFilterBasedb - is the original branched db name.public void addTablesFields(String tableFields)
tableFields - consistent formatted filter information.public boolean getIsAllMatch()
DataFilterBasegetIsAllMatch 在接口中 DataFilterBasepublic Map<String,Map<String,List<String>>> getReflectionMap()
getReflectionMap 在接口中 DataFilterBasepublic Map<String,Map<String,List<String>>> getRequireMap()
getRequireMap 在接口中 DataFilterBasepublic boolean validateFilter(com.aliyun.drc.client.enums.DBType dbType)
throws DRCClientException
DataFilterBasevalidateFilter 在接口中 DataFilterBasedbType - database type which may be ob, mysql, oracle.
For now, only ob1.0 need special handle which 4 tuple contains tenant, db, tb, cols is strictly required.DRCClientException - DRCClientExceptionpublic String getConnectStoreFilterConditions()
DataFilterBasegetConnectStoreFilterConditions 在接口中 DataFilterBaseCopyright © 2019. All Rights Reserved.