コード例 #1
0
ファイル: ContentSummary.cs プロジェクト: orf53975/hadoop.net
 /// <summary>Returns true if any storage type consumption information is available</summary>
 public virtual bool IsTypeConsumedAvailable()
 {
     if (typeConsumed == null)
     {
         return(false);
     }
     foreach (StorageType t in StorageType.GetTypesSupportingQuota())
     {
         if (typeConsumed[(int)(t)] > 0)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
ファイル: ContentSummary.cs プロジェクト: orf53975/hadoop.net
 /// <summary>Returns true if any storage type quota has been set</summary>
 public virtual bool IsTypeQuotaSet()
 {
     if (typeQuota == null)
     {
         return(false);
     }
     foreach (StorageType t in StorageType.GetTypesSupportingQuota())
     {
         if (typeQuota[(int)(t)] > 0)
         {
             return(true);
         }
     }
     return(false);
 }