|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.dspl.schema.Slice
public class Slice
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 |
---|
public Slice()
Method Detail |
---|
public Info getInfo()
Info
public void setInfo(Info value)
value
- allowed object is
Info
public java.util.List<SliceConceptRef> getDimension()
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
public java.util.List<SliceConceptRef> getMetric()
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
public SliceTableMapping getTableMapping()
SliceTableMapping
public void setTableMapping(SliceTableMapping value)
value
- allowed object is
SliceTableMapping
public Slice.Data getData()
Slice.Data
public void setData(Slice.Data value)
value
- allowed object is
Slice.Data
public java.lang.String getId()
String
public void setId(java.lang.String value)
value
- allowed object is
String
public DataSet getDataSet()
public void setDataSet(DataSet dataSet)
public Table getTable() throws javax.xml.bind.JAXBException, java.io.IOException, DsplException
javax.xml.bind.JAXBException
java.io.IOException
DsplException
public SliceTableData getTableData() throws javax.xml.bind.JAXBException, java.io.IOException, DsplException
javax.xml.bind.JAXBException
java.io.IOException
DsplException
public Concept getCompatibleDimension(Concept superConcept) throws javax.xml.bind.JAXBException, java.io.IOException, DsplException
javax.xml.bind.JAXBException
java.io.IOException
DsplException
public Concept getCompatibleMetric(Concept superConcept) throws javax.xml.bind.JAXBException, java.io.IOException, DsplException
javax.xml.bind.JAXBException
java.io.IOException
DsplException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |