|
|||||||||
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.PhysicalDataSource
edu.unh.sdb.datasource.BinaryFileDataSource
edu.unh.sdb.datasource.PointOrderBFDS
public class PointOrderBFDS
This class will read from a file of binary data, providing an n-dimensional datasource view of that file. this class represents data file that is in point order ( attributes are seperated in chunks )
Field Summary |
---|
Fields inherited from class edu.unh.sdb.datasource.BinaryFileDataSource |
---|
bufferIterCopy, bufferUpper, dimensions, fChannel, iniOffset, iterCopy, leastSignificantAxis, raFile, recordByteSize, recordNumFields, srcRodByteSize, srcRodSize, steps, tempDatum |
Fields inherited from class edu.unh.sdb.datasource.PhysicalDataSource |
---|
BIG_ENDIAN, bufferBounds, bufferDimension, bufferSteps, byteBuffers, directMemoryLimit, endian, LITTLE_ENDIAN, maxBufferSize, maxGapSize, readCounter, readLength, url |
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 | |
---|---|
PointOrderBFDS(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds theBounds,
AxisOrdering ordering,
java.lang.String URL,
java.nio.ByteOrder endian)
create a PointOrderBFDS, set the initial file offset at 0 |
|
PointOrderBFDS(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds theBounds,
AxisOrdering ordering,
java.lang.String URL,
java.nio.ByteOrder endian,
int offset)
create a PointOrderBFDS, set the initial file offset at the given value |
Method Summary | |
---|---|
void |
datum(Datum datum,
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 datum,
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. |
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
Return the Datum corresponding to the given IndexSpaceID. |
boolean |
equals(java.lang.Object o)
Returns true if this BinaryFileDataSource has the same pointOrder as the argument BinaryFileDataSource, as well as meeting inherited criteria for equality. |
void |
old_server_subblock(byte[] subSet,
ISBounds inputSrcBounds,
int bytesOffset)
Starting at the position indicated by bytesOffset, fill the byte array with the the data corresponding to the given ISBounds. |
protected void |
rsubblock(byte[] subSet,
ISBounds inputSrcBounds)
This function is used by SDBServer, it extracts a byte array from disk regardless the type of attributes. |
void |
server_subblock(byte[] bytes,
ISBounds inputSrcBounds,
int bytesoffset)
|
protected void |
subBasicBlock(BasicBlock dstBlock,
ISBounds dstBounds,
ISBounds inputSrcBounds)
This subblock method will check if gap between two neighboring rods (in data storage order) is smaller than the argument seekcost. |
java.lang.String |
toString()
Print the data members of the DataSource in an easy to read fashion. |
Methods inherited from class edu.unh.sdb.datasource.BinaryFileDataSource |
---|
activate, createBinaryFileDataSource, deactivate, getFileOffset, main, setDatum, setFileOffset |
Methods inherited from class edu.unh.sdb.datasource.PhysicalDataSource |
---|
allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, deleteBuffer, deleteBuffer, deleteBuffers, getBuffer, getBuffer, getBufferSize, getBufferSize, getByteOrder, getDataFileString, getMaxBufferSize, getReadCounter, getReadLength, getURL, initializeBuffers, isBigEndian, makeBestBuffer, resetReadCounter, setBufferByteOrder, setMaxBufferSize, setMaxGapSize, subblock, subblock, subblock, toString |
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, getName, getValues, isActivated |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointOrderBFDS(java.lang.String name, RecordDescriptor recordDesc, ISBounds theBounds, AxisOrdering ordering, java.lang.String URL, java.nio.ByteOrder endian)
public PointOrderBFDS(java.lang.String name, RecordDescriptor recordDesc, ISBounds theBounds, AxisOrdering ordering, java.lang.String URL, java.nio.ByteOrder endian, int offset)
Method Detail |
---|
public Datum datum(IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, IndexSpaceID did, RecordSpec recSpec)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, IndexSpaceID did, FieldIDMapper mp)
datum
in interface Indexable
datum
in class DataCollection
public Datum datum(IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
protected void rsubblock(byte[] subSet, ISBounds inputSrcBounds)
public void old_server_subblock(byte[] subSet, ISBounds inputSrcBounds, int bytesOffset)
public void server_subblock(byte[] bytes, ISBounds inputSrcBounds, int bytesoffset)
protected void subBasicBlock(BasicBlock dstBlock, ISBounds dstBounds, ISBounds inputSrcBounds)
public java.lang.String toString()
toString
in class BinaryFileDataSource
public boolean equals(java.lang.Object o)
equals
in class BinaryFileDataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |