Java源码示例:org.apache.calcite.util.CancelFlag
示例1
@Override
public <T> T unwrap(Class<T> clazz) {
if(clazz == PlannerSettings.class){
return (T) this;
} else if(clazz == CalciteConnectionConfig.class){
return (T) CONFIG;
} if (clazz == SabotConfig.class) {
return (T) sabotConfig;
} else if (CancelFlag.class.isAssignableFrom(clazz)) {
return clazz.cast(cancelFlag);
}
return null;
}
示例2
@SuppressWarnings("deprecation")
public void setCancelFlag(CancelFlag cancelFlag) {
// ignored
}
示例3
@SuppressWarnings("deprecation")
public void setCancelFlag(CancelFlag cancelFlag) {
// ignored
}
示例4
/**
* Does nothing.
*
* @deprecated Previously, this method installed the cancellation-checking
* flag for this planner, but is now deprecated. Now, you should add a
* {@link CancelFlag} to the {@link Context} passed to the constructor.
*
* @param cancelFlag flag which the planner should periodically check
*/
@Deprecated // to be removed before 2.0
void setCancelFlag(CancelFlag cancelFlag);
示例5
/**
* Does nothing.
*
* @deprecated Previously, this method installed the cancellation-checking
* flag for this planner, but is now deprecated. Now, you should add a
* {@link CancelFlag} to the {@link Context} passed to the constructor.
*
* @param cancelFlag flag which the planner should periodically check
*/
@Deprecated // to be removed before 2.0
void setCancelFlag(CancelFlag cancelFlag);