public class CollectionInputFormat extends GenericInputFormat<Record> implements NonParallelInput
partitionNumber| Constructor and Description |
|---|
CollectionInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
Record |
nextRecord(Record record) |
void |
open(GenericInputSplit split) |
boolean |
reachedEnd() |
void |
setData(Collection<?> data) |
<T extends Iterator<?>,Serializable> |
setIter(T iter) |
close, configure, createInputSplits, getInputSplitAssigner, getStatisticspublic boolean reachedEnd()
throws IOException
reachedEnd in interface InputFormat<Record,GenericInputSplit>IOExceptionpublic void open(GenericInputSplit split) throws IOException
open in interface InputFormat<Record,GenericInputSplit>open in class GenericInputFormat<Record>IOExceptionpublic Record nextRecord(Record record) throws IOException
nextRecord in interface InputFormat<Record,GenericInputSplit>IOExceptionpublic void setData(Collection<?> data)
public <T extends Iterator<?>,Serializable> void setIter(T iter)
Copyright © 2015 The Apache Software Foundation. All rights reserved.