@Deprecated public class DataFilter extends Object implements DataFilterBase
FILTER_SEPARATOR, FILTER_SEPARATOR_INNER| Constructor and Description |
|---|
DataFilter()
Deprecated.
|
DataFilter(String tableFields)
Deprecated.
|
DataFilter(String tenant,
String tableFields)
Deprecated.
Initialize the filter using formatted string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTablesFields(String tableFields)
Deprecated.
Add more filter information after initializing, note that the user should
make it consistent to the formatted parameters.
|
String |
getConnectStoreFilterConditions()
Deprecated.
Get the formatted filter string which will be delivered to store.
|
boolean |
getIsAllMatch()
Deprecated.
Fast match if cols are all needed.
|
Map<String,Map<String,List<String>>> |
getReflectionMap()
Deprecated.
|
Map<String,Map<String,List<String>>> |
getRequireMap()
Deprecated.
|
void |
setBranchDb(String db)
Deprecated.
The current version uses topic instead of dbname, so use the
method to be compatible with the older version.
|
String |
toString()
Deprecated.
|
boolean |
validateFilter(com.aliyun.drc.client.enums.DBType dbType)
Deprecated.
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 in interface DataFilterBasedb - is the original branched db name.public void addTablesFields(String tableFields)
tableFields - consistent formatted filter information.public boolean getIsAllMatch()
DataFilterBasegetIsAllMatch in interface DataFilterBasepublic Map<String,Map<String,List<String>>> getReflectionMap()
getReflectionMap in interface DataFilterBasepublic Map<String,Map<String,List<String>>> getRequireMap()
getRequireMap in interface DataFilterBasepublic boolean validateFilter(com.aliyun.drc.client.enums.DBType dbType)
throws DRCClientException
DataFilterBasevalidateFilter in interface 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 in interface DataFilterBaseCopyright © 2019. All Rights Reserved.