T
- Class of input data being passed in - either ByteString - video data encoded into.
String or String - a GCS URI of the video to be annotated.@Experimental public abstract class AnnotateVideo<T> extends DoFn<T,java.util.List<com.google.cloud.videointelligence.v1.VideoAnnotationResults>>
DoFn.AlwaysFetched, DoFn.BoundedPerElement, DoFn.BundleFinalizer, DoFn.Element, DoFn.FieldAccess, DoFn.FinishBundle, DoFn.FinishBundleContext, DoFn.GetInitialRestriction, DoFn.GetInitialWatermarkEstimatorState, DoFn.GetRestrictionCoder, DoFn.GetSize, DoFn.GetWatermarkEstimatorStateCoder, DoFn.MultiOutputReceiver, DoFn.NewTracker, DoFn.NewWatermarkEstimator, DoFn.OnTimer, DoFn.OnTimerContext, DoFn.OnTimerFamily, DoFn.OnWindowExpiration, DoFn.OutputReceiver<T>, DoFn.ProcessContext, DoFn.ProcessContinuation, DoFn.ProcessElement, DoFn.RequiresStableInput, DoFn.RequiresTimeSortedInput, DoFn.Restriction, DoFn.Setup, DoFn.SideInput, DoFn.SplitRestriction, DoFn.StartBundle, DoFn.StartBundleContext, DoFn.StateId, DoFn.Teardown, DoFn.TimerFamily, DoFn.TimerId, DoFn.Timestamp, DoFn.UnboundedPerElement, DoFn.WatermarkEstimatorState, DoFn.WindowedContext
Modifier and Type | Field and Description |
---|---|
protected PCollectionView<java.util.Map<T,com.google.cloud.videointelligence.v1.VideoContext>> |
contextSideInput |
protected java.util.List<com.google.cloud.videointelligence.v1.Feature> |
featureList |
Constructor and Description |
---|
AnnotateVideo(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList) |
AnnotateVideo(PCollectionView<java.util.Map<T,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput,
java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList) |
Modifier and Type | Method and Description |
---|---|
abstract void |
processElement(DoFn.ProcessContext context)
Process element implementation required.
|
void |
startBundle() |
void |
teardown() |
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, prepareForProcessing
protected final PCollectionView<java.util.Map<T,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput
protected final java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList
public AnnotateVideo(PCollectionView<java.util.Map<T,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput, java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
public AnnotateVideo(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
@DoFn.StartBundle public void startBundle() throws java.io.IOException
java.io.IOException
@DoFn.Teardown public void teardown()
@DoFn.ProcessElement public abstract void processElement(DoFn.ProcessContext context) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException