@Override
  public LazyObjectBase createRowId(ObjectInspector inspector) throws SerDeException {
    // LazyObject can only be binary when it's not a string as well
//    return LazyFactory.createLazyObject(inspector,
//            ColumnEncoding.BINARY == rowIdMapping.getEncoding());
    return LazyFactory.createLazyObject(inspector,
            !TypeInfoFactory.stringTypeInfo.getTypeName().equals(inspector.getTypeName())
            && ColumnEncoding.BINARY == rowIdMapping.getEncoding());
  }
Default implementation of the AccumuloRowIdFactory which uses the normal
{@link AccumuloRowSerializer} methods to serialize the field for storage into Accumulo.
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/serde/DefaultAccumuloRowIdFactory.java