@InterfaceAudience.Public @InterfaceStability.Stable public class CompositeInputSplit extends Object implements InputSplit
| コンストラクタと説明 | 
|---|
| CompositeInputSplit() | 
| CompositeInputSplit(int capacity) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | add(InputSplit s)Add an InputSplit to this collection. | 
| InputSplit | get(int i)Get ith child InputSplit. | 
| long | getLength()Return the aggregate length of all child InputSplits currently added. | 
| long | getLength(int i)Get the length of ith child InputSplit. | 
| String[] | getLocation(int i)getLocations from ith InputSplit. | 
| String[] | getLocations()Collect a set of hosts from all child InputSplits. | 
| void | readFields(DataInput in)Deserialize the fields of this object from  in. | 
| void | write(DataOutput out)Write splits in the following format. | 
public CompositeInputSplit()
public CompositeInputSplit(int capacity)
public void add(InputSplit s) throws IOException
IOException - If capacity was not specified during construction
                     or if capacity has been reached.public InputSplit get(int i)
public long getLength() throws IOException
getLength インタフェース内 InputSplitIOExceptionpublic long getLength(int i) throws IOException
IOExceptionpublic String[] getLocations() throws IOException
getLocations インタフェース内 InputSplitInputSplit is
         located as an array of Strings.IOExceptionpublic String[] getLocation(int i) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
<count><class1><class2>...<classn><split1><split2>...<splitn>
 write インタフェース内 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
in.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields インタフェース内 Writablein - DataInput to deseriablize this object from.IOException - If the child InputSplit cannot be read, typically
                     for faliing access checks.Copyright © 2016 Apache Software Foundation. All rights reserved.