com.metsci.glimpse.dspl.schema
Class Slice

java.lang.Object
  extended by com.metsci.glimpse.dspl.schema.Slice

public class Slice
extends java.lang.Object

A slice describes a combination of concepts for which data exists. Metrics are the concepts that provide values, while dimensions are the concepts used to access these values. More precisely, the dimensions are a primary key for the data of the slice. That is, for any combination of values of the dimensions, there is at most one data row in the slice. Slices in a dataset must follow the following requirements: - No two dimensions or metrics in a slice may refer to the same concept. - No two slices in the dataset may have the same dimensions and metrics. TODO (benjello): Add syntax for dense cubes.

Java class for Slice complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Slice">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="info" type="{http://schemas.google.com/dspl/2010}Info" minOccurs="0"/>
         <element name="dimension" type="{http://schemas.google.com/dspl/2010}SliceConceptRef" maxOccurs="unbounded"/>
         <element name="metric" type="{http://schemas.google.com/dspl/2010}SliceConceptRef" maxOccurs="unbounded"/>
         <choice>
           <element name="table" type="{http://schemas.google.com/dspl/2010}SliceTableMapping"/>
           <element name="data">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="table" type="{http://schemas.google.com/dspl/2010}SliceTableMapping"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
         </choice>
       </sequence>
       <attribute name="id" use="required" type="{http://schemas.google.com/dspl/2010}Id" />
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Slice.Data
          Java class for anonymous complex type.
 
Constructor Summary
Slice()
           
 
Method Summary
 Concept getCompatibleDimension(Concept superConcept)
           
 Concept getCompatibleMetric(Concept superConcept)
           
 Slice.Data getData()
          Gets the value of the data property.
 DataSet getDataSet()
           
 java.util.List<SliceConceptRef> getDimension()
          Gets the value of the dimension property.
 java.lang.String getId()
          Gets the value of the id property.
 Info getInfo()
          Gets the value of the info property.
 java.util.List<SliceConceptRef> getMetric()
          Gets the value of the metric property.
 Table getTable()
           
 SliceTableData getTableData()
           
 SliceTableMapping getTableMapping()
          Gets the value of the tableMapping property.
 void setData(Slice.Data value)
          Sets the value of the data property.
 void setDataSet(DataSet dataSet)
           
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setInfo(Info value)
          Sets the value of the info property.
 void setTableMapping(SliceTableMapping value)
          Sets the value of the tableMapping property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slice

public Slice()
Method Detail

getInfo

public Info getInfo()
Gets the value of the info property.

Returns:
possible object is Info

setInfo

public void setInfo(Info value)
Sets the value of the info property.

Parameters:
value - allowed object is Info

getDimension

public java.util.List<SliceConceptRef> getDimension()
Gets the value of the dimension property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the dimension property.

For example, to add a new item, do as follows:

    getDimension().add(newItem);
 

Objects of the following type(s) are allowed in the list SliceConceptRef


getMetric

public java.util.List<SliceConceptRef> getMetric()
Gets the value of the metric property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the metric property.

For example, to add a new item, do as follows:

    getMetric().add(newItem);
 

Objects of the following type(s) are allowed in the list SliceConceptRef


getTableMapping

public SliceTableMapping getTableMapping()
Gets the value of the tableMapping property.

Returns:
possible object is SliceTableMapping

setTableMapping

public void setTableMapping(SliceTableMapping value)
Sets the value of the tableMapping property.

Parameters:
value - allowed object is SliceTableMapping

getData

public Slice.Data getData()
Gets the value of the data property.

Returns:
possible object is Slice.Data

setData

public void setData(Slice.Data value)
Sets the value of the data property.

Parameters:
value - allowed object is Slice.Data

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getDataSet

public DataSet getDataSet()

setDataSet

public void setDataSet(DataSet dataSet)

getTable

public Table getTable()
               throws javax.xml.bind.JAXBException,
                      java.io.IOException,
                      DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getTableData

public SliceTableData getTableData()
                            throws javax.xml.bind.JAXBException,
                                   java.io.IOException,
                                   DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getCompatibleDimension

public Concept getCompatibleDimension(Concept superConcept)
                               throws javax.xml.bind.JAXBException,
                                      java.io.IOException,
                                      DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException

getCompatibleMetric

public Concept getCompatibleMetric(Concept superConcept)
                            throws javax.xml.bind.JAXBException,
                                   java.io.IOException,
                                   DsplException
Throws:
javax.xml.bind.JAXBException
java.io.IOException
DsplException


Copyright © 2012 Metron, Inc.. All Rights Reserved.