org.archive.wayback.partition
Class PartitionPartitionMap

java.lang.Object
  extended by org.archive.wayback.partition.PartitionPartitionMap
All Implemented Interfaces:
ElementPartitionMap<Partition<CaptureSearchResult>>

public class PartitionPartitionMap
extends Object
implements ElementPartitionMap<Partition<CaptureSearchResult>>

Author:
brad

Constructor Summary
PartitionPartitionMap()
           
 
Method Summary
 void addElementToPartition(Partition<CaptureSearchResult> element, Partition<Partition<CaptureSearchResult>> partition)
          Add the element to a partition, possible modifying the Partition in some way.
 Date elementToDate(Partition<CaptureSearchResult> element)
          Convert an element to a Date ex: return element.getDate();
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionPartitionMap

public PartitionPartitionMap()
Method Detail

addElementToPartition

public void addElementToPartition(Partition<CaptureSearchResult> element,
                                  Partition<Partition<CaptureSearchResult>> partition)
Description copied from interface: ElementPartitionMap
Add the element to a partition, possible modifying the Partition in some way. ex: partition.add(element); partition.addTotal(1);

Specified by:
addElementToPartition in interface ElementPartitionMap<Partition<CaptureSearchResult>>
Parameters:
element - to be added
partition - to which the element should be added

elementToDate

public Date elementToDate(Partition<CaptureSearchResult> element)
Description copied from interface: ElementPartitionMap
Convert an element to a Date ex: return element.getDate();

Specified by:
elementToDate in interface ElementPartitionMap<Partition<CaptureSearchResult>>
Parameters:
element - the element to convert
Returns:
the Date for the element


Copyright © 2005-2011 Internet Archive. All Rights Reserved.