@InterfaceStability.Evolving public static class DataDrivenDBInputFormat.DataDrivenDBInputSplit extends DBInputFormat.DBInputSplit
| 构造器和说明 |
|---|
DataDrivenDBInputFormat.DataDrivenDBInputSplit()
Default Constructor
|
DataDrivenDBInputFormat.DataDrivenDBInputSplit(String lower,
String upper)
Convenience Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size.
|
String |
getLowerClause() |
String |
getUpperClause() |
void |
readFields(DataInput input)
Deserialize the fields of this object from
in. |
void |
write(DataOutput output)
Serialize the fields of this object to
out. |
getEnd, getLocations, getStartpublic DataDrivenDBInputFormat.DataDrivenDBInputSplit()
public DataDrivenDBInputFormat.DataDrivenDBInputSplit(String lower, String upper)
lower - the string to be put in the WHERE clause to guard on the 'lower' endupper - the string to be put in the WHERE clause to guard on the 'upper' endpublic long getLength()
throws IOException
InputSplitgetLength 在类中 DBInputFormat.DBInputSplitIOExceptionpublic void readFields(DataInput input) throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 WritablereadFields 在类中 DBInputFormat.DBInputSplitinput - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput output) throws IOException
out.write 在接口中 Writablewrite 在类中 DBInputFormat.DBInputSplitoutput - DataOuput to serialize this object into.IOExceptionpublic String getLowerClause()
public String getUpperClause()
Copyright © 2009 The Apache Software Foundation