|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.data.DataAccessor
public abstract class DataAccessor
Abstract base for classes that access a substructure of a data source, e.g. columns or rows.
Constructor Summary | |
---|---|
DataAccessor(DataSource source,
int index)
Initializes a new instance with the specified data source and a acess index index. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
abstract Number |
get(int index)
Returns the value of the data source for the specified index. |
int |
getIndex()
Returns the index to access the data source. |
DataSource |
getSource()
Returns the data source containing this column. |
abstract double |
getStatistics(String key)
Returns the specified statistical information for this data. |
int |
hashCode()
|
Iterator<Number> |
iterator()
|
abstract int |
size()
Returns the number of elements in this column. |
Number[] |
toArray(Number[] data)
Converts the data column to an array. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataAccessor(DataSource source, int index)
source
- Data source.index
- Column index.Method Detail |
---|
public DataSource getSource()
public int getIndex()
public abstract Number get(int index)
index
- Index.
public abstract int size()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Number[] toArray(Number[] data)
data
- Optional array as data sink.
If array is null
a new array will be created.
public abstract double getStatistics(String key)
key
- Requested Statistical information.
public Iterator<Number> iterator()
iterator
in interface Iterable<Number>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |