Class HipoDataSource
java.lang.Object
org.jlab.io.hipo.HipoDataSource
- All Implemented Interfaces:
DataSource
- Direct Known Subclasses:
HipoDataSourceSorted
- Author:
- gavalian
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
HipoDataSource
public HipoDataSource()
-
-
Method Details
-
hasEvent
public boolean hasEvent()- Specified by:
hasEventin interfaceDataSource
-
open
- Specified by:
openin interfaceDataSource
-
createWriter
Creates 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 interfaceDataSource
-
open
- Specified by:
openin interfaceDataSource
-
close
public void close()- Specified by:
closein interfaceDataSource
-
getReader
public org.jlab.jnp.hipo4.io.HipoReader getReader() -
getSize
public int getSize()- Specified by:
getSizein interfaceDataSource
-
getEventList
- Specified by:
getEventListin interfaceDataSource
-
getEventList
- Specified by:
getEventListin interfaceDataSource
-
getNextEvent
- Specified by:
getNextEventin interfaceDataSource
-
getPreviousEvent
- Specified by:
getPreviousEventin interfaceDataSource
-
gotoEvent
- Specified by:
gotoEventin interfaceDataSource
-
reset
public void reset()- Specified by:
resetin interfaceDataSource
-
getCurrentIndex
public int getCurrentIndex()- Specified by:
getCurrentIndexin interfaceDataSource
-
main
-
getType
- Specified by:
getTypein interfaceDataSource
-
waitForEvents
public void waitForEvents()- Specified by:
waitForEventsin interfaceDataSource
-