code: private void addShardedLinkValues(TableDefinition tableDef, DBObject dbObj) {
          for (FieldDefinition fieldDef : tableDef.getFieldDefinitions()) {
              if (fieldDef.isLinkField() && fieldDef.isSharded()) {
                  TableDefinition extentTableDef = tableDef.getLinkExtentTableDef(fieldDef);
                  Set<Integer> shardNums = getShards(extentTableDef).keySet();
                  Set<String> values = getShardedLinkValues(dbObj.getObjectID(), fieldDef, shardNums);
                  dbObj.addFieldValues(fieldDef.getName(), values);
              }
          }
      }
docs: Add sharded link values, if any, to the given DBObject.