public abstract class OrdSparkFrameProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Properties |
m_props |
Modifier | Constructor and Description |
---|---|
protected |
OrdSparkFrameProcessor(java.util.Properties props)
Create an OrdSparkFrameProcessor object that processes video frames in a flat map function in Spark.
|
Modifier and Type | Method and Description |
---|---|
protected void |
close()
Close the OrdSparkFrameProcessor object, releasing any resources being used.
|
protected void |
finalize() |
abstract java.lang.Iterable<scala.Tuple2<org.apache.hadoop.io.Text,oracle.ord.hadoop.mapreduce.OrdImageWritable>> |
processFrame(scala.Tuple2<org.apache.hadoop.io.Text,oracle.ord.hadoop.mapreduce.OrdImageWritable> tuple)
Processes the tuple of Text and OrdImageWritable in a flat map function in Spark.
|
protected OrdSparkFrameProcessor(java.util.Properties props)
props
- A java Properties object that contains all the properties set in SparkConfpublic abstract java.lang.Iterable<scala.Tuple2<org.apache.hadoop.io.Text,oracle.ord.hadoop.mapreduce.OrdImageWritable>> processFrame(scala.Tuple2<org.apache.hadoop.io.Text,oracle.ord.hadoop.mapreduce.OrdImageWritable> tuple)
tuple
- The pair of Text and OrdImageWritable, which includes text information and image information for a frame.protected void close()
protected void finalize()
finalize
in class java.lang.Object
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.