org.archive.wayback.partition
Class CaptureSearchResultPartitionMap

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

public class CaptureSearchResultPartitionMap
extends Object
implements ElementPartitionMap<CaptureSearchResult>

Author:
brad

Constructor Summary
CaptureSearchResultPartitionMap()
           
 
Method Summary
 void addElementToPartition(CaptureSearchResult element, Partition<CaptureSearchResult> partition)
          Add the element to a partition, possible modifying the Partition in some way.
 Date elementToDate(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

CaptureSearchResultPartitionMap

public CaptureSearchResultPartitionMap()
Method Detail

addElementToPartition

public void addElementToPartition(CaptureSearchResult element,
                                  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<CaptureSearchResult>
Parameters:
element - to be added
partition - to which the element should be added

elementToDate

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

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


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