org.compass.core.spi
Interface MultiResource

All Superinterfaces:
AliasedObject, InternalResource, Resource, Serializable
All Known Implementing Classes:
LuceneMultiResource

public interface MultiResource
extends InternalResource

A multiple resource implementation. Exposes Resource operations as well, which are performed against the current Resource.

Author:
kimchy

Method Summary
 void addResource()
          Adds another Resource, and moves the current resource to the newly created one.
 void clear()
          Clears all the saves resources.
 Resource currentResource()
          Returns the curren Resource.
 Resource resource(int i)
          Returns the Resource at the given postion.
 int size()
          Returns the number of Resources.
 
Methods inherited from interface org.compass.core.spi.InternalResource
addUID, attach, getResourceKey, getResourceMapping, getSubIndex
 
Methods inherited from interface org.compass.core.Resource
addProperty, addProperty, addProperty, copy, getAlias, getBoost, getId, getIdProperties, getIdProperty, getIds, getObject, getObjects, getProperties, getProperties, getProperty, getUID, getValue, getValues, removeProperties, removeProperty, setBoost, setProperty, setProperty, setProperty
 

Method Detail

size

int size()
Returns the number of Resources.


addResource

void addResource()
Adds another Resource, and moves the current resource to the newly created one.


currentResource

Resource currentResource()
Returns the curren Resource.


resource

Resource resource(int i)
Returns the Resource at the given postion.


clear

void clear()
Clears all the saves resources.



Copyright (c) 2004-2009 The Compass Project.