|
|||||||||
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.DataSource
edu.unh.sdb.datasource.DynamicChunking
public class DynamicChunking
Abstract class for a dynamic chunking data source that provides a
Indexable.datum(edu.unh.sdb.datasource.IndexSpaceID)
method that either reads the datum from memory if the
block that contained it is loaded, or loads the block, eventually discards an
already loaded block in LRU fashion and then returns the data from the loaded
block. Each time a block is accessed, it it moved at the begining of the LRU
list.
Field Summary |
---|
Fields inherited from class edu.unh.sdb.datasource.DataSource |
---|
fdlDescriptor, isActivated, name, wsName |
Fields inherited from class edu.unh.sdb.datasource.DataCollection |
---|
attributeOrder, axisOrdering, axisWeights, bounds, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc |
Constructor Summary | |
---|---|
DynamicChunking(DataSource dataSource)
Creates a new instance of DynamicChunking |
Method Summary | |
---|---|
void |
activate()
Activates the cache for the given memory and page size. |
void |
datum(Datum datum,
IndexSpaceID dataId)
Given an IndexSpaceID, copy the values of the Datum at that position to the argument Datum. |
void |
datum(Datum dtm,
IndexSpaceID did,
FieldIDMapper mp)
not implemented |
void |
deactivate()
Dealocate all resources used for the DynamicChunking but do not deactivate the original dataSource. |
IndexSpaceID |
getBlockDimensions()
|
DataSource |
getDataSource()
|
java.util.Iterator |
getIterator()
|
int |
getMaxMemoryBlockCount()
|
long |
getMemory()
|
java.lang.String |
getStatistics()
|
protected ISBounds |
pageToRead(IndexSpaceID _pageId)
|
void |
setBlockDimensions(IndexSpaceID dimensions)
|
void |
setMemory(long memory)
|
void |
subblock(DataBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DataBlock theBlock,
ISBounds dstBounds,
ISBounds srcBounds,
FieldIDMapper mp)
not implemented |
Methods inherited from class edu.unh.sdb.datasource.DataSource |
---|
checkActivated, clearCache, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, equals, getName, getValues, isActivated, main, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DynamicChunking(DataSource dataSource)
Method Detail |
---|
public DataSource getDataSource()
public void setMemory(long memory)
public long getMemory()
public void setBlockDimensions(IndexSpaceID dimensions)
public IndexSpaceID getBlockDimensions()
public java.lang.String getStatistics()
public void activate()
activate
in class DataSource
public void deactivate()
deactivate
in class DataSource
protected ISBounds pageToRead(IndexSpaceID _pageId)
public int getMaxMemoryBlockCount()
public void datum(Datum datum, IndexSpaceID dataId)
DataCollection
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 subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds)
DataCollection
subblock
in interface Indexable
subblock
in class DataCollection
public void subblock(DataBlock theBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
subblock
in interface Indexable
subblock
in class DataCollection
public java.util.Iterator getIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |