public class RangerPolicyResultFilter
extends com.ibm.gaiandb.policyframework.SQLResultFilterX
| Constructor and Description |
|---|
RangerPolicyResultFilter()
Policy instantiation constructor - invoked for every new query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invoked when Derby closes the GaianTable or GaianQuery instance.
|
protected Object |
executeOperationImpl(String opID,
Object... args)
This method provides generic extensibility of the Policy framework.
|
boolean |
filterRow(org.apache.derby.iapi.types.DataValueDescriptor[] row)
This method is deprecated in favour of filterRowsBatch() - it is here for compatibility with SQLResultFilter
|
org.apache.derby.iapi.types.DataValueDescriptor[][] |
filterRowsBatch(String dataSourceID,
org.apache.derby.iapi.types.DataValueDescriptor[][] rows)
Apply policy on a batch of rows..
|
int |
nextQueriedDataSource(String dataSource,
int[] columnMappings)
This method is deprecated in favour of the same method below having 3 arguments - it is here for compatibility with SQLResultFilter
|
int |
nextQueriedDataSource(String dataSourceID,
String dataSourceDescription,
int[] columnMappings) |
int |
setDataSourceWrapper(String wrapperID)
This method is not currently called by Gaian.
|
boolean |
setForwardingNode(String nodeName)
Set up the forwarding node name
|
boolean |
setLogicalTable(String logicalTableName,
ResultSetMetaData logicalTableResultSetMetaData) |
boolean |
setQueriedColumns(int[] queriedColumns) |
boolean |
setUserCredentials(String credentialsStringBlock)
Used to parse the GDB_CREDENTIALS string passed on every statement.
|
public RangerPolicyResultFilter()
public boolean setForwardingNode(String nodeName)
nodeName - forwarding node namepublic void close()
public int nextQueriedDataSource(String dataSource, int[] columnMappings)
public int setDataSourceWrapper(String wrapperID)
setDataSourceWrapper in class com.ibm.gaiandb.policyframework.SQLResultFilterXpublic boolean filterRow(org.apache.derby.iapi.types.DataValueDescriptor[] row)
public boolean setUserCredentials(String credentialsStringBlock)
credentialsStringBlock - credentials as stringpublic int nextQueriedDataSource(String dataSourceID, String dataSourceDescription, int[] columnMappings)
nextQueriedDataSource in class com.ibm.gaiandb.policyframework.SQLResultFilterXdataSourceID - data source identifierdataSourceDescription - data source descriptioncolumnMappings - columns for be mappedpublic org.apache.derby.iapi.types.DataValueDescriptor[][] filterRowsBatch(String dataSourceID, org.apache.derby.iapi.types.DataValueDescriptor[][] rows)
filterRowsBatch in class com.ibm.gaiandb.policyframework.SQLResultFilterXdataSourceID - data source identifierrows - rows that have to be evaluatedpublic boolean setLogicalTable(String logicalTableName, ResultSetMetaData logicalTableResultSetMetaData)
public boolean setQueriedColumns(int[] queriedColumns)
protected Object executeOperationImpl(String opID, Object... args)
executeOperationImpl in class com.ibm.gaiandb.policyframework.SQLResultFilterXCopyright © 2018–2020 ODPi. All rights reserved.