@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, getStart
public 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
InputSplit
getLength
在类中 DBInputFormat.DBInputSplit
IOException
public void readFields(DataInput input) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
readFields
在类中 DBInputFormat.DBInputSplit
input
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput output) throws IOException
out
.write
在接口中 Writable
write
在类中 DBInputFormat.DBInputSplit
output
- DataOuput
to serialize this object into.IOException
public String getLowerClause()
public String getUpperClause()
Copyright © 2009 The Apache Software Foundation