/** * Constructs a column name from the two-part family:qualifier. * * @param family The fiji column family. * @param qualifier The fiji column qualifier: null means unqualified. * Empty string qualifiers are forced to be null. * @deprecated FijiColumnName constructors are deprecated. Please use the factory method * {@link FijiColumnName#create(String, String)}. This constructor will become private in * the future. */ @Deprecated public FijiColumnName(String family, String qualifier) { Preconditions.checkArgument(family != null, "Family name may not be null."); mFamily = family; mQualifier = ("".equals(qualifier) ? null : qualifier); validateNames(); }
/** * Constructs a column name from a string "family" or "family:qualifier". * Empty string qualifiers are normalized to null. That is, if fullName is * of the form "family" or "family:", the qualifier will be treated as null. * * @param fullName The name of a fiji column "family:qualifier". * @deprecated FijiColumnName constructors are deprecated. Please use the factory method * {@link FijiColumnName#create(String)}. This constructor will become private in the future. */ @Deprecated public FijiColumnName(String fullName) { Preconditions.checkArgument(fullName != null, "Column name may not be null. At least specify family"); final int colon = fullName.indexOf(":"); mFamily = colon < 0 ? fullName : fullName.substring(0, colon); mQualifier = colon < 0 || fullName.length() == colon + 1 ? null : fullName.substring(colon + 1); validateNames(); }