Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.era
Class AbstractCubeDirectory  view AbstractCubeDirectory download AbstractCubeDirectory.java

java.lang.Object
  extended byorg.jdaemon.era.AbstractCubeDirectory
All Implemented Interfaces:
CubeDirectory

public abstract class AbstractCubeDirectory
extends java.lang.Object
implements CubeDirectory

Base implementation for cube directories Assumes an index of cubes exists on a given attribute set. Implements getCube and getValues in terms of abstract operations on this index. Note: At some stage this implementation should be extended to handle multiple indexes


Constructor Summary
AbstractCubeDirectory()
           
 
Method Summary
 Cube getCube(CubeDirectoryPath path)
          Get a Cube object for the given directory path.
protected  Cube getCube(CubeDirectoryPath path, org.jdaemon.util.QuickList attributes, org.jdaemon.util.QuickList bound_values)
          Recursive implementation of getCube(path) Takes the given CubeDirectoryPath and composes a Cube by looking up sub-cubes with getCube(QuickList) and returning a union of the results
protected abstract  Cube getCube(org.jdaemon.util.QuickList bound_values)
           
abstract  CubeDescriptor getCubeDescriptor()
          Get metadata for the cubes contained by this Directory
abstract  java.util.List getKeyAttributes()
          Get an iterator over the key attributes used by this directory
 java.util.Iterator getKeyValues(CubeDirectoryPath path, java.lang.String attribute)
          List all values of the given key attribute contained by this directory
protected  java.util.Iterator getKeyValues(CubeDirectoryPath path, java.lang.String attribute, org.jdaemon.util.QuickList attributes, org.jdaemon.util.QuickList bound_values)
          Recursive implementation of getKeyValues(path, attribute) Takes the given CubeDirectoryPath and composes an iterator over possible values of the key attribute.
protected abstract  java.util.Iterator getKeyValues(org.jdaemon.util.QuickList bound_values, java.lang.String attr)
          List all values of the given key attribute contained by this directory.
 CubeDirectoryPath getPath()
          Create an AbstractDirectoryPath object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCubeDirectory

public AbstractCubeDirectory()
Method Detail

getPath

public CubeDirectoryPath getPath()
Create an AbstractDirectoryPath object.

Specified by:
getPath in interface CubeDirectory

getCube

protected Cube getCube(CubeDirectoryPath path,
                       org.jdaemon.util.QuickList attributes,
                       org.jdaemon.util.QuickList bound_values)
Recursive implementation of getCube(path) Takes the given CubeDirectoryPath and composes a Cube by looking up sub-cubes with getCube(QuickList) and returning a union of the results


getCube

public Cube getCube(CubeDirectoryPath path)
Get a Cube object for the given directory path. Takes the given CubeDirectoryPath and composes a Cube buy looking up sub-cubes with getCube(QuickList) and creating compound cubes as appropriate. Implemented by the protected method getCube(path, attributes, values).

Specified by:
getCube in interface CubeDirectory

getKeyValues

protected java.util.Iterator getKeyValues(CubeDirectoryPath path,
                                          java.lang.String attribute,
                                          org.jdaemon.util.QuickList attributes,
                                          org.jdaemon.util.QuickList bound_values)
Recursive implementation of getKeyValues(path, attribute) Takes the given CubeDirectoryPath and composes an iterator over possible values of the key attribute. An attempt is made to prune values which are excluded by the constraints in the path.


getKeyValues

public java.util.Iterator getKeyValues(CubeDirectoryPath path,
                                       java.lang.String attribute)
List all values of the given key attribute contained by this directory

Specified by:
getKeyValues in interface CubeDirectory

getCubeDescriptor

public abstract CubeDescriptor getCubeDescriptor()
Get metadata for the cubes contained by this Directory

Specified by:
getCubeDescriptor in interface CubeDirectory

getKeyAttributes

public abstract java.util.List getKeyAttributes()
Get an iterator over the key attributes used by this directory

Specified by:
getKeyAttributes in interface CubeDirectory

getKeyValues

protected abstract java.util.Iterator getKeyValues(org.jdaemon.util.QuickList bound_values,
                                                   java.lang.String attr)
List all values of the given key attribute contained by this directory.


getCube

protected abstract Cube getCube(org.jdaemon.util.QuickList bound_values)