public class DataFilterV2 extends Object implements DataFilterBase
| Modifier and Type | Class and Description |
|---|---|
class |
DataFilterV2.FilterInfo
Class store the raw info user passed.
|
FILTER_SEPARATOR, FILTER_SEPARATOR_INNER| Modifier and Type | Method and Description |
|---|---|
DataFilterV2 |
addFilterTuple(String tenant,
String db,
String table,
String... cols) |
static DataFilterV2 |
create() |
String |
getBranchDB() |
String |
getConnectStoreFilterConditions()
Get the formatted filter string which will be delivered to store.
|
List<DataFilterV2.FilterInfo> |
getFilterInfoList() |
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 branchDb)
Deprecated.
|
String |
toString() |
boolean |
validateFilter(com.aliyun.drc.client.enums.DBType dbType)
Validate if the filter user passed is legal
|
public static DataFilterV2 create()
public DataFilterV2 addFilterTuple(String tenant, String db, String table, String... cols)
public List<DataFilterV2.FilterInfo> getFilterInfoList()
public String getBranchDB()
public String getConnectStoreFilterConditions()
DataFilterBasegetConnectStoreFilterConditions 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 - DRCClientException@Deprecated public void setBranchDb(String branchDb)
setBranchDb in interface DataFilterBasebranchDb - branchDbpublic 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 DataFilterBaseCopyright © 2019. All Rights Reserved.