Example #1
0
 private static int shrink(Mapping mapping, boolean force) {
   try {
     PCLCollection pcl = ((MappingImpl) mapping).getPCLCollection();
     if (pcl != null) return pcl.shrink(force);
   } catch (Throwable t) {
     t.printStackTrace();
   }
   return 0;
 }
Example #2
0
 private static long _count(Mapping mapping) {
   PCLCollection pcl = ((MappingImpl) mapping).getPCLCollection();
   return pcl == null ? 0 : pcl.count();
 }