com.timeindexing.plugin
Class DefaultReaderResult

java.lang.Object
  extended bycom.timeindexing.plugin.DefaultReaderResult
All Implemented Interfaces:
ReaderResult

public class DefaultReaderResult
extends java.lang.Object
implements ReaderResult

A default implementation for the value returned by a reader plugin.


Constructor Summary
DefaultReaderResult(java.nio.ByteBuffer bb, Timestamp dTS, DataType dType)
          Construct a DefaultReaderResult
 
Method Summary
 java.nio.ByteBuffer getData()
          Get the data associated with this ReaderResult.
 Timestamp getDataTimestamp()
          Get the data timestamp.
 DataType getDataType()
          Get the DataType for this data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReaderResult

public DefaultReaderResult(java.nio.ByteBuffer bb,
                           Timestamp dTS,
                           DataType dType)
Construct a DefaultReaderResult

Method Detail

getData

public java.nio.ByteBuffer getData()
Get the data associated with this ReaderResult.

Specified by:
getData in interface ReaderResult

getDataTimestamp

public Timestamp getDataTimestamp()
Get the data timestamp.

Specified by:
getDataTimestamp in interface ReaderResult
Returns:
null if the data has no specific timestamp.

getDataType

public DataType getDataType()
Get the DataType for this data

Specified by:
getDataType in interface ReaderResult