@Repository public class IndexFunctionsDaoImpl extends AbstractHerdDao implements IndexFunctionsDao
AbstractHerdDao.AggregateFunctionBUSINESS_OBJECT_DATA_PARTITIONS, BUSINESS_OBJECT_DATA_SUBPARTITIONS, configurationHelper, DEFAULT_SINGLE_DAY_DATE_MASK, MAX_PARTITION_FILTERS_PER_REQUESTentityManager| Constructor and Description |
|---|
IndexFunctionsDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String indexName,
String mapping,
String settings,
String alias)
The create index function will take as arguments the index name, and mapping and will create a new index.
|
void |
createIndexDocument(String indexName,
String id,
String json)
The index function will take as arguments indexName, id, json and add the document to the index.
|
void |
createIndexDocuments(String indexName,
Map<String,String> documentMap)
The create index documents function will take as arguments the index name, and a map of new documents.
|
void |
deleteDocumentById(String indexName,
String id)
The delete document by id function will delete a document in the index by the document id.
|
void |
deleteIndex(String indexName)
The delete index function will take as an argument the index name and will delete the index.
|
void |
deleteIndexDocuments(String indexName,
List<Long> ids)
The delete index documents function will delete a list of document in the index by a list of document ids.
|
List<String> |
getIdsInIndex(String indexName)
The ids in index function will take as arguments the index name and will return a list of all the ids in the index.
|
Settings |
getIndexSettings(String indexName)
Get the index settings
|
DocsStats |
getIndexStats(String indexName)
Get index statistics
|
long |
getNumberOfTypesInIndex(String indexName)
The number of types in index function will take as arguments the index name and will return the number of documents in the index.
|
boolean |
isIndexExists(String indexName)
The index exists predicate will take as an argument the index name and will return tree if the index exists and false otherwise.
|
boolean |
isValidDocumentIndex(String indexName,
String id,
String json)
The isValid function will take as arguments indexName, id, json and validate the document against the index and return true if the document
is valid and false otherwise.
|
void |
updateIndexDocuments(String indexName,
Map<String,String> documentMap)
The update index documents function will take as arguments the index name and a map of documents to update.
|
void |
validateDocumentIndex(String indexName,
String id,
String json)
The validate function will take as arguments indexName, id, json and validate the document against the index.
|
getQueryRestriction, getQueryRestriction, getQueryRestriction, getQueryRestriction, getQueryRestrictionOnBusinessObjectDataVersionAndStatus, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnStorage, savedelete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshpublic final void createIndexDocument(String indexName, String id, String json)
IndexFunctionsDaocreateIndexDocument in interface IndexFunctionsDaoindexName - index nameid - idjson - jsonpublic boolean isValidDocumentIndex(String indexName, String id, String json)
IndexFunctionsDaoisValidDocumentIndex in interface IndexFunctionsDaoindexName - index nameid - idjson - jsonpublic final boolean isIndexExists(String indexName)
IndexFunctionsDaoisIndexExists in interface IndexFunctionsDaoindexName - index namepublic final void deleteIndex(String indexName)
IndexFunctionsDaodeleteIndex in interface IndexFunctionsDaoindexName - indexNamepublic final void validateDocumentIndex(String indexName, String id, String json)
IndexFunctionsDaovalidateDocumentIndex in interface IndexFunctionsDaoindexName - index nameid - idjson - jsonpublic void createIndexDocuments(String indexName, Map<String,String> documentMap)
IndexFunctionsDaocreateIndexDocuments in interface IndexFunctionsDaoindexName - index namedocumentMap - document mappublic final void createIndex(String indexName, String mapping, String settings, String alias)
IndexFunctionsDaocreateIndex in interface IndexFunctionsDaoindexName - index namemapping - mappingsettings - settingalias - aliaspublic final void deleteDocumentById(String indexName, String id)
IndexFunctionsDaodeleteDocumentById in interface IndexFunctionsDaoindexName - index nameid - idpublic final void deleteIndexDocuments(String indexName, List<Long> ids)
IndexFunctionsDaodeleteIndexDocuments in interface IndexFunctionsDaoindexName - the name of the index where the document exists.ids - the ids of the documents to delete.public long getNumberOfTypesInIndex(String indexName)
IndexFunctionsDaogetNumberOfTypesInIndex in interface IndexFunctionsDaoindexName - index namepublic final List<String> getIdsInIndex(String indexName)
IndexFunctionsDaogetIdsInIndex in interface IndexFunctionsDaoindexName - index namepublic final void updateIndexDocuments(String indexName, Map<String,String> documentMap)
IndexFunctionsDaoupdateIndexDocuments in interface IndexFunctionsDaoindexName - index namedocumentMap - document mappublic Settings getIndexSettings(String indexName)
IndexFunctionsDaogetIndexSettings in interface IndexFunctionsDaoindexName - index namepublic DocsStats getIndexStats(String indexName)
IndexFunctionsDaogetIndexStats in interface IndexFunctionsDaoindexName - index nameCopyright © 2021. All rights reserved.