@Concealed public class SampleDataSource extends DataAccessAdapter implements CubeDataDirector, CubeDataAccess, RelationalDataDirector, RelationalDataAccess, DataSource
| Modifier and Type | Field and Description |
|---|---|
protected double[][] |
areaData |
protected double[][] |
bubbleData |
protected int |
columnCount |
protected java.lang.Object[] |
columnLabels |
protected int |
currentPage |
protected double[][] |
defaultAreaDualYData |
protected double[][] |
defaultData1 |
protected double[][] |
defaultData2 |
protected double[][] |
defaultDataCommon |
protected double[][] |
FiveValueBoxPlotData |
protected double[][] |
funnelData |
protected double[][] |
highLowCloseData |
protected double[][] |
highLowCloseVolumeData |
protected double[][] |
lineData |
protected DataDirectorListener |
listener |
protected DVTResources |
m_dvtResources |
protected CommonGraph |
m_graph |
protected int |
m_graphType |
protected int |
m_timeAxisType |
protected double[][] |
openCloseData |
protected double[][] |
openCloseVolumeData |
protected double[][] |
openHiLoCloseData |
protected double[][] |
openHiLoCloseVolumeData |
protected int |
pageCount |
protected java.lang.String[] |
pageLabels |
protected double[][] |
paretoData |
protected java.util.ResourceBundle |
rBundle |
protected java.util.ResourceBundle |
rBundle1 |
protected int |
rowCount |
protected java.lang.String[] |
rowLabels |
protected double[][] |
scatterPolarData |
protected double[][] |
SevenValueBoxPlotData |
protected double[][] |
sparkchartData |
protected double[][] |
sparkchartFloatingBarData |
protected java.lang.String[] |
strGroupArray |
protected java.lang.String[] |
strSeriesArray |
protected double[][] |
threedAreaRibbonData |
protected double[][] |
threedSurfaceData |
COLUMN_EDGE, DATA_ELEMENT_EDGE, DRILL_BACK, DRILL_COLLAPSE, DRILL_MEMBERS_ABOVE, DRILL_MEMBERS_BELOW, DRILL_REPLACE, DRILL_TO_PARENT, DRILL_TO_PARENT_AND_SIBLINGS, DRILLSTATE_DRILLABLE, DRILLSTATE_IS_DRILLED, DRILLSTATE_NOT_DRILLABLE, FORCE_FETCH_DATA, FORCE_FETCH_RELATIVE_INDENT, FORCE_FETCH_SPANS, GRAND_TOTAL_LAYER, GROUPSORT_END, GROUPSORT_MIDDLE, GROUPSORT_NONE, GROUPSORT_START, HIDDEN_EDGE, max_edge, NA_SUPPRESSION, NA_ZERO_SUPPRESSION, NO_SUPPRESSION, NO_TOTALS, PAGE_EDGE, PIVOT_CHECK_OK, PIVOT_CHECK_UNKNOWN, PIVOT_EDGES, PIVOT_MOVE_AFTER, PIVOT_MOVE_BEFORE, PIVOT_MOVE_TO, PIVOT_SWAP, PROP_ASYNCHRONOUS, PROP_AUTO_FIRE_EVENTS, PROP_CACHE_LIMIT, PROP_COLUMN_FETCH_SIZE, PROP_COLUMN_SORTS_SUPPORTED, PROP_DD2_DRILL_SUPPORTED, PROP_DD2_VARIABLE_DRILLPATHS, PROP_DEFAULT_DRILL_TYPE, PROP_EDGE_EXTENT_AVAILABLE, PROP_HIDDEN_EDGE_SUPPORTED, PROP_IS_COLUMN_OUTLINE_SUPPORTED, PROP_IS_OUTLINE_SUPPORTED, PROP_IS_REORDER_SUPPORTED, PROP_IS_ROW_OUTLINE_SUPPORTED, PROP_PAGE_SORTS_SUPPORTED, PROP_REL_INDENT_SCAN_LIMIT, PROP_ROW_FETCH_SIZE, PROP_SORTS_SUPPORTED, PROP_SUPPORTED_DRILL_TYPES, PROP_TABULAR, PROP_TOTALS_ALLOWED, PROP_TOTALS_VISIBLE, PROP_UNIQUE_MEMBERS_SCAN_LIMIT, ROW_EDGE, SECTION_EDGE, SORT_DIRECTION_ASCENDING, SORT_DIRECTION_DESCENDING, SORT_TYPE_GROUPSORT, SORT_TYPE_GROUPSORT_PAGEBREAK, SORT_TYPE_NORMAL, TOTAL_ALL_LAYERS, TOTAL_AVERAGE, TOTAL_MAXIMUM, TOTAL_MINIMUM, TOTAL_SUM, ZERO_SUPPRESSIONDATATYPE_BOOLEAN, DATATYPE_DATE, DATATYPE_DOUBLE, DATATYPE_FLOAT, DATATYPE_INTEGER, DATATYPE_LONG, DATATYPE_SHORT, DATATYPE_STRING, FIND_CASE_INSENSITIVE, FIND_CONTAINS, FIND_ENDS_WITH, FIND_EXACT, FIND_PRIOR, FIND_STARTS_WITH, QDR_WITH_PAGE, QDR_WITHOUT_PAGE| Constructor and Description |
|---|
SampleDataSource(CommonGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataDirectorListener(DataDirectorListener l)
Registers a listener to the data source for changes.
|
boolean |
changeEdgeCurrentHPos(int edge,
int[] hPos,
int maxLayerSpecified)
Changes the current slice of data on the given edge.
|
boolean |
changeEdgeCurrentSlice(int edge,
int slice)
Changes the current slice of data on the given edge.
|
protected QDR |
constructSliceQDR(int edge,
int slice) |
CubeDataDirector |
createCubeDataDirector()
Creates a DataDirector for cube-based (OLAP) views
|
DataDirector |
createDataDirector() |
RelationalDataDirector |
createRelationalDataDirector()
Creates a DataDirector for relational views.
|
DataMap |
getDataMap()
Retrieves the list of types of data that can be retrieved or set
for each location in the data cursor.
|
int |
getEdgeCount()
Return the total number of edges in the data source.
|
int[] |
getEdgeCurrentHPos(int edge)
Retrieves, for the specified edge, the hierarchical address of the
location that is defined by the implementor as the "current" location.
|
int |
getEdgeCurrentSlice(int edge,
int slice) |
int |
getEdgeExtent(int edge)
Retrieves the total number of slices that are available on the
specified edge.
|
int[] |
getFirstHPos(int edge)
Retrieves the hPos array that identifies the members at each physical
layer of slice 0 on the specified edge.
|
protected java.lang.String |
getIntlString(java.lang.String key) |
int[] |
getLastHPos(int edge)
Retrieves the hPos array that identifies the members at each physical
layer in the last slice on the specified edge.
|
int |
getLayerCount(int edge)
Retrieves the total number of layers on the specified edge.
|
java.lang.Object |
getLayerMetadata(int edge,
int layer,
java.lang.String type)
Retrieves a piece of metadata for a layer.
|
QDR |
getLayerQDR(int edge,
int layer,
int flags)
Retrieves the
QDR object that represents the specified logical layer. |
java.util.Locale |
getLocale() |
int |
getMemberDepth(int edge,
int layer,
int slice)
Retrieves the number of layers that a member spans at the specified
location on the specified edge.
|
int |
getMemberExtent(int edge,
int layer,
int slice)
Retrieves the size of a member, that is, the number of slices that the
member spans at a specified edge, layer, and slice location (parallel to
the direction of the edge).
|
int[] |
getMemberHPos(int edge,
int layer,
int slice)
Retrieves the hierarchical address for an absolute address that is
specified as edge, physical layer, and slice.
|
java.lang.Object |
getMemberMetadata(int edge,
int[] hPos,
int memberLayer,
int hIndex,
java.lang.String type)
Retrieves the specified type of metadata for the member at a
specified location.
|
java.lang.Object |
getMemberMetadata(int edge,
int dimension,
int dimvalue,
java.lang.String type)
Retrieves the specified type of metadata for a member at the specified
location.
|
int |
getMemberSiblingCount(int edge,
int[] hPos,
int memberLayer)
Retrieves the count of all the sibling members at a specified logical
layer based on a series of relative indexes for each logical layer down
to the specified logical layer.
|
int |
getMemberStartSlice(int edge,
int layer,
int slice)
Retrieves the absolute number of the first slice that a member spans.
|
int[] |
getNextHPos(int edge,
int[] hPos)
Retrieves the hPos that identifies the next member on the specified edge
relative to a specified
hPos. |
int[] |
getPrevHPos(int edge,
int[] hPos)
Retrieves the hPos array that identifies the members at each physical
layer of the slice that is immediately previous to the specified
hPos on the specified edge. |
java.lang.Object |
getSliceLabel(int edge,
int slice,
java.lang.String type)
Retrieves the label (or concatenated metadata) for the specified slice.
|
int |
getSliceMemberCount(int edge,
int slice)
Retrieves the number of unique logical layers (that is, the number of
members that run perpendicular to the orientation of the edge) at the
specified slice and edge.
|
QDR |
getSliceQDR(int edge,
int slice,
int flags)
Retrieves a
QDR object that represents the data value at the specified
slice on the edge (that is, across all relevant logical layers of the
slice). |
DataMap |
getSupportedDataMap()
Return a
DataMap that contains all of the types that
this DataAccessAdapter can support. |
LayerMetadataMap |
getSupportedLayerMetadataMap()
Return a
LayerMetadataMap that contains all of the types
that this DataAccessAdapter can support. |
MetadataMap |
getSupportedMetadataMap()
Retrieves a
MetadataMap that contains all of the types that
this DataAccessAdapter can support. |
java.lang.Object |
getValue(int aRow,
int aColumn,
java.lang.String type)
Retrieves a data value for the specified row and column intersection.
|
protected void |
initGroupAndSeriesArrays() |
protected void |
initGroups5_2() |
protected void |
initGroups5_3() |
protected void |
initGroups5_4() |
protected void |
initGroups5_5() |
protected void |
initGroups5_7() |
boolean |
isOutline()
Inform caller of the current outline vs.
|
void |
populateCellData(int columnCount,
int rowCount,
double[][] data) |
protected void |
populateColumnLabels(int columnCount) |
protected void |
populateIrregularColumnLabels(int columnCount) |
void |
populateMixedFreqCellData(int columnCount,
int rowCount,
double[][] data) |
protected void |
populateRowLabels(int rowCount) |
void |
removeDataDirectorListener(DataDirectorListener l)
Removes a listener from the data source.
|
void |
setCurrentPage(long aPage) |
void |
setLocale(java.util.Locale loc) |
void |
setOutline(boolean outline)
Signal the data provider to start providing data in outline
or inline mode updating its data and notifying listeners
that the data has changed via an event.
|
void |
setSampleDataSource() |
boolean |
setValue(java.lang.Object aValue,
int aRow,
int aColumn,
java.lang.String type)
Specifies a data value for the specified row and column intersection.
|
protected void |
updateResourceBundle(java.util.Locale loc) |
allSlicesFetched, cancel, deleteMemberCalc, deleteValueCalc, drill, drill, drill, drill, drillOK, drillOK, drillOK, drillOK, dropChanges, endGroupEdit, findMember, findMembers, fireEvents, forceFetch, getColumnSorts, getCompatibleDataItemMetadata, getCorrespondingMemberMetadata, getCorrespondingMemberMetadata, getDataAccess, getDimensionSorts, getEdgeCurrentSlice, getEdgeSymmetric, getExpressions, getMemberLogicalLayer, getMemberQDR, getMemberQDR, getMemberSorts, getMemberStartLayer, getMetadataMap, getProperty, getQDRoverrideCollection, getSliceOutlineLayer, getSlicesFromQDR, getSorts, getStatus, getUniqueMemberMetadata, getUniqueMemberMetadata, getValueQDR, insertMemberCalc, insertValueCalc, isAutoSubmit, isCancelable, isFetched, isMemberExtentComplete, pivot, pivotCheck, pivotOK, redoEdit, refresh, release, reorder, revalidate, setAutoSubmit, setColumnSorts, setDataMap, setDimensionSorts, setExpressions, setLayerMetadata, setManualUpdate, setMemberSorts, setMetadataMap, setProperty, setSorts, startExecution, startGroupEdit, submitChanges, undoEdit, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, deleteMemberCalc, deleteValueCalc, drill, drill, drill, drill, drillOK, drillOK, drillOK, drillOK, fireEvents, getColumnSorts, getCompatibleDataItemMetadata, getDataAccess, getDimensionSorts, getExpressions, getMemberSorts, getMetadataMap, getProperty, getSorts, getStatus, insertMemberCalc, insertValueCalc, isCancelable, pivot, pivotCheck, pivotOK, refresh, release, reorder, revalidate, setColumnSorts, setDataMap, setDimensionSorts, setExpressions, setLayerMetadata, setManualUpdate, setMemberSorts, setMetadataMap, setProperty, setSorts, startExecution, updateallSlicesFetched, dropChanges, endGroupEdit, findMember, findMembers, forceFetch, getCorrespondingMemberMetadata, getCorrespondingMemberMetadata, getEdgeCurrentSlice, getMemberLogicalLayer, getMemberQDR, getMemberQDR, getQDRoverrideCollection, getSliceOutlineLayer, getSlicesFromQDR, getUniqueMemberMetadata, getUniqueMemberMetadata, getValueQDR, isAutoSubmit, isFetched, isMemberExtentComplete, redoEdit, release, setAutoSubmit, startGroupEdit, submitChanges, undoEditgetEdgeSymmetric, getMemberStartLayerprotected double[][] defaultData1
protected double[][] highLowCloseData
protected double[][] highLowCloseVolumeData
protected double[][] openHiLoCloseData
protected double[][] openHiLoCloseVolumeData
protected double[][] openCloseData
protected double[][] openCloseVolumeData
protected double[][] bubbleData
protected double[][] scatterPolarData
protected double[][] paretoData
protected double[][] threedSurfaceData
protected double[][] threedAreaRibbonData
protected double[][] lineData
protected double[][] areaData
protected double[][] funnelData
protected double[][] defaultData2
protected double[][] defaultAreaDualYData
protected double[][] sparkchartData
protected double[][] sparkchartFloatingBarData
protected double[][] FiveValueBoxPlotData
protected double[][] SevenValueBoxPlotData
protected DataDirectorListener listener
protected int rowCount
protected int columnCount
protected int pageCount
protected int currentPage
protected java.lang.String[] rowLabels
protected java.lang.Object[] columnLabels
protected java.lang.String[] pageLabels
protected java.util.ResourceBundle rBundle
protected java.util.ResourceBundle rBundle1
protected DVTResources m_dvtResources
protected CommonGraph m_graph
protected int m_graphType
protected int m_timeAxisType
protected double[][] defaultDataCommon
protected java.lang.String[] strGroupArray
protected java.lang.String[] strSeriesArray
public SampleDataSource(CommonGraph graph)
public void setLocale(java.util.Locale loc)
public java.util.Locale getLocale()
public DataDirector createDataDirector()
protected void updateResourceBundle(java.util.Locale loc)
protected java.lang.String getIntlString(java.lang.String key)
public void populateCellData(int columnCount,
int rowCount,
double[][] data)
public void populateMixedFreqCellData(int columnCount,
int rowCount,
double[][] data)
protected void populateRowLabels(int rowCount)
protected void populateColumnLabels(int columnCount)
protected void populateIrregularColumnLabels(int columnCount)
public CubeDataDirector createCubeDataDirector()
DataSourcecreateCubeDataDirector in interface DataSourcepublic RelationalDataDirector createRelationalDataDirector()
DataSourcecreateRelationalDataDirector in interface DataSourcepublic void addDataDirectorListener(DataDirectorListener l)
DataAccessAdapterThis implementation does nothing.
addDataDirectorListener in interface DataDirectoraddDataDirectorListener in class DataAccessAdapterl - The listener to add.public void removeDataDirectorListener(DataDirectorListener l)
DataAccessAdapterThis implementation does nothing.
removeDataDirectorListener in interface DataDirectorremoveDataDirectorListener in class DataAccessAdapterl - The listener to remove.public boolean changeEdgeCurrentSlice(int edge,
int slice)
throws EdgeOutOfRangeException,
SliceOutOfRangeException,
DataDirectorException
changeEdgeCurrentSlice in interface DataDirectorchangeEdgeCurrentSlice in class DataAccessAdapteredge - The edge on which to make the change.slice - The slice to make current.
Page numbers begin at zero and are incremented as in the following example:
Suppose that you have a Time dimension and a City dimension on the page edge. Suppose the City dimension has three members. The first five pages are as follows:
true if the page change is successful,
false if not.EdgeOutOfRangeException - If edge is too large.SliceOutOfRangeException - If slice is too large.DataDirectorException - If a data provider error occurs.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic boolean changeEdgeCurrentHPos(int edge,
int[] hPos,
int maxLayerSpecified)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException,
DataDirectorException
changeEdgeCurrentHPos in interface DataDirectorchangeEdgeCurrentHPos in class DataAccessAdapteredge - The edge on which to make the change.hPos - An array of relative indices starting with the outermost
layer and working in at least to maxLayerSpecified
indicating the set of new values to give to the various layers
that make up the target slicemaxLayerSpecified - The maximum index into hPos (layer) that the
call should use in making the slice change.true if the page change is successful,
false if not.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If number of layers in hPos
is too large.SliceOutOfRangeException - If the slices in hPos are
too large.DataDirectorException - If a data provider error occurs.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getEdgeExtent(int edge)
throws EdgeOutOfRangeException
DataAccessAdaptergetEdgeExtent in interface CDFDataAccessgetEdgeExtent in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.EdgeOutOfRangeException - If the edge parameter is
not valid.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
*public int getEdgeCount()
getEdgeCount in interface CDFDataAccessgetEdgeCount in class DataAccessAdapterpublic java.lang.Object getValue(int aRow,
int aColumn,
java.lang.String type)
throws RowOutOfRangeException,
ColumnOutOfRangeException
DataAccessAdapterThis implementation returns null.
getValue in interface DataAccessgetValue in class DataAccessAdapteraRow - The row to get.aColumn - The column to get.type - Type of data to return, such as formatted or unformatted.
Valid type values are defined in the DataMap.RowOutOfRangeException - If row is negative or too
large.ColumnOutOfRangeException - If column is negative or
too large.DataMappublic boolean setValue(java.lang.Object aValue,
int aRow,
int aColumn,
java.lang.String type)
throws RowOutOfRangeException,
ColumnOutOfRangeException
DataAccessAdapterThis implementation returns false.
setValue in interface DataAccesssetValue in class DataAccessAdapteraValue - The data to set into the cursor.aRow - The row at which to set the data.aColumn - The column at which set the data.truefalse if not.RowOutOfRangeException - If row is negative or too
large.ColumnOutOfRangeException - If column is negative or
too large.DataMappublic java.lang.Object getSliceLabel(int edge,
int slice,
java.lang.String type)
throws EdgeOutOfRangeException,
SliceOutOfRangeException
DataAccessAdaptergetSliceLabel in interface DataAccessgetSliceLabel in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.slice - An absolute index (zero-based) along the specified edge
that indicates the slice for which concatenated metadata
is desired.type - A constant that specifies the kind of metadata that the
caller wants to have returned.
Valid type values are defined in the class
MetadataMap class.EdgeOutOfRangeException - If edge is out of range.SliceOutOfRangeException - If slice is negative or
too large.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getEdgeCurrentSlice(int edge,
int slice)
throws EdgeOutOfRangeException,
SliceOutOfRangeException
public void setCurrentPage(long aPage)
public int getLayerCount(int edge)
throws EdgeOutOfRangeException
DataAccessAdaptergetLayerCount in interface CDFDataAccessgetLayerCount in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.layer parameter in other API calls:
the valid range is from zero to this return value minus one.
This implementation returns zero.EdgeOutOfRangeException - If edge is out of range.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getSliceMemberCount(int edge,
int slice)
throws EdgeOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapterThis implementation returns 0.
getSliceMemberCount in interface DataAccessgetSliceMemberCount in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.slice - An absolute index (zero-based) that indicates the location
of a slice along the specified edge.
Each member in the innermost layer has a unique slice.
In outer layers, any slice that the
outer member spans can be used.EdgeOutOfRangeException - If edge is out of range.SliceOutOfRangeException - If slice is negative or too
large.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic java.lang.Object getLayerMetadata(int edge,
int layer,
java.lang.String type)
throws EdgeOutOfRangeException,
LayerOutOfRangeException
getLayerMetadata in interface CDFDataAccessgetLayerMetadata in class DataAccessAdapteredge - The edge of interest.
The constants are defined in the DataDirector implementation.dimension - The layer for which you want metadata.
Uses a depth computation to identify the
location of the layer or layer member; 0 is the
outer-most layer on the edge.type - A constant that specifies the kind of metadata that you want.
Valid type values are defined in the LayerMetadataMap.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If layer is negative or
too large.LayerMetadataMap,
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic java.lang.Object getMemberMetadata(int edge,
int dimension,
int dimvalue,
java.lang.String type)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdaptergetMemberMetadata in interface CDFDataAccessgetMemberMetadata in class DataAccessAdapteredge - A constant that represents the edge in which to look for
the member metadata.
The constants end with _EDGE in
DataDirector.dimension - The zero-based index of the physical layer in which to
find the slice.
Valid values are zero to total layers at the specified
slice.dimvalue - An absolute index (zero-based) that indicates the location
along the edge of a slice that belongs to the member
for which metadata is requested.
Each member in the innermost layer has a unique slice.
In outer layers, any slice that the
outer member spans can be used.type - A constant that specifies the kind of metadata requested.
Valid type values are defined in
MetadataMap.
The caller should have intialized the appropriate
MetadataMap object with any types of metadata
that the caller intends to use.LayerOutOfRangeException - If layer is negative or
too large.SliceOutOfRangeException - If slice is negative or
too large.EdgeOutOfRangeExceptionMetadataMap,
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getMemberExtent(int edge,
int layer,
int slice)
DataAccessAdapter
The sum of all the unique getMemberExtent values for an edge
should not exceed the getEdgeExtent value for the same edge.
This implementation returns 0.
getMemberExtent in interface CDFDataAccessgetMemberExtent in class DataAccessAdapteredge - A constant that represents the edge in which to look for
the layer and slice.
The constants end with _EDGE in
DataDirector.layer - The zero-based index of the physical layer of the member
whose size will be returned.
Valid values are zero to total layers at the specified
slice.slice - An absolute index (zero-based) that indicates the location
along the edge of the member whose extent will be returned.
Each member in the innermost layer has a unique slice.
In outer layers, any slice that the outer member spans
can be used.DataAccessAdapter.getMemberStartSlice(int, int, int),
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getMemberDepth(int edge,
int layer,
int slice)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
This method is useful only in cases of asymmetry where the members on an edge do not all span one layer and have a depth of 1. Normally, all members have a member depth of 1.
getMemberDepth in interface CDFDataAccessgetMemberDepth in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants are defined in the DataDirector implementation.layer - The starting layer of the member, as returned by
getMemberStartLayer.slice - The location along the edge.
The slice is zero-based. Each
member in the innermost layer has a
unique slice. In outer layers, any slice that the
outer member spans can be used.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If layer is negative or
too large.SliceOutOfRangeException - If slice is negative or
too large.DataAccessAdapter.getLayerCount(int),
DataAccessAdapter.getMemberStartLayer(int, int, int),
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int getMemberStartSlice(int edge,
int layer,
int slice)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdaptergetMemberExtent.
This implementation returns 0.
getMemberStartSlice in interface CDFDataAccessgetMemberStartSlice in class DataAccessAdapteredge - A constant that represents the edge in which to look for
the layer and slice.
The constants end with _EDGE in
DataDirector.layer - The zero-based index of the physical layer of the member
whose first slice will be returned.
Valid values are zero to total layers at the specified
slice.slice - An absolute index (zero-based) that indicates the location
along the specified edge of the member whose starting slice
will be returned.
Each member in the innermost layer has a unique slice.
In outer layers, any slice that the outer member spans
can be used.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If layer is negative or
too large.SliceOutOfRangeException - If slice is negative or
too large.DataAccessAdapter.getMemberExtent(int, int, int),
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic void setOutline(boolean outline)
throws DataDirectorException
setOutline in interface DataDirectorsetOutline in class DataAccessAdapteroutline - true if the data provider should
switch to providing data in outline mode. Otherwise
switch to providing data in inline mode.DataDirectorException - If a data provider error occurspublic boolean isOutline()
isOutline in interface DataDirectorisOutline in class DataAccessAdaptertrue if the data provider is providing
data in outline mode.public int getMemberSiblingCount(int edge,
int[] hPos,
int memberLayer)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapter
| June | July | ||||||||||
| Tents | Canoes | Tents | Canoes | ||||||||
| NY | Boston | LA | Toronto | Winnepeg | NY | LA | NY | Boston | LA | Toronto | Winnepeg |
A caller can use this method to find the number of
Geography values (that is, sibling members) under the members
July and Tents. This count is 3 (for NY, Boston, and LA). The hPos and memberLayer
parameters for this example are as follows:
hPos, an array of relative indexes, holds an entry
for July, Tents, and any one of the siblings that are to be counted.
A valid hPos in this example must contain indexes for at
least layers 0, 1, and 2. Valid arrays for this example could be any of
the following: {1,0,0} or {1,0,1} or {1,0,2).
memberLayer, which identifies the layer at which to count
the siblings, must be 2.
Note: The value that is returned by this method provides the upper limit
to the hIndex that a caller passes in
getMemberMetadata.
This implementation returns 0.
getMemberSiblingCount in interface DataAccessgetMemberSiblingCount in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.hPos - An array that contains an index for the member values
at each layer up to and including the layer of the sibling
members that are to be counted.
These indexes are relative to the number of
members at each layer.
When a member spans more than one layer, any layers beyond
the starting layer should have their place held by a
-1 index.memberLayer - The index into the hPos array for which
the call should return the sibling member count.hPos and
memberLayer.
In the example, this method returns 3 (for the siblings NY,
Boston, and LA).
This implementation returns 0.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If memberLayer is too
large.SliceOutOfRangeException - If any slice in hPos
is too large.DataAccessAdapter.getMemberMetadata(int, int, int, java.lang.String),
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic java.lang.Object getMemberMetadata(int edge,
int[] hPos,
int memberLayer,
int hIndex,
java.lang.String type)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapterThe user of this method makes the following calls:
getMemberSiblingCount to retrieve the number of
sibling members for a specified tree of members.
hPos and
memberLayer parameters as found in
getMemberSiblingCount to specify the parent tree of members.
Each call of this method also uses the hIndex parameter
that indicates the specific sibling member for which to return metadata.
Valid values for hIndex range from 0 to
(getMemberSiblingCount() - 1).getMemberMetadata in interface DataAccessgetMemberMetadata in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.hPos - An array of relative indexes, organized by logical layer,
for the parent tree of members above the sibling member
that is specified by hIndex. The array
includes entries for layer 0 through at least the layer
that is specified by memberLayer.memberLayer - The zero-based index into the hPos array
for which the call should address the set of sibling
members.hIndex - The zero-based index of a sibling member relative to its
siblings. This index specifies the sibling member for which
to return the specified metadata.type - A constant that specifies the kind of metadata to return.
Valid type values are defined in
MetadataMap.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If memberLayer is too
large.SliceOutOfRangeException - If any slice in hPos
is too large, or if the hIndex is too large.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getEdgeCurrentHPos(int edge)
throws EdgeOutOfRangeException
DataAccessAdaptergetEdgeCurrentHPos in interface DataAccessgetEdgeCurrentHPos in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.EdgeOutOfRangeException - If the parameter edge is
not valid.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getMemberHPos(int edge,
int layer,
int slice)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapterhPos parameter in calls such as
getMemberSiblingCount and
getMemberMetadata.
As an example, this method can retrieve an array of indexes from a page edge. The array includes an index for each layer in the page edge. Consider pivoting the following column header to a page edge.
| June | July | ||||||||||
| Tents | Canoes | Tents | Canoes | ||||||||
| NY | Boston | LA | Toronto | Winnepeg | NY | LA | NY | Boston | LA | Toronto | Winnepeg |
If the current page displayed June, Canoes, and Winnepeg, this
method would return the array {0,1,1}.
June is at index 0 in layer 0.
Canoes is at index 1 in layer 1 under June.
Winnepeg is at index 1 in layer 2 under Canoes.
To find the number of members under Canoes under June,
call getMemberSiblingCount with the array {0,1,1} and the
memberLayer parameter 2.
getMemberHPos in interface DataAccessgetMemberHPos in class DataAccessAdapteredge - A constant that represents the edge in which to look for
the slice.
The constants end with _EDGE in
DataDirector.layer - The zero-based index of the physical layer of the member
whose hierarchical address will be returned.slice - An absolute index (zero-based) along an edge that indicates
the location of the slice whose hierarchical location will
be returned.
Each member in the innermost layer has a unique slice.
In outer layers, any slice that the
outer member spans can be used.EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If memberLayer is too
large.SliceOutOfRangeException - If any slice in hPos
is too largeDataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getNextHPos(int edge,
int[] hPos)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapterhPos.
If there is no new member at a particular layer (because the member
spans more than one physical layer) then the index value in the hPos
array will be -1 for that layer.getNextHPos in interface DataAccessgetNextHPos in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.hPos - Identifies the member for which this call should return the
next member on the edge.null if the specified
hPos is the last one on the edge.
This implementation returns EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If hPos is too
long.SliceOutOfRangeException - If any slice in hPos
is too largeDataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getPrevHPos(int edge,
int[] hPos)
throws EdgeOutOfRangeException,
LayerOutOfRangeException,
SliceOutOfRangeException
DataAccessAdapterhPos on the specified edge.
If there is no new member at a particular layer (because the member
spans more than one physical layer) then the index value in the hPos
array will be -1 for that layer.getPrevHPos in interface DataAccessgetPrevHPos in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.hPos - Identifies the member for which this call should return the
previous member on the edge.null if the hPos parameter
represents the first slice on the edge.
This implementation returns EdgeOutOfRangeException - If edge is too large.LayerOutOfRangeException - If hPos is too
long.SliceOutOfRangeException - If any slice in hPos
is too largeDataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getFirstHPos(int edge)
throws EdgeOutOfRangeException
DataAccessAdaptergetFirstHPos in interface DataAccessgetFirstHPos in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.EdgeOutOfRangeException - If edge is too large.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic int[] getLastHPos(int edge)
throws EdgeOutOfRangeException
DataAccessAdaptergetLastHPos in interface DataAccessgetLastHPos in class DataAccessAdapteredge - A constant that represents the edge of interest.
The constants end with _EDGE in
DataDirector.EdgeOutOfRangeException - If edge is too large.DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic DataMap getDataMap()
DataAccessAdapterThis implmentation returns null.
getDataMap in interface DataDirectorgetDataMap in class DataAccessAdapterpublic DataMap getSupportedDataMap()
DataAccessAdapterDataMap that contains all of the types that
this DataAccessAdapter can support.
Some types of data might not be available in some types
of queries.getSupportedDataMap in interface DataDirectorgetSupportedDataMap in class DataAccessAdapternull.DataMappublic MetadataMap getSupportedMetadataMap()
DataAccessAdapterMetadataMap that contains all of the types that
this DataAccessAdapter can support.
Some types of metadata might not be available in some types of queries.getSupportedMetadataMap in interface DataDirectorgetSupportedMetadataMap in class DataAccessAdapternull.MetadataMappublic LayerMetadataMap getSupportedLayerMetadataMap()
DataAccessAdapterLayerMetadataMap that contains all of the types
that this DataAccessAdapter can support.
Some types of layer metadata might not be available in some types
of queries.getSupportedLayerMetadataMap in interface DataDirectorgetSupportedLayerMetadataMap in class DataAccessAdapternull.LayerMetadataMappublic QDR getLayerQDR(int edge, int layer, int flags) throws EdgeOutOfRangeException, LayerOutOfRangeException
QDR object that represents the specified logical layer.getLayerQDR in interface DataAccessgetLayerQDR in class DataAccessAdapteredge - A constant that represents the edge in which to find the
logical layer.
The constants end with _EDGE in
DataDirector.layer - The zero-based index of the logical layer for which to
return the QDR.flags - A constant that identifies whether to include page edge
information if the QDR is not for the page edge. Valid
constants are listed in the See Also section.QDR object that refers to the data in the
specified layer.EdgeOutOfRangeException - If edge is not valid.LayerOutOfRangeException - If the logical layer is
not valid for the specified
edge.DataAccess.QDR_WITH_PAGE,
DataAccess.QDR_WITHOUT_PAGE,
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEpublic QDR getSliceQDR(int edge, int slice, int flags) throws EdgeOutOfRangeException, SliceOutOfRangeException
QDR object that represents the data value at the specified
slice on the edge (that is, across all relevant logical layers of the
slice).getSliceQDR in interface DataAccessgetSliceQDR in class DataAccessAdapteredge - A constant that represents the edge of in which to find the
slice.
The constants end with _EDGE in
DataDirector.slice - An absolute index (zero-based) that indicates the location
of the slice along the specified edge.flags - A constant that identifies whether to include page edge
information if the QDR is not for the page edge. Valid
constants are listed in the See Also section.QDR object that refers to the data at the
specified location.EdgeOutOfRangeException - If the edge parameter
is not valid.SliceOutOfRangeException - If the slice parameter
is not valid.DataAccess.QDR_WITH_PAGE,
DataAccess.QDR_WITHOUT_PAGE,
DataDirector.COLUMN_EDGE,
DataDirector.PAGE_EDGE,
DataDirector.ROW_EDGEprotected QDR constructSliceQDR(int edge, int slice)
public void setSampleDataSource()
protected void initGroups5_2()
protected void initGroups5_3()
protected void initGroups5_4()
protected void initGroups5_5()
protected void initGroups5_7()
protected void initGroupAndSeriesArrays()