Tabnine Logo
DatasetUtil.createPrimaryIndexScanOp
Code IndexAdd Tabnine to your IDE (free)

How to use
createPrimaryIndexScanOp
method
in
org.apache.asterix.metadata.utils.DatasetUtil

Best Java code snippets using org.apache.asterix.metadata.utils.DatasetUtil.createPrimaryIndexScanOp (Showing top 4 results out of 315)

origin: apache/asterixdb

private static void populateDataToRebalanceTarget(Dataset source, Dataset target, MetadataProvider metadataProvider,
    IHyracksClientConnection hcc) throws Exception {
  JobSpecification spec = new JobSpecification();
  TxnId txnId = metadataProvider.getTxnIdFactory().create();
  JobEventListenerFactory jobEventListenerFactory = new JobEventListenerFactory(txnId, true);
  spec.setJobletEventListenerFactory(jobEventListenerFactory);
  // The pipeline starter.
  IOperatorDescriptor starter = DatasetUtil.createDummyKeyProviderOp(spec, source, metadataProvider);
  // Creates primary index scan op.
  IOperatorDescriptor primaryScanOp = DatasetUtil.createPrimaryIndexScanOp(spec, metadataProvider, source);
  // Creates secondary BTree upsert op.
  IOperatorDescriptor upsertOp = createPrimaryIndexUpsertOp(spec, metadataProvider, source, target);
  // The final commit operator.
  IOperatorDescriptor commitOp = createUpsertCommitOp(spec, metadataProvider, target);
  // Connects empty-tuple-source and scan.
  spec.connect(new OneToOneConnectorDescriptor(spec), starter, 0, primaryScanOp, 0);
  // Connects scan and upsert.
  int numKeys = target.getPrimaryKeys().size();
  int[] keys = IntStream.range(0, numKeys).toArray();
  IConnectorDescriptor connectorDescriptor = new MToNPartitioningConnectorDescriptor(spec,
      new FieldHashPartitionComputerFactory(keys, target.getPrimaryHashFunctionFactories(metadataProvider)));
  spec.connect(connectorDescriptor, primaryScanOp, 0, upsertOp, 0);
  // Connects upsert and sink.
  spec.connect(new OneToOneConnectorDescriptor(spec), upsertOp, 0, commitOp, 0);
  // Executes the job.
  JobUtils.runJob(hcc, spec, true);
}
origin: apache/asterixdb

IOperatorDescriptor targetOp = DatasetUtil.createPrimaryIndexScanOp(spec, metadataProvider, dataset);
spec.connect(new OneToOneConnectorDescriptor(spec), sourceOp, 0, targetOp, 0);
origin: apache/asterixdb

IOperatorDescriptor primaryScanOp = DatasetUtil.createPrimaryIndexScanOp(spec, metadataProvider, dataset);
origin: apache/asterixdb

IOperatorDescriptor primaryScanOp = DatasetUtil.createPrimaryIndexScanOp(spec, metadataProvider, dataset);
org.apache.asterix.metadata.utilsDatasetUtilcreatePrimaryIndexScanOp

Javadoc

Creates a primary index scan operator for a given dataset.

Popular methods of DatasetUtil

  • getFilterField
  • createNodeGroupForNewDataset
    Creates a node group that is associated with a new dataset.
  • computeFilterBinaryComparatorFactories
  • computeFilterTypeTraits
  • createDummyKeyProviderOp
    Creates a dummy key provider operator for the primary index scan.
  • createPrimaryIndexUpsertOp
    Creates a primary index upsert operator for a given dataset.
  • dropDatasetJobSpec
  • getDatasetInfo
  • getFullyQualifiedName
  • getMergePolicyFactory
  • buildDropFilesIndexJobSpec
  • compactDatasetJobSpec
  • buildDropFilesIndexJobSpec,
  • compactDatasetJobSpec,
  • createBTreeFieldsWhenThereisAFilter,
  • createDatasetJobSpec,
  • createFilterFields,
  • getMetaType,
  • getPositionOfPartitioningKeyField,
  • keySourceMatches,
  • writePropertyTypeRecord

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now