datafu.hourglass.fs
Class DatePath

java.lang.Object
  extended by datafu.hourglass.fs.DatePath
All Implemented Interfaces:
java.lang.Comparable<DatePath>

public class DatePath
extends java.lang.Object
implements java.lang.Comparable<DatePath>

Represents a path and the corresponding date that is associated with it.

Author:
"Matthew Hayes"

Constructor Summary
DatePath(java.util.Date date, org.apache.hadoop.fs.Path path)
           
 
Method Summary
 int compareTo(DatePath o)
           
static DatePath createDatedPath(org.apache.hadoop.fs.Path parent, java.util.Date date)
           
static DatePath createNestedDatedPath(org.apache.hadoop.fs.Path parent, java.util.Date date)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getDate()
           
 org.apache.hadoop.fs.Path getPath()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatePath

public DatePath(java.util.Date date,
                org.apache.hadoop.fs.Path path)
Method Detail

getDate

public java.util.Date getDate()

getPath

public org.apache.hadoop.fs.Path getPath()

createDatedPath

public static DatePath createDatedPath(org.apache.hadoop.fs.Path parent,
                                       java.util.Date date)

createNestedDatedPath

public static DatePath createNestedDatedPath(org.apache.hadoop.fs.Path parent,
                                             java.util.Date date)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(DatePath o)
Specified by:
compareTo in interface java.lang.Comparable<DatePath>

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


Matthew Hayes