com.facetmap.sql
Class SqlFacetSpace

java.lang.Object
  extended by com.facetmap.simple.SimpleFacetSpace
      extended by com.facetmap.sql.SqlFacetSpace
All Implemented Interfaces:
FacetSpace

public class SqlFacetSpace
extends SimpleFacetSpace


Field Summary
protected  SqlFacetmap sqlFacetmap
           
protected  int[] taxAddrSizes
           
protected  boolean usingTags
           
 
Fields inherited from class com.facetmap.simple.SimpleFacetSpace
facetHash, facets, version
 
Constructor Summary
SqlFacetSpace(FacetSpace sourceFacetSpace, SqlFacetmap facetmap)
           
 
Method Summary
 void addTaxonomy(TaxonomyImpl t)
          Adds a new Taxonomy (hence a new dimension) to this space.
 SqlFacet createSqlFacet(Facet sourceFacet)
           
protected  void generateAddressSizes()
          Each int in the taxAddrSizes array represents the number of bytes necessary to address headings in the corresponding facet.
 SpectrumFacet getSpectrumFacet(java.lang.String id)
          Returns the SpectrumFacet with the given identifier.
 DateImpl getSqlDateFacet(java.lang.String id)
           
 SqlFacet getSqlFacet(java.lang.String id)
           
 SqlFacetmap getSqlFacetmap()
           
 SpectrumImpl getSqlSpectrumFacet(java.lang.String id)
           
 int[] getTaxAddrSizes()
           
 boolean isUsingTags()
           
 
Methods inherited from class com.facetmap.simple.SimpleFacetSpace
addFacet, getCompoundHeadingFacet, getDateFacet, getFacet, getFacet, getFacetCount, getFacets, getGeographyFacet, getKeywordFacet, getTaxonomy, getTaxonomyFacet, getVersion, indexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sqlFacetmap

protected SqlFacetmap sqlFacetmap

usingTags

protected boolean usingTags

taxAddrSizes

protected int[] taxAddrSizes
Constructor Detail

SqlFacetSpace

public SqlFacetSpace(FacetSpace sourceFacetSpace,
                     SqlFacetmap facetmap)
Method Detail

createSqlFacet

public SqlFacet createSqlFacet(Facet sourceFacet)

getSqlFacet

public SqlFacet getSqlFacet(java.lang.String id)

getSqlSpectrumFacet

public SpectrumImpl getSqlSpectrumFacet(java.lang.String id)

getSpectrumFacet

public SpectrumFacet getSpectrumFacet(java.lang.String id)
                               throws UnknownReferenceException
Description copied from interface: FacetSpace
Returns the SpectrumFacet with the given identifier.

Specified by:
getSpectrumFacet in interface FacetSpace
Overrides:
getSpectrumFacet in class SimpleFacetSpace
Throws:
UnknownReferenceException

getSqlDateFacet

public DateImpl getSqlDateFacet(java.lang.String id)
                         throws UnknownReferenceException
Throws:
UnknownReferenceException

getTaxAddrSizes

public int[] getTaxAddrSizes()

addTaxonomy

public void addTaxonomy(TaxonomyImpl t)
Adds a new Taxonomy (hence a new dimension) to this space. This method performs necessary initialization on the Taxonomy and this TaxonomySpace -- use of any other adding mechanism is at your own risk.


generateAddressSizes

protected void generateAddressSizes()
Each int in the taxAddrSizes array represents the number of bytes necessary to address headings in the corresponding facet.


getSqlFacetmap

public SqlFacetmap getSqlFacetmap()

isUsingTags

public boolean isUsingTags()