Package org.projectnessie.versioned.gc
Class IdentifyUnreferencedAssets.AssetFlatMapper<T,R extends AssetKey>
- java.lang.Object
-
- org.projectnessie.versioned.gc.IdentifyUnreferencedAssets.AssetFlatMapper<T,R>
-
- All Implemented Interfaces:
Serializable,org.apache.spark.api.java.function.FlatMapFunction<CategorizedValue,IdentifyUnreferencedAssets.CategorizedAssetKey>
- Enclosing class:
- IdentifyUnreferencedAssets<T,R extends AssetKey>
public static class IdentifyUnreferencedAssets.AssetFlatMapper<T,R extends AssetKey> extends Object implements org.apache.spark.api.java.function.FlatMapFunction<CategorizedValue,IdentifyUnreferencedAssets.CategorizedAssetKey>
Spark flat map function to convert a value into an iterator of AssetKeys keeping their reference state.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetFlatMapper(Serializer<T> valueWorker, Serializer<AssetKey> assetKeySerializer, AssetKeyConverter<T,R> assetKeyConverter)Construct mapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<IdentifyUnreferencedAssets.CategorizedAssetKey>call(CategorizedValue r)
-
-
-
Constructor Detail
-
AssetFlatMapper
public AssetFlatMapper(Serializer<T> valueWorker, Serializer<AssetKey> assetKeySerializer, AssetKeyConverter<T,R> assetKeyConverter)
Construct mapper.- Parameters:
valueWorker- serde for values and their asset keys.assetKeySerializer- locate and serialize AssetKeysassetKeyConverter- convert value of type T to its associated Asset Keys
-
-
Method Detail
-
call
public Iterator<IdentifyUnreferencedAssets.CategorizedAssetKey> call(CategorizedValue r) throws Exception
-
-