public class VRIndexable extends DataCollection
Modifier and Type | Field and Description |
---|---|
protected int |
base_resolution |
protected ISBounds |
bounds |
protected int |
dimensionality |
protected ISIDMapper |
mapper |
protected RecordDescriptor |
recordDesc |
protected int |
res_level |
protected DataCollection |
source_dc |
attributeOrder, axisOrdering, axisWeights, dataOrder, numAttributes, pointOrder
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, dim, getAttributeNames, getAxisOrdering, getAxisWeight, getAxisWeights, getBounds, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytesByAttribute, getBytesByAttribute, getBytesByPoint, getBytesByPoint, getDataOrder, getDimensionsArray, getDouble, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesByAttribute, getDoublesByAttribute, getDoublesByPoint, getDoublesByPoint, getFloat, getFloats, getFloats, getFloats, getFloats, getFloats, getFloats, getFloatsByAttribute, getFloatsByAttribute, getFloatsByPoint, getFloatsByPoint, getInt, getInts, getInts, getInts, getInts, getInts, getInts, getIntsByAttribute, getIntsByAttribute, getIntsByPoint, getIntsByPoint, getLowerBoundsArray, getNumAttributes, getRecordDescriptor, getShort, getShorts, getShorts, getShorts, getShorts, getShorts, getShorts, getShortsByAttribute, getShortsByAttribute, getShortsByPoint, getShortsByPoint, getStorageType, getUpperBoundsArray, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, size, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, subblock, useBytesOnly, volume
protected DataCollection source_dc
protected ISIDMapper mapper
protected int res_level
protected int base_resolution
protected ISBounds bounds
protected int dimensionality
protected RecordDescriptor recordDesc
public VRIndexable(DataCollection dc)
public VRIndexable(DataCollection dc, int base_res)
public VRIndexable(DataCollection dc, ISBounds res)
public Indexable getSource()
public ISIDMapper getMapper()
public void datum(Datum dtm, IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, FieldIDMapper mp)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum dtm, IndexSpaceID did, RecordSpec recSpec)
datum
in interface Indexable
datum
in class DataCollection
public Datum datum(IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public Datum datum(IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
public boolean incr()
public boolean decr()
public Values getValues()
getValues
in class DataCollection
public void subblock(DataBlock blk, ISBounds dstBounds, ISBounds srcBounds)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock blk, ISBounds dstISB, ISBounds srcISB, RecordSpec spec)
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock blk, ISBounds dstISB, ISBounds srcISB, FieldIDMapper mp)
subblock
in interface Indexable
subblock
in class DataCollection
public Indexable getSourceIndexable()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)