|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.unh.sdb.datasource.DataCollection
edu.unh.sdb.datasource.VRIndexable
public class VRIndexable
VRIndexable provides different resolution view of the datasource. It can be built on top of any datasource to view the datasource with different resolution level. The resolution level is a integer number which can be incremented and decrease by VRDS' function call. Negative numbers mean the current resolution coarser than the datasource's original resolution. It also means the current VRDS has less data points than the original datasource. Positive numbers' meaning is opposite.
| Field Summary | |
|---|---|
protected int |
base_resolution
|
protected ISBounds |
bounds
|
protected int |
dimensionality
|
protected ISIDMapper |
mapper
|
protected RecordDescriptor |
recordDesc
|
protected int |
res_level
|
protected DataCollection |
source_dc
|
| Fields inherited from class edu.unh.sdb.datasource.DataCollection |
|---|
attributeOrder, axisOrdering, axisWeights, dataOrder, numAttributes, pointOrder |
| Constructor Summary | |
|---|---|
VRIndexable(DataCollection dc)
Construct a VRDataSource from any source datasource. |
|
VRIndexable(DataCollection dc,
int base_res)
Construct a VRdataSource and set it to a certain resolution level. |
|
VRIndexable(DataCollection dc,
ISBounds res)
Construct a VRdataSource and set its resolution corresponding to the given ISBounds argument. |
|
| Method Summary | |
|---|---|
void |
datum(Datum dtm,
IndexSpaceID did)
Return by reference the Datum corresponding to the given IndexSpaceID. |
void |
datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding FieldIDMapper. |
void |
datum(Datum dtm,
IndexSpaceID did,
RecordSpec recSpec)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec. |
Datum |
datum(IndexSpaceID did)
Return the Datum corresponding to the given IndexSpaceID and current resolution level, using the ISIDMapper. |
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
Return the attribute projected Datum corresponding to the given IndexSpaceID and current resolution level, using the ISIDMapper. |
boolean |
decr()
Decrease Resolution Level by 1 |
ISIDMapper |
getMapper()
Get the mapper |
Indexable |
getSource()
Get source |
Indexable |
getSourceIndexable()
Return the DataSource on which this VRDS is built |
Values |
getValues()
Return a Values array of all attributes in whatever type and order they are stored internally (either attribute order or point order for Granite-defined objects). |
boolean |
incr()
Increase Resolution Level by 1 |
static void |
main(java.lang.String[] args)
|
void |
subblock(DataBlock blk,
ISBounds dstBounds,
ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DataBlock blk,
ISBounds dstISB,
ISBounds srcISB,
FieldIDMapper mp)
Reads a subblock defined by srcISB into the region of the Datablock argument defined by dstISB. |
void |
subblock(DataBlock blk,
ISBounds dstISB,
ISBounds srcISB,
RecordSpec spec)
Reads a subblock defined by srcISB into the region of the Datablock argument defined by dstISB. |
java.lang.String |
toString()
Return the description of the VRDS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DataCollection source_dc
protected ISIDMapper mapper
protected int res_level
protected int base_resolution
protected ISBounds bounds
protected int dimensionality
protected RecordDescriptor recordDesc
| Constructor Detail |
|---|
public VRIndexable(DataCollection dc)
public VRIndexable(DataCollection dc,
int base_res)
public VRIndexable(DataCollection dc,
ISBounds res)
| Method Detail |
|---|
public Indexable getSource()
public ISIDMapper getMapper()
public void datum(Datum dtm,
IndexSpaceID did)
datum in interface Indexabledatum in class DataCollection
public void datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
datum in interface Indexabledatum in class DataCollection
public void datum(Datum dtm,
IndexSpaceID did,
RecordSpec recSpec)
datum in interface Indexabledatum in class DataCollectionpublic Datum datum(IndexSpaceID did)
datum in interface Indexabledatum in class DataCollection
public Datum datum(IndexSpaceID did,
RecordSpec spec)
datum in interface Indexabledatum in class DataCollectionpublic boolean incr()
public boolean decr()
public Values getValues()
getValues in class DataCollection
public void subblock(DataBlock blk,
ISBounds dstBounds,
ISBounds srcBounds)
subblock in interface Indexablesubblock in class DataCollection
public void subblock(DataBlock blk,
ISBounds dstISB,
ISBounds srcISB,
RecordSpec spec)
subblock in interface Indexablesubblock in class DataCollection
public void subblock(DataBlock blk,
ISBounds dstISB,
ISBounds srcISB,
FieldIDMapper mp)
subblock in interface Indexablesubblock in class DataCollectionpublic Indexable getSourceIndexable()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||