public class ScanElement extends Object
org.gcube.searchservice.searchlibrary.resultset.ResultSet
file buffer and join related structs| Constructor and Description |
|---|
ScanElement(gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> reader,
Queue<JoinElement> queue,
Object synchThis,
short inputID,
short metaInputID,
long timeout,
TimeUnit timeUnit)
Create a new
ScanElement |
| Modifier and Type | Method and Description |
|---|---|
long |
getCounter()
Retrieves the counter for this
ScanElement |
DiskBuffer |
getFileBuf()
Retrieves the file buffer
|
short |
getInputID()
Retrieves the input id of this
ScanElement |
short |
getMetaInputID()
Retrieves the metadata input id of this
ScanElement |
Queue<JoinElement> |
getQueue()
Retrieves the queue used to place records
|
gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> |
getReader()
Retrieves the
RSXMLIterator |
Object |
getSynchThis()
Retrieves the object used to synchronize queue access
|
long |
getTimeout()
Retrieves the timeout used by the reader
|
TimeUnit |
getTimeUnit()
Retrieves the time unit of the timeout used by the reader
|
boolean |
isActive()
Checks if the current
ScanElement is active |
void |
setActive(boolean active)
Sets if the current
ScanElement is active |
void |
setCounter(long counter)
Sets the counter of this
ScanElement |
void |
setFileBuf(DiskBuffer fileBuf)
Sets the file buffer
|
void |
setInputID(short inputID)
Sets the input id of this
ScanElement |
void |
setMetaInputID(short metaInputID)
Sets the metadata input id of this
ScanElement |
void |
setQueue(Queue<JoinElement> queue)
Sets the queue used to place records
|
void |
setReader(gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> reader)
Sets the
RSXMLIterator |
void |
setSynchThis(Object synchThis)
Sets the object used to synchronize queue access
|
void |
setTimeout(long timeout)
Sets the timeout used by the reader
|
void |
setTimeUnit(TimeUnit timeUnit)
Sets the time unit of the timeout used by the reader
|
public ScanElement(gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> reader,
Queue<JoinElement> queue,
Object synchThis,
short inputID,
short metaInputID,
long timeout,
TimeUnit timeUnit)
ScanElementreader - Input readerqueue - The queue to place extacted recordssynchThis - Used for queue synchronizationinputID - Used to separate the various ScanElement instances based on their collectionmetaInputID - Used to separate the various ScanElement instances of a collection based on
which content/metadata collections they belongpublic long getCounter()
ScanElementpublic void setCounter(long counter)
ScanElementcounter - The counterpublic short getInputID()
ScanElementpublic void setInputID(short inputID)
ScanElementinputID - The input idpublic short getMetaInputID()
ScanElementpublic void setMetaInputID(short metaInputID)
ScanElementinputID - The input idpublic boolean isActive()
ScanElement is activetrue if it is, false otherwisepublic void setActive(boolean active)
ScanElement is activeactive - true if it is, false otherwisepublic DiskBuffer getFileBuf()
public void setFileBuf(DiskBuffer fileBuf)
fileBuf - The file bufferpublic gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> getReader()
RSXMLIteratorpublic void setReader(gr.uoa.di.madgik.grs.reader.ForwardReader<gr.uoa.di.madgik.grs.record.Record> reader)
RSXMLIteratoriter - The iteratorpublic Queue<JoinElement> getQueue()
public void setQueue(Queue<JoinElement> queue)
queue - The queuepublic Object getSynchThis()
public void setSynchThis(Object synchThis)
synchThis - The object to usepublic long getTimeout()
public void setTimeout(long timeout)
timeout - the timeoutpublic TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
timeUnit - the unit of the timeoutCopyright © 2017. All Rights Reserved.