IndexerDefinition.getIncrementalIndexingState
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.ngdata.hbaseindexer.model.api.IndexerDefinition.getIncrementalIndexingState (Showing top 16 results out of 315)

origin: NGDATA/hbase-indexer

private boolean needsSubscriptionIdUnassigned(IndexerDefinition indexer) {
  return indexer.getIncrementalIndexingState() == IncrementalIndexingState.DO_NOT_SUBSCRIBE
      && indexer.getSubscriptionId() != null;
}
origin: com.ngdata/hbase-indexer-server

private boolean needsSubscriptionIdUnassigned(IndexerDefinition indexer) {
  return indexer.getIncrementalIndexingState() == IncrementalIndexingState.DO_NOT_SUBSCRIBE
      && indexer.getSubscriptionId() != null;
}
origin: NGDATA/hbase-indexer

private boolean shouldRunIndexer(IndexerDefinition indexerDef) {
  return indexerDef.getIncrementalIndexingState() == IncrementalIndexingState.SUBSCRIBE_AND_CONSUME &&
      indexerDef.getSubscriptionId() != null &&
      !indexerDef.getLifecycleState().isDeleteState();
}
origin: NGDATA/hbase-indexer

private boolean needsSubscriptionIdAssigned(IndexerDefinition indexer) {
  return !indexer.getLifecycleState().isDeleteState() &&
      indexer.getIncrementalIndexingState() != IncrementalIndexingState.DO_NOT_SUBSCRIBE
      && indexer.getSubscriptionId() == null;
}
origin: com.ngdata/hbase-indexer-server

private boolean needsSubscriptionIdAssigned(IndexerDefinition indexer) {
  return !indexer.getLifecycleState().isDeleteState() &&
      indexer.getIncrementalIndexingState() != IncrementalIndexingState.DO_NOT_SUBSCRIBE
      && indexer.getSubscriptionId() == null;
}
origin: com.ngdata/hbase-indexer-server

private boolean shouldRunIndexer(IndexerDefinition indexerDef) {
  return indexerDef.getIncrementalIndexingState() == IncrementalIndexingState.SUBSCRIBE_AND_CONSUME &&
      indexerDef.getSubscriptionId() != null &&
      !indexerDef.getLifecycleState().isDeleteState();
}
origin: NGDATA/hbase-indexer

ps.println(indexer.getName());
ps.println("  + Lifecycle state: " + indexer.getLifecycleState());
ps.println("  + Incremental indexing state: " + indexer.getIncrementalIndexingState());
ps.println("  + Batch indexing state: " + indexer.getBatchIndexingState());
ps.println("  + SEP subscription ID: " + indexer.getSubscriptionId());
origin: com.ngdata/hbase-indexer-cli

ps.println(indexer.getName());
ps.println("  + Lifecycle state: " + indexer.getLifecycleState());
ps.println("  + Incremental indexing state: " + indexer.getIncrementalIndexingState());
ps.println("  + Batch indexing state: " + indexer.getBatchIndexingState());
ps.println("  + SEP subscription ID: " + indexer.getSubscriptionId());
origin: NGDATA/hbase-indexer

@Override
public void addIndexer(IndexerDefinition indexer)
    throws IndexerExistsException, IndexerModelException, IndexerValidityException {
  assertValid(indexer);
  if (indexer.getIncrementalIndexingState() != IndexerDefinition.IncrementalIndexingState.DO_NOT_SUBSCRIBE) {
    indexer = new IndexerDefinitionBuilder().startFrom(indexer).subscriptionTimestamp(System.currentTimeMillis()).build();
  }
  final String indexerPath = indexerCollectionPath + "/" + indexer.getName();
  final byte[] data = IndexerDefinitionJsonSerDeser.INSTANCE.toJsonBytes(indexer);
  try {
    zk.retryOperation(new ZooKeeperOperation<String>() {
      @Override
      public String execute() throws KeeperException, InterruptedException {
        return zk.create(indexerPath, data, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
      }
    });
  } catch (KeeperException.NodeExistsException e) {
    throw new IndexerExistsException(indexer.getName());
  } catch (Exception e) {
    throw new IndexerModelException("Error creating indexer.", e);
  }
}
origin: com.ngdata/hbase-indexer-model

@Override
public void addIndexer(IndexerDefinition indexer)
    throws IndexerExistsException, IndexerModelException, IndexerValidityException {
  assertValid(indexer);
  if (indexer.getIncrementalIndexingState() != IndexerDefinition.IncrementalIndexingState.DO_NOT_SUBSCRIBE) {
    indexer = new IndexerDefinitionBuilder().startFrom(indexer).subscriptionTimestamp(System.currentTimeMillis()).build();
  }
  final String indexerPath = indexerCollectionPath + "/" + indexer.getName();
  final byte[] data = IndexerDefinitionJsonSerDeser.INSTANCE.toJsonBytes(indexer);
  try {
    zk.retryOperation(new ZooKeeperOperation<String>() {
      @Override
      public String execute() throws KeeperException, InterruptedException {
        return zk.create(indexerPath, data, CreateMode.PERSISTENT);
      }
    });
  } catch (KeeperException.NodeExistsException e) {
    throw new IndexerExistsException(indexer.getName());
  } catch (Exception e) {
    throw new IndexerModelException("Error creating indexer.", e);
  }
}
origin: NGDATA/hbase-indexer

public IndexerDefinitionBuilder startFrom(IndexerDefinition existingDefinition) {
  this.name = existingDefinition.getName();
  this.lifecycleState = existingDefinition.getLifecycleState();
  this.batchIndexingState = existingDefinition.getBatchIndexingState();
  this.incrementalIndexingState = existingDefinition.getIncrementalIndexingState();
  this.subscriptionId = existingDefinition.getSubscriptionId();
  this.configuration = existingDefinition.getConfiguration();
  this.indexerComponentFactory = existingDefinition.getIndexerComponentFactory();
  this.connectionType = existingDefinition.getConnectionType();
  this.connectionParams = existingDefinition.getConnectionParams();
  this.defaultBatchIndexCliArguments = existingDefinition.getDefaultBatchIndexCliArguments();
  this.batchIndexCliArguments = existingDefinition.getBatchIndexCliArguments();
  this.lastBatchBuildInfo = existingDefinition.getLastBatchBuildInfo();
  this.activeBatchBuildInfo = existingDefinition.getActiveBatchBuildInfo();
  this.subscriptionTimestamp = existingDefinition.getSubscriptionTimestamp();
  this.occVersion = existingDefinition.getOccVersion();
  return this;
}
origin: com.ngdata/hbase-indexer-model

public IndexerDefinitionBuilder startFrom(IndexerDefinition existingDefinition) {
  this.name = existingDefinition.getName();
  this.lifecycleState = existingDefinition.getLifecycleState();
  this.batchIndexingState = existingDefinition.getBatchIndexingState();
  this.incrementalIndexingState = existingDefinition.getIncrementalIndexingState();
  this.subscriptionId = existingDefinition.getSubscriptionId();
  this.configuration = existingDefinition.getConfiguration();
  this.indexerComponentFactory = existingDefinition.getIndexerComponentFactory();
  this.connectionType = existingDefinition.getConnectionType();
  this.connectionParams = existingDefinition.getConnectionParams();
  this.defaultBatchIndexCliArguments = existingDefinition.getDefaultBatchIndexCliArguments();
  this.batchIndexCliArguments = existingDefinition.getBatchIndexCliArguments();
  this.lastBatchBuildInfo = existingDefinition.getLastBatchBuildInfo();
  this.activeBatchBuildInfo = existingDefinition.getActiveBatchBuildInfo();
  this.subscriptionTimestamp = existingDefinition.getSubscriptionTimestamp();
  this.occVersion = existingDefinition.getOccVersion();
  return this;
}
origin: NGDATA/hbase-indexer

  throw new IndexerValidityException("Build state should not be null.");
if (indexer.getIncrementalIndexingState() == null)
  throw new IndexerValidityException("Update state should not be null.");
origin: com.ngdata/hbase-indexer-model

  throw new IndexerValidityException("Build state should not be null.");
if (indexer.getIncrementalIndexingState() == null)
  throw new IndexerValidityException("Update state should not be null.");
origin: com.ngdata/hbase-indexer-model

node.put("lifecycleState", indexer.getLifecycleState().toString());
node.put("batchIndexingState", indexer.getBatchIndexingState().toString());
node.put("incrementalIndexingState", indexer.getIncrementalIndexingState().toString());
origin: NGDATA/hbase-indexer

node.put("lifecycleState", indexer.getLifecycleState().toString());
node.put("batchIndexingState", indexer.getBatchIndexingState().toString());
node.put("incrementalIndexingState", indexer.getIncrementalIndexingState().toString());
com.ngdata.hbaseindexer.model.apiIndexerDefinitiongetIncrementalIndexingState

Popular methods of IndexerDefinition

  • getConfiguration
    The configuration for the indexer process, typically defines how to indexing algorithm should behave
  • getConnectionParams
    A free-form set of connection parameters, contents depends on what is supported by the #getConnectio
  • getIndexerComponentFactory
  • getName
  • getSubscriptionId
    The ID of a subscription on an event stream.Typically this will be a subscription on the HBase SEP (
  • getActiveBatchBuildInfo
    Status information on the currently running batch indexing build, if any, otherwise this returns nul
  • getBatchIndexingState
  • getConnectionType
    Identifies the type of indexing engine this indexer connects to, e.g. "solr".
  • getLifecycleState
  • getSubscriptionTimestamp
    The timestamp of when this indexer's subscription started. Only record updates that have occurred af
  • equals
  • getBatchIndexCliArguments
    CLI arguments for the next batch index build.These parameters are used once. Typically you will set
  • equals,
  • getBatchIndexCliArguments,
  • getDefaultBatchIndexCliArguments,
  • getLastBatchBuildInfo,
  • getOccVersion,
  • <init>,
  • getBatchIndexCliArgumentsOrDefault

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JTable (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)