|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.couchbase.helpers.CouchBaseHelper
public class CouchBaseHelper
| Constructor Summary | |
|---|---|
CouchBaseHelper()
|
|
| Method Summary | |
|---|---|
static List<String> |
collectionDocIDs(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
String collID)
Returns the document IDs of the collection with the given ID |
static void |
commit(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys)
Executes a dummyQuery on each index to "warm" it. |
static void |
createIndexes(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys)
Creates one view-index for each key. |
static void |
delete(String key,
CouchBaseDataTypesHelper.DataType dataType,
com.couchbase.client.CouchbaseClient client)
Deletes the record with the given key |
static Boolean |
deleteCollectionCouchBase(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
MetaIndex meta,
String collID)
Deletes all the documents of the given collection |
static void |
deleteDocsCouchBase(com.couchbase.client.CouchbaseClient client,
List<String> keys)
Deletes all the documents with key in the given keys list |
static boolean |
feedLocator(com.couchbase.client.CouchbaseClient client,
String resultSetLocation,
MetaIndex meta)
Inserts all the records that are read from the resultSetLocation gRS2 endpoint in the record, updates the meta-index and saves it |
static gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> |
initRSWriterForSearchHits(List<String> presentables,
List<String> projections,
org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor)
Creates the gRS2 writer for the given projections and presentables. |
static void |
insertSimple(com.couchbase.client.CouchbaseClient client,
ForwardIndexDocument doc)
Inserts a ForwardIndexDocument document |
static void |
insertSimple(com.couchbase.client.CouchbaseClient client,
String key,
String value,
CouchBaseDataTypesHelper.DataType dataType)
Insert a key-value pair |
static String |
query(com.couchbase.client.CouchbaseClient client,
MetaIndex meta,
String bucketName,
String designDocName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
org.gcube.indexmanagement.resourceregistry.RRadaptor rradaptor,
String queryString)
Executes the queryString and returns a gRS2 endpoint locator were the results will written. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CouchBaseHelper()
| Method Detail |
|---|
public static void createIndexes(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys)
client - bucketName - designDocumentName - keys -
public static void insertSimple(com.couchbase.client.CouchbaseClient client,
String key,
String value,
CouchBaseDataTypesHelper.DataType dataType)
client - key - value - dataType -
public static void insertSimple(com.couchbase.client.CouchbaseClient client,
ForwardIndexDocument doc)
client - doc -
public static void delete(String key,
CouchBaseDataTypesHelper.DataType dataType,
com.couchbase.client.CouchbaseClient client)
key - dataType - client -
public static void deleteDocsCouchBase(com.couchbase.client.CouchbaseClient client,
List<String> keys)
client - keys -
public static Boolean deleteCollectionCouchBase(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
MetaIndex meta,
String collID)
client - keys -
public static List<String> collectionDocIDs(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
String collID)
client - bucketName - designDocumentName - keys - collID -
public static void commit(com.couchbase.client.CouchbaseClient client,
String bucketName,
String designDocumentName,
Map<String,CouchBaseDataTypesHelper.DataType> keys)
client - bucketName - designDocumentName - keys -
public static String query(com.couchbase.client.CouchbaseClient client,
MetaIndex meta,
String bucketName,
String designDocName,
Map<String,CouchBaseDataTypesHelper.DataType> keys,
org.gcube.indexmanagement.resourceregistry.RRadaptor rradaptor,
String queryString)
client - meta - bucketName - designDocName - keys - rradaptor - queryString -
public static boolean feedLocator(com.couchbase.client.CouchbaseClient client,
String resultSetLocation,
MetaIndex meta)
throws gr.uoa.di.madgik.grs.reader.GRS2ReaderException,
URISyntaxException
client - resultSetLocation - meta -
gr.uoa.di.madgik.grs.reader.GRS2ReaderException
URISyntaxException
public static gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> initRSWriterForSearchHits(List<String> presentables,
List<String> projections,
org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor)
throws org.gcube.indexmanagement.common.IndexException,
gr.uoa.di.madgik.grs.writer.GRS2WriterException
presentables - projections - adaptor -
org.gcube.indexmanagement.common.IndexException
gr.uoa.di.madgik.grs.writer.GRS2WriterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||