/** * Get search callback factory for this dataset with the passed index and operation * * @param storageComponentProvider * storage component provider * @param index * the index * @param op * the operation this search is part of * @param primaryKeyFields * the primary key fields indexes for locking purposes * @return * an instance of {@link org.apache.hyracks.storage.am.common.api.ISearchOperationCallbackFactory} * @throws AlgebricksException * if the callback factory could not be created */ public ISearchOperationCallbackFactory getSearchCallbackFactory(IStorageComponentProvider storageComponentProvider, Index index, IndexOperation op, int[] primaryKeyFields) throws AlgebricksException { return getSearchCallbackFactory(storageComponentProvider, index, op, primaryKeyFields, null, false); }
dataset.getSearchCallbackFactory(storageComponentProvider, theIndex, IndexOperation.SEARCH, primaryKeyFields, primaryKeyFieldsInSecondaryIndex, proceedIndexOnlyPlan); IStorageManager storageManager = getStorageComponentProvider().getStorageManager();
dataset.getSearchCallbackFactory(storageComponentProvider, secondaryIndex, IndexOperation.SEARCH, primaryKeyFields, primaryKeyFieldsInSecondaryIndex, isIndexOnlyPlan); RTreeSearchOperatorDescriptor rtreeSearchOp;
jobSpec, outputRecDesc, queryField, dataflowHelperFactory, queryTokenizerFactory, searchModifierFactory, retainInput, retainMissing, context.getMissingWriterFactory(), dataset.getSearchCallbackFactory(metadataProvider.getStorageComponentProvider(), secondaryIndex, IndexOperation.SEARCH, null), minFilterFieldIndexes, maxFilterFieldIndexes, isFullTextSearchQuery, numPrimaryKeys,
IModificationOperationCallbackFactory modificationCallbackFactory = dataset.getModificationCallbackFactory( storageComponentProvider, primaryIndex, IndexOperation.UPSERT, primaryKeyFields); ISearchOperationCallbackFactory searchCallbackFactory = dataset.getSearchCallbackFactory( storageComponentProvider, primaryIndex, IndexOperation.UPSERT, primaryKeyFields); IIndexDataflowHelperFactory idfh =
dataset.getSearchCallbackFactory(storageComponentProvider, fileIndex, IndexOperation.SEARCH, null);
IModificationOperationCallbackFactory modificationCallbackFactory = dataset.getModificationCallbackFactory( storageComponentProvider, primaryIndexInfo.index, IndexOperation.UPSERT, keyIndexes); ISearchOperationCallbackFactory searchCallbackFactory = dataset.getSearchCallbackFactory( storageComponentProvider, primaryIndexInfo.index, IndexOperation.UPSERT, keyIndexes); IRecordDescriptorProvider recordDescProvider = primaryIndexInfo.getInsertRecordDescriptorProvider();