/** * This constructor should be avoided because it creates two new Text objects each time it is called * * @param key */public EdgeColumnParts(Key key) {
getParts(key.getColumnFamilyData());
getParts(key.getColumnQualifierData());
}
/** * This constructor is preferred because it allows the client to reuse Text objects to avoid constructing and destructing Text objects * * @param colFam * @param colQual */public EdgeColumnParts(Text colFam, Text colQual) {
getParts(colFam);
getParts(colQual);
}