Code example for LoadingCache

Methods: getUnchecked

0
    assert getTraitClass().isInstance(trait)
        : getClass().getName()
        + " cannot canonize a " 
        + trait.getClass().getName();
 
    return canonicalMap.getUnchecked(trait);
  } 
 
  /** 
   * Converts the given RelNode to the given RelTrait. 
   * 
   * @param planner                     the planner requesting the conversion 
   * @param rel                         RelNode to convert 
   * @param toTrait                     RelTrait to convert to 
   * @param allowInfiniteCostConverters flag indicating whether infinite cost 
   *                                    converters are allowed 
   * @return a converted RelNode or null if conversion is not possible 
   */ 
  public abstract RelNode convert( 
      RelOptPlanner planner,
Stop searching for code, let great code find you!  Add Codota to your java IDE