Class NamedDataSet
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.types.dataset.AbstractDataSet
-
- it.bancaditalia.oss.vtl.impl.types.dataset.NamedDataSet
-
- All Implemented Interfaces:
DataSet
,VTLValue
,Serializable
,Iterable<DataPoint>
- Direct Known Subclasses:
CachedDataSet
public class NamedDataSet extends AbstractDataSet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedDataSet(String alias, DataSet delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlias()
DataSet
getDelegate()
DataSet
getMatching(Map<DataStructureComponent<ComponentRole.Identifier,?,?>,ScalarValue<?,?,?,?>> keyValues)
Create a new DataSet by filtering this DataSet'sDataPoint
s matching the specified values for some identifiers.protected Stream<DataPoint>
streamDataPoints()
void
streamTo(PrintStream output)
void
streamTo(PrintWriter output)
String
toString()
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.types.dataset.AbstractDataSet
aggr, analytic, filter, filteredMappedJoin, filteredMappedJoinWithIndex, getComponent, getMetadata, mapKeepingKeys, membership, stream, streamByKeys
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface it.bancaditalia.oss.vtl.model.data.DataSet
analytic, analytic, contains, getComponent, getComponent, getComponent, getComponents, getComponents, isCacheable, isIndexed, iterator, mappedJoin, notContains, size, streamByKeys, streamByKeys, streamByKeys
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getAlias
public String getAlias()
-
streamTo
public void streamTo(PrintWriter output)
-
toString
public String toString()
- Overrides:
toString
in classAbstractDataSet
-
streamTo
public void streamTo(PrintStream output)
-
getDelegate
public DataSet getDelegate()
-
getMatching
public DataSet getMatching(Map<DataStructureComponent<ComponentRole.Identifier,?,?>,ScalarValue<?,?,?,?>> keyValues)
Description copied from interface:DataSet
Create a new DataSet by filtering this DataSet'sDataPoint
s matching the specified values for some identifiers.- Parameters:
keyValues
- AMap
containing values for some of this DataSetComponentRole.Identifier
s. If the map is empty, the result is thisDataSet
.- Returns:
- A new
DataSet
of matchingDataPoint
s, eventually empty.
-
streamDataPoints
protected Stream<DataPoint> streamDataPoints()
- Specified by:
streamDataPoints
in classAbstractDataSet
-
-