else if (keySource.isNull()) {
keyValue = null;
}
else {
StringBuilder str = new StringBuilder();
type.format(keySource, AkibanAppender.of(str));
keyValue = str.toString();
}
if (willUseBinaryTag(keyValue)) {
// Otherwise it would be ambiguous when reading.
keyValue = getRawSegment(key, i);