public class StatsIndex extends Object
Constructor and Description |
---|
StatsIndex(StatsHypercube hc,
String... dimLabels)
Build an index depending on the ordered list of dimension labels.
|
Modifier and Type | Method and Description |
---|---|
Collection<Stat> |
getCollection(String... dimLabels) |
Set<String> |
getKeys(String... dimLabels) |
List<String> |
getKeysAsList(String... dimLabels) |
Collection<Collection<Stat>> |
getLeaves() |
Stat |
getSingleStat(String... dimLabels) |
double |
getSingleValue(String... dimLabels) |
String |
getSingleValueFlagged(String... dimLabels) |
StatsHypercube |
getStatsHypercube(Collection<String> dims,
String... dimLabels)
Return a subindex as an hypercube object.
|
StatsIndex |
getSubIndex(String... dimLabels)
Retrieve a subindex.
|
void |
print()
Print the index structure.
|
void |
print(int indent)
Print the index structure, with indentation.
|
public StatsIndex(StatsHypercube hc, String... dimLabels)
hc
- dimLabels
- public StatsIndex getSubIndex(String... dimLabels)
dimLabels
- public Collection<Stat> getCollection(String... dimLabels)
dimLabels
- dim labels vectorpublic StatsHypercube getStatsHypercube(Collection<String> dims, String... dimLabels)
dims
- dimLabels
- public Stat getSingleStat(String... dimLabels)
dimLabels
- dim labels vectorpublic double getSingleValue(String... dimLabels)
dimLabels
- dim labels vectorpublic String getSingleValueFlagged(String... dimLabels)
dimLabels
- dim labels vectorpublic Set<String> getKeys(String... dimLabels)
dimLabels
- public List<String> getKeysAsList(String... dimLabels)
dimLabels
- public void print()
public void print(int indent)
indent
- public Collection<Collection<Stat>> getLeaves()
Copyright © 2020. All rights reserved.