public class ResultSetHelper extends Object implements Serializable
| Constructor and Description |
|---|
ResultSetHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getRSRecFields(gr.uoa.di.madgik.grs.record.GenericRecord rsRec)
Gets the names of the fields for the given record
|
static void |
initializeGRS2(String hostname)
Initializes the gRS2 for writing
|
static URI |
multiGetAndWrite(List<RankedRecord> recs,
org.apache.lucene.store.Directory index,
Set<String> fields)
Gets the actual records from the rec and at the same time is writing them in a gRS2 result set.
|
static URI |
multiGetAndWriteNoStream(List<RankedRecord> recs,
org.apache.lucene.store.Directory index,
Set<String> fields)
Gets the actual records from the rec and then writes them in a gRS2 result set.
|
static void |
printRecords(List<gr.uoa.di.madgik.grs.record.GenericRecord> recs,
Set<String> fields) |
public static void initializeGRS2(String hostname)
public static URI multiGetAndWrite(List<RankedRecord> recs, org.apache.lucene.store.Directory index, Set<String> fields) throws Exception
recs - index - fields - the union of all fields of all the recordsExceptionpublic static URI multiGetAndWriteNoStream(List<RankedRecord> recs, org.apache.lucene.store.Directory index, Set<String> fields) throws Exception
recs - index - fields - the union of all fields of all the recordsExceptionpublic static void printRecords(List<gr.uoa.di.madgik.grs.record.GenericRecord> recs, Set<String> fields) throws gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException, gr.uoa.di.madgik.grs.buffer.GRS2BufferException
gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionExceptiongr.uoa.di.madgik.grs.buffer.GRS2BufferExceptionpublic static List<String> getRSRecFields(gr.uoa.di.madgik.grs.record.GenericRecord rsRec) throws gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException
rsRec - gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionExceptionCopyright © 2016. All Rights Reserved.