public abstract class BaseInputSplit extends Object implements InputSplit
| Modifier and Type | Field and Description |
|---|---|
protected long |
length |
protected URI[] |
locations |
| Constructor and Description |
|---|
BaseInputSplit() |
| Modifier and Type | Method and Description |
|---|---|
long |
length()
Length of the split
|
URI[] |
locations()
Locations of the splits
|
InputSplit[] |
sample(PathFilter pathFilter,
double... weights) |
double |
toDouble()
Convert Writable to double.
|
float |
toFloat()
Convert Writable to float.
|
int |
toInt()
Convert Writable to int.
|
long |
toLong()
Convert Writable to long.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFields, writeprotected URI[] locations
protected long length
public URI[] locations()
InputSplitlocations in interface InputSplitpublic long length()
InputSplitlength in interface InputSplitpublic double toDouble()
Writablepublic float toFloat()
Writablepublic int toInt()
Writablepublic long toLong()
Writablepublic InputSplit[] sample(PathFilter pathFilter, double... weights)
Copyright © 2016. All rights reserved.