Spring for Apache Hadoop

org.springframework.data.hadoop.store.split
Class GenericSplit

java.lang.Object
  extended by org.springframework.data.hadoop.store.split.GenericSplit
All Implemented Interfaces:
Split, SplitLocation

public class GenericSplit
extends java.lang.Object
implements Split, SplitLocation

A GenericSplit is simple implementation of Split and SplitLocation storing needed information as it is.

Author:
Janne Valkealahti

Constructor Summary
GenericSplit()
          Instantiates a new generic split.
GenericSplit(long start, long length, java.lang.String[] locations)
          Instantiates a new generic split.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getEnd()
          Gets the split end position.
 long getLength()
          Gets the split length.
 java.lang.String[] getLocations()
          Gets the locations of a split.
 long getStart()
          Gets the split start position.
 int hashCode()
           
 void setLength(long length)
           
 void setStart(long start)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSplit

public GenericSplit()
Instantiates a new generic split.


GenericSplit

public GenericSplit(long start,
                    long length,
                    java.lang.String[] locations)
Instantiates a new generic split.

Parameters:
start - the split start
length - the split length
locations - the split locations
Method Detail

getStart

public long getStart()
Description copied from interface: Split
Gets the split start position.

Specified by:
getStart in interface Split
Returns:
the start position

getLength

public long getLength()
Description copied from interface: Split
Gets the split length.

Specified by:
getLength in interface Split
Returns:
the split length

getEnd

public long getEnd()
Description copied from interface: Split
Gets the split end position.

Specified by:
getEnd in interface Split
Returns:
the end position

setStart

public void setStart(long start)

setLength

public void setLength(long length)

getLocations

public java.lang.String[] getLocations()
Description copied from interface: SplitLocation
Gets the locations of a split.

Specified by:
getLocations in interface SplitLocation
Returns:
the split locations

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Spring for Apache Hadoop