|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.vertica.VerticaInputSplit
public class VerticaInputSplit
Input split class for reading data from Vertica
Constructor Summary | |
---|---|
VerticaInputSplit()
(@inheritDoc) |
|
VerticaInputSplit(String inputQuery,
List<Object> segmentParams,
long start,
long end)
Set the input query and a list of parameters to substitute when evaluating the query |
Method Summary | |
---|---|
void |
close()
(@inheritDoc) |
void |
configure(org.apache.hadoop.conf.Configuration conf)
(@inheritDoc) |
ResultSet |
executeQuery()
Run the query that, when executed returns input for the mapper |
org.apache.hadoop.conf.Configuration |
getConfiguration()
(@inheritDoc) |
long |
getEnd()
|
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size. |
String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local. |
List<Object> |
getSegmentParams()
Return the parameters used for input query |
long |
getStart()
|
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerticaInputSplit()
public VerticaInputSplit(String inputQuery, List<Object> segmentParams, long start, long end)
inputQuery
- SQL query to runsegmentParams
- list of parameters to substitute into the querystart
- the logical starting record numberend
- the logical ending record numberMethod Detail |
---|
public void configure(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
public List<Object> getSegmentParams()
public ResultSet executeQuery() throws Exception
Exception
public void close() throws SQLException
SQLException
public long getStart()
public long getEnd()
public long getLength() throws IOException
InputSplit
getLength
in class InputSplit
IOException
public String[] getLocations() throws IOException
getLocations
in class InputSplit
IOException
public org.apache.hadoop.conf.Configuration getConfiguration()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |