@Repository public class IndexFunctionsDaoImpl extends AbstractHerdDao implements IndexFunctionsDao
AbstractHerdDao.AggregateFunction| Modifier and Type | Field and Description |
|---|---|
static int |
ELASTIC_SEARCH_SCROLL_KEEP_ALIVE_TIME
Scroll keep alive in milliseconds
|
static int |
ELASTIC_SEARCH_SCROLL_PAGE_SIZE
Page size
|
BUSINESS_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 documentType,
String mapping,
String settings,
String alias)
The create index function will take as arguments the index name, document type, and mapping and will create a new index.
|
void |
createIndexDocument(String indexName,
String documentType,
String id,
String json)
The index function will take as arguments indexName, documentType, id, json and add the document to the index.
|
void |
createIndexDocuments(String indexName,
String documentType,
Map<String,String> documentMap)
The create index documents function will take as arguments the index name, document type, and a map of new documents.
|
void |
deleteDocumentById(String indexName,
String documentType,
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,
String documentType,
List<Integer> 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,
String documentType)
The ids in index function will take as arguments the index name and the document type 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 docs stats
|
long |
getNumberOfTypesInIndex(String indexName,
String documentType)
The number of types in index function will take as arguments the index name and the document type 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 documentType,
String id,
String json)
The isValid function will take as arguments indexName, documentType, id, json and validate the document against the index and return true if the document
is valid and false otherwise.
|
void |
updateIndexDocuments(String indexName,
String documentType,
Map<String,String> documentMap)
The update index documents function will take as arguments the index name, document type, and a map of documents to update.
|
void |
validateDocumentIndex(String indexName,
String documentType,
String id,
String json)
The validate function will take as arguments indexName, documentType, id, json and validate the document against the index.
|
getMaximumBusinessObjectDataVersionSubQuery, 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 static final int ELASTIC_SEARCH_SCROLL_PAGE_SIZE
public static final int ELASTIC_SEARCH_SCROLL_KEEP_ALIVE_TIME
public final void createIndexDocument(String indexName, String documentType, String id, String json)
createIndexDocument in interface IndexFunctionsDaoindexName - index namedocumentType - document typeid - idjson - jsonpublic boolean isValidDocumentIndex(String indexName, String documentType, String id, String json)
IndexFunctionsDaoisValidDocumentIndex in interface IndexFunctionsDaoindexName - index namedocumentType - doucment typeid - idjson - jsonpublic final boolean isIndexExists(String indexName)
IndexFunctionsDaoisIndexExists in interface IndexFunctionsDaoindexName - index namepublic final void deleteIndex(String indexName)
deleteIndex in interface IndexFunctionsDaoindexName - indexNamepublic final void validateDocumentIndex(String indexName, String documentType, String id, String json)
validateDocumentIndex in interface IndexFunctionsDaoindexName - index namedocumentType - document typeid - idjson - jsonpublic void createIndexDocuments(String indexName, String documentType, Map<String,String> documentMap)
IndexFunctionsDaocreateIndexDocuments in interface IndexFunctionsDaoindexName - index namedocumentType - document typedocumentMap - document mappublic final void createIndex(String indexName, String documentType, String mapping, String settings, String alias)
createIndex in interface IndexFunctionsDaoindexName - index namedocumentType - document typemapping - mappingsettings - settingalias - aliaspublic final void deleteDocumentById(String indexName, String documentType, String id)
deleteDocumentById in interface IndexFunctionsDaoindexName - index namedocumentType - document typeid - idpublic final void deleteIndexDocuments(String indexName, String documentType, List<Integer> ids)
deleteIndexDocuments in interface IndexFunctionsDaopublic long getNumberOfTypesInIndex(String indexName, String documentType)
IndexFunctionsDaogetNumberOfTypesInIndex in interface IndexFunctionsDaoindexName - index namedocumentType - document typepublic final List<String> getIdsInIndex(String indexName, String documentType)
getIdsInIndex in interface IndexFunctionsDaoindexName - index namedocumentType - document typepublic final void updateIndexDocuments(String indexName, String documentType, Map<String,String> documentMap)
updateIndexDocuments in interface IndexFunctionsDaoindexName - index namedocumentType - document typedocumentMap - document mappublic Settings getIndexSettings(String indexName)
IndexFunctionsDaogetIndexSettings in interface IndexFunctionsDaoindexName - index namepublic DocsStats getIndexStats(String indexName)
IndexFunctionsDaogetIndexStats in interface IndexFunctionsDaoindexName - index nameCopyright © 2019. All rights reserved.