Add the given type, as well as all referenced types to the cascading tokens list.
Add the given type, as well as all referenced types to the cascading tokens list. note, for maximal efficiency, you should also register those types with the kryo instantiator being used.
Reflect over a scalding job to try and identify types it uses so they can be tokenized by cascading.
Reflect over a scalding job to try and identify types it uses so they can be tokenized by cascading. Since scala reflection is broken with the Hadoop InterfaceAudiance annotation (see https://issues.scala-lang.org/browse/SI-10129), we can't iterate over scalaType.members, so we instead use java reflection to iterate over fields to find the ones we care about, and then look those up in scala reflection to find the full un-erased type signatures, and try to find types from those.
Note: this not guaranteed to find every used type. Eg, it can't find types used in a step that isn't referred to in a field