|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelasticsearchindex.FullTextNode
public class FullTextNode
| Field Summary | |
|---|---|
static String |
META_INDEX
|
| Constructor Summary | |
|---|---|
FullTextNode()
|
|
FullTextNode(String clusterName,
String indexName,
Integer noOfReplicas,
Integer noOfShards,
String scope,
int maxFragmentCnt,
int maxFragmentSize)
|
|
FullTextNode(String clusterName,
String indexName,
String scope)
|
|
| Method Summary | |
|---|---|
void |
addIndexType(String indexTypeStr)
|
void |
addIndexType(String indexTypeStr,
FullTextIndexType indexType)
|
boolean |
addMetaIndex()
|
void |
clearIndex(String indexTypeName)
|
void |
close()
Closes the index |
void |
commit()
|
void |
commitMeta()
Commits the changes to the index by sending a flush and a refresh request |
void |
createOrJoinCluster()
|
void |
deleteDocuments(List<String> docIDs)
Deletes the documents with IDs within the list docIDs |
boolean |
feedLocator(String resultSetLocation)
|
boolean |
feedLocator(String resultSetLocation,
HashMap<String,FullTextIndexType> colForField)
Feeds the index with rowsets that are read from the the given locator |
boolean |
feedRowset(String rowset)
Feeds the index with a rowset. |
String |
getClusterName()
|
org.elasticsearch.client.Client |
getIndexClient()
|
String |
getIndexName()
|
int |
getMaxFragmentCnt()
|
int |
getMaxFragmentSize()
|
Integer |
getNoOfReplicas()
|
Integer |
getNoOfShards()
|
String |
getScope()
|
void |
joinCluster(Map<String,Integer> knownNodes)
|
String |
query(String queryString)
|
String |
query(String queryString,
int maxHits)
Executes the query of gRS2 locator of maximum maxHits records (if >0) |
String |
queryStream(String queryString)
|
String |
queryStream(String queryString,
int maxHits)
Important: The returned results are not sorted! |
String |
toString()
|
boolean |
updateManagerProperties(HashMap<String,FullTextIndexType> colForIdTypes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String META_INDEX
| Constructor Detail |
|---|
public FullTextNode()
public FullTextNode(String clusterName,
String indexName,
Integer noOfReplicas,
Integer noOfShards,
String scope,
int maxFragmentCnt,
int maxFragmentSize)
public FullTextNode(String clusterName,
String indexName,
String scope)
| Method Detail |
|---|
public String getClusterName()
public String getIndexName()
public Integer getNoOfReplicas()
public Integer getNoOfShards()
public String getScope()
public int getMaxFragmentCnt()
public int getMaxFragmentSize()
public org.elasticsearch.client.Client getIndexClient()
public String toString()
toString in class Object
public void addIndexType(String indexTypeStr)
throws Exception
Exception
public void addIndexType(String indexTypeStr,
FullTextIndexType indexType)
throws Exception
Exceptionpublic void createOrJoinCluster()
public void joinCluster(Map<String,Integer> knownNodes)
throws IOException
knownNodes - Map of Address -> Port
IOException
public String query(String queryString)
throws IndexException,
gr.uoa.di.madgik.grs.writer.GRS2WriterException
queryString -
IndexException
gr.uoa.di.madgik.grs.writer.GRS2WriterException
public String query(String queryString,
int maxHits)
throws gr.uoa.di.madgik.grs.writer.GRS2WriterException,
IndexException
queryString - maxHits -
IndexException
gr.uoa.di.madgik.grs.writer.GRS2WriterException
public String queryStream(String queryString)
throws IndexException,
gr.uoa.di.madgik.grs.writer.GRS2WriterException
IndexException
gr.uoa.di.madgik.grs.writer.GRS2WriterException
public String queryStream(String queryString,
int maxHits)
throws IndexException,
gr.uoa.di.madgik.grs.writer.GRS2WriterException
queryString -
IndexException
gr.uoa.di.madgik.grs.writer.GRS2WriterExceptionpublic void deleteDocuments(List<String> docIDs)
docIDs - public void commitMeta()
public void commit()
public void clearIndex(String indexTypeName)
public void close()
public boolean feedRowset(String rowset)
rowset -
public boolean feedLocator(String resultSetLocation)
throws gr.uoa.di.madgik.grs.reader.GRS2ReaderException,
URISyntaxException,
gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException,
gr.uoa.di.madgik.grs.buffer.GRS2BufferException
gr.uoa.di.madgik.grs.reader.GRS2ReaderException
URISyntaxException
gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException
gr.uoa.di.madgik.grs.buffer.GRS2BufferException
public boolean feedLocator(String resultSetLocation,
HashMap<String,FullTextIndexType> colForField)
throws gr.uoa.di.madgik.grs.reader.GRS2ReaderException,
URISyntaxException,
gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException,
gr.uoa.di.madgik.grs.buffer.GRS2BufferException
resultSetLocation - colForField -
gr.uoa.di.madgik.grs.reader.GRS2ReaderException
URISyntaxException
gr.uoa.di.madgik.grs.record.GRS2RecordDefinitionException
gr.uoa.di.madgik.grs.buffer.GRS2BufferExceptionpublic boolean updateManagerProperties(HashMap<String,FullTextIndexType> colForIdTypes)
public boolean addMetaIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||