Package com.macrofocus.molap.series
Class DefaultSeries<V>
- java.lang.Object
-
- com.macrofocus.molap.series.AbstractSeries<java.lang.Integer,V>
-
- com.macrofocus.molap.series.DefaultSeries<V>
-
- All Implemented Interfaces:
MutableSeries<java.lang.Integer,V>
,Series<java.lang.Integer,V>
public class DefaultSeries<V> extends AbstractSeries<java.lang.Integer,V> implements MutableSeries<java.lang.Integer,V>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeries(java.lang.Object name, V[] values)
DefaultSeries(V[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(java.lang.Integer key)
int
getAddress(java.lang.Integer key)
java.lang.Integer
getKey(int i)
java.lang.Object
getName()
java.lang.Class
getType()
Series<java.lang.Integer,V>
head(int count)
java.lang.Iterable<java.lang.Integer>
keys()
<K> Series<K,V>
reindex(UniqueIndex<K> index)
<L> Series<L,V>
reindex(L... keys)
void
set(java.lang.Integer key, V value)
int
size()
Series<java.lang.Integer,V>
tail(int count)
-
Methods inherited from class com.macrofocus.molap.series.AbstractSeries
add, count, countUnique, divide, equals, hashCode, identitcal, indexMax, indexMin, max, mean, meanAbsoluteDeviation, median, min, multiply, pow, print, subtract, sum, toString
-
-
-
-
Method Detail
-
getName
public java.lang.Object getName()
-
getType
public java.lang.Class getType()
-
get
public V get(java.lang.Integer key)
-
getKey
public java.lang.Integer getKey(int i)
-
getAddress
public int getAddress(java.lang.Integer key)
- Specified by:
getAddress
in interfaceSeries<java.lang.Integer,V>
-
set
public void set(java.lang.Integer key, V value)
- Specified by:
set
in interfaceMutableSeries<java.lang.Integer,V>
-
keys
public java.lang.Iterable<java.lang.Integer> keys()
-
reindex
public <K> Series<K,V> reindex(UniqueIndex<K> index)
-
-