public class VideoRecordReader extends BaseRecordReader implements SequenceRecordReader
| Modifier and Type | Field and Description |
|---|---|
static String |
HEIGHT |
static String |
IMAGE_LOADER |
protected InputSplit |
inputSplit |
static String |
WIDTH |
listenersAPPEND_LABEL, LABELS, NAME_SPACE| Constructor and Description |
|---|
VideoRecordReader() |
VideoRecordReader(int height,
int width)
Load the record reader with the given height and width
|
VideoRecordReader(int height,
int width,
boolean appendLabel) |
VideoRecordReader(int height,
int width,
boolean appendLabel,
List<String> labels) |
VideoRecordReader(int height,
int width,
List<String> labels)
Load the record reader with the given height and width
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Configuration |
getConf() |
List<String> |
getLabels() |
boolean |
hasNext() |
void |
initialize(Configuration conf,
InputSplit split) |
void |
initialize(InputSplit split) |
List<Record> |
loadFromMetaData(List<RecordMetaData> recordMetaDatas) |
Record |
loadFromMetaData(RecordMetaData recordMetaData) |
List<SequenceRecord> |
loadSequenceFromMetaData(List<RecordMetaData> recordMetaDatas) |
SequenceRecord |
loadSequenceFromMetaData(RecordMetaData recordMetaData) |
List<Writable> |
next() |
Record |
nextRecord() |
SequenceRecord |
nextSequence() |
List<Writable> |
record(URI uri,
DataInputStream dataInputStream) |
void |
reset() |
boolean |
resetSupported() |
List<List<Writable>> |
sequenceRecord() |
List<List<Writable>> |
sequenceRecord(URI uri,
DataInputStream dataInputStream) |
void |
setConf(Configuration conf) |
batchesSupported, getListeners, invokeListeners, next, setListeners, setListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchesSupported, getListeners, next, setListeners, setListenerspublic static final String HEIGHT
public static final String WIDTH
public static final String IMAGE_LOADER
protected InputSplit inputSplit
public VideoRecordReader()
public VideoRecordReader(int height,
int width,
List<String> labels)
height - the height to loadwidth - the width loadpublic VideoRecordReader(int height,
int width,
boolean appendLabel,
List<String> labels)
public VideoRecordReader(int height,
int width)
height - the height to loadwidth - the width loadpublic VideoRecordReader(int height,
int width,
boolean appendLabel)
public void initialize(InputSplit split) throws IOException, InterruptedException
initialize in interface RecordReaderIOExceptionInterruptedExceptionpublic void initialize(Configuration conf, InputSplit split) throws IOException, InterruptedException
initialize in interface RecordReaderIOExceptionInterruptedExceptionpublic List<Writable> next()
next in interface RecordReaderpublic boolean hasNext()
hasNext in interface RecordReaderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic List<List<Writable>> sequenceRecord()
sequenceRecord in interface SequenceRecordReaderpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface Configurablepublic List<String> getLabels()
getLabels in interface RecordReaderpublic void reset()
reset in interface RecordReaderpublic boolean resetSupported()
resetSupported in interface RecordReaderpublic List<Writable> record(URI uri, DataInputStream dataInputStream) throws IOException
record in interface RecordReaderIOExceptionpublic Record nextRecord()
nextRecord in interface RecordReaderpublic Record loadFromMetaData(RecordMetaData recordMetaData) throws IOException
loadFromMetaData in interface RecordReaderIOExceptionpublic List<Record> loadFromMetaData(List<RecordMetaData> recordMetaDatas) throws IOException
loadFromMetaData in interface RecordReaderIOExceptionpublic List<List<Writable>> sequenceRecord(URI uri, DataInputStream dataInputStream) throws IOException
sequenceRecord in interface SequenceRecordReaderIOExceptionpublic SequenceRecord nextSequence()
nextSequence in interface SequenceRecordReaderpublic SequenceRecord loadSequenceFromMetaData(RecordMetaData recordMetaData) throws IOException
loadSequenceFromMetaData in interface SequenceRecordReaderIOExceptionpublic List<SequenceRecord> loadSequenceFromMetaData(List<RecordMetaData> recordMetaDatas) throws IOException
loadSequenceFromMetaData in interface SequenceRecordReaderIOExceptionCopyright © 2018. All rights reserved.