Package org.jlab.io.hipo
Class HipoDataSource
java.lang.Object
org.jlab.io.hipo.HipoDataSource
- All Implemented Interfaces:
- DataSource
- Direct Known Subclasses:
- HipoDataSourceSorted
- Author:
- gavalian
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Creates a Writer class with Dictionary from the Reader.intgetEventList(int nrecords) getEventList(int start, int stop) org.jlab.jnp.hipo4.io.HipoReaderintgetSize()getType()gotoEvent(int index) booleanhasEvent()static voidvoidvoidvoidopen(ByteBuffer buff) voidreset()void
- 
Field Details- 
LOGGER
 
- 
- 
Constructor Details- 
HipoDataSourcepublic HipoDataSource()
 
- 
- 
Method Details- 
hasEventpublic boolean hasEvent()- Specified by:
- hasEventin interface- DataSource
 
- 
open- Specified by:
- openin interface- DataSource
 
- 
createWriterCreates a Writer class with Dictionary from the Reader. This method should be used when filtering the input file to ensure consistency of dictionaries and banks in the output.- Returns:
- HipoDataSync object for writing an output.
 
- 
open- Specified by:
- openin interface- DataSource
 
- 
open- Specified by:
- openin interface- DataSource
 
- 
closepublic void close()- Specified by:
- closein interface- DataSource
 
- 
getReaderpublic org.jlab.jnp.hipo4.io.HipoReader getReader()
- 
getSizepublic int getSize()- Specified by:
- getSizein interface- DataSource
 
- 
getEventList- Specified by:
- getEventListin interface- DataSource
 
- 
getEventList- Specified by:
- getEventListin interface- DataSource
 
- 
getNextEvent- Specified by:
- getNextEventin interface- DataSource
 
- 
getPreviousEvent- Specified by:
- getPreviousEventin interface- DataSource
 
- 
gotoEvent- Specified by:
- gotoEventin interface- DataSource
 
- 
resetpublic void reset()- Specified by:
- resetin interface- DataSource
 
- 
getCurrentIndexpublic int getCurrentIndex()- Specified by:
- getCurrentIndexin interface- DataSource
 
- 
main
- 
getType- Specified by:
- getTypein interface- DataSource
 
- 
waitForEventspublic void waitForEvents()- Specified by:
- waitForEventsin interface- DataSource
 
 
-