Esempio n. 1
0
        string Item.get_string_rep()
        {
            switch (stype)
            {
            case DEDUP_SORT_ORDER.DBN_BASED:
            case DEDUP_SORT_ORDER.UNDEFINED_PLACEHOLDER:
                return(sourcedbn + "\t" + destinationdbn + "\t" + OPS.HashToString(fp) + "\t" + fsid + "," + inode + "," + fbn);

            case DEDUP_SORT_ORDER.FINGERPRINT_BASED:
                return(OPS.HashToString(fp) + "\t" + sourcedbn + "\t" + destinationdbn + "\t" + fsid + "," + inode + "," + fbn);

            case DEDUP_SORT_ORDER.INO_FBN_BASED:
                return(fsid + "," + inode + "," + fbn + ",\t" + OPS.HashToString(fp) + "\t" + sourcedbn + "\t" + destinationdbn);
            }
            return(null);
        }
Esempio n. 2
0
        string Item.get_string_rep()
        {
            switch (stype)
            {
            case DEDUP_SORT_ORDER.UNDEFINED_PLACEHOLDER:
            case DEDUP_SORT_ORDER.DBN_BASED:
                return(dbn + "\t" + OPS.HashToString(fp));

            case DEDUP_SORT_ORDER.FINGERPRINT_BASED:
                return(OPS.HashToString(fp) + "\t" + dbn);

            case DEDUP_SORT_ORDER.INO_FBN_BASED:
                return("Wrong type set");
            }
            return(null);
        }
Esempio n. 3
0
 string Item.get_string_rep()
 {
     return(inode + "," + fbn + ",\t" + OPS.HashToString(fp));
 }