org.gcube.data.spd.plugin.fwk.capabilities
Class OccurrencesCapability

java.lang.Object
  extended by org.gcube.data.spd.plugin.fwk.capabilities.OccurrencesCapability
All Implemented Interfaces:
org.gcube.data.spd.model.PropertySupport, Searchable<org.gcube.data.spd.model.products.OccurrencePoint>

public abstract class OccurrencesCapability
extends Object
implements org.gcube.data.spd.model.PropertySupport, Searchable<org.gcube.data.spd.model.products.OccurrencePoint>


Constructor Summary
OccurrencesCapability()
           
 
Method Summary
 Class<org.gcube.data.spd.model.products.OccurrencePoint> getHandledClass()
           
abstract  void getOccurrencesByIds(ClosableWriter<org.gcube.data.spd.model.products.OccurrencePoint> writer, Iterator<String> ids)
          retrieves all occurrences for the given ids
abstract  void getOccurrencesByProductKeys(ClosableWriter<org.gcube.data.spd.model.products.OccurrencePoint> writer, Iterator<String> keys)
          retrieves all occurrences for the given ids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.data.spd.model.PropertySupport
getSupportedProperties
 
Methods inherited from interface org.gcube.data.spd.plugin.fwk.Searchable
searchByScientificName
 

Constructor Detail

OccurrencesCapability

public OccurrencesCapability()
Method Detail

getOccurrencesByProductKeys

public abstract void getOccurrencesByProductKeys(ClosableWriter<org.gcube.data.spd.model.products.OccurrencePoint> writer,
                                                 Iterator<String> keys)
retrieves all occurrences for the given ids

Parameters:
writer - the stream where the elements must be wrote
keys - a list of products keys
Throws:
Exception

getOccurrencesByIds

public abstract void getOccurrencesByIds(ClosableWriter<org.gcube.data.spd.model.products.OccurrencePoint> writer,
                                         Iterator<String> ids)
retrieves all occurrences for the given ids

Parameters:
writer - the stream where the elements must be wrote
ids - a list of occurrence ids
Throws:
Exception

getHandledClass

public Class<org.gcube.data.spd.model.products.OccurrencePoint> getHandledClass()
Specified by:
getHandledClass in interface Searchable<org.gcube.data.spd.model.products.OccurrencePoint>


Copyright © 2013. All Rights Reserved.