Tabnine Logo
FeedDropStatement.getFeedName
Code IndexAdd Tabnine to your IDE (free)

How to use
getFeedName
method
in
org.apache.asterix.lang.common.statement.FeedDropStatement

Best Java code snippets using org.apache.asterix.lang.common.statement.FeedDropStatement.getFeedName (Showing top 2 results out of 315)

origin: apache/asterixdb

@Override
public Void visit(FeedDropStatement del, Integer step) throws CompilationException {
  out.print(skip(step) + "drop " + FEED);
  out.print(generateFullName(del.getDataverseName(), del.getFeedName()));
  out.println(generateIfExists(del.getIfExists()) + SEMICOLON);
  return null;
}
origin: apache/asterixdb

protected void handleDropFeedStatement(MetadataProvider metadataProvider, Statement stmt,
    IHyracksClientConnection hcc) throws Exception {
  FeedDropStatement stmtFeedDrop = (FeedDropStatement) stmt;
  SourceLocation sourceLoc = stmtFeedDrop.getSourceLocation();
  String dataverseName = getActiveDataverse(stmtFeedDrop.getDataverseName());
  String feedName = stmtFeedDrop.getFeedName().getValue();
  MetadataTransactionContext mdTxnCtx = MetadataManager.INSTANCE.beginTransaction();
  metadataProvider.setMetadataTxnContext(mdTxnCtx);
  MetadataLockUtil.dropFeedBegin(lockManager, metadataProvider.getLocks(), dataverseName,
      dataverseName + "." + feedName);
  try {
    Feed feed = MetadataManager.INSTANCE.getFeed(mdTxnCtx, dataverseName, feedName);
    if (feed == null) {
      if (!stmtFeedDrop.getIfExists()) {
        throw new CompilationException(ErrorCode.COMPILATION_ERROR, sourceLoc,
            "There is no feed with this name " + feedName + ".");
      }
      MetadataManager.INSTANCE.commitTransaction(mdTxnCtx);
      return;
    }
    doDropFeed(hcc, metadataProvider, feed, sourceLoc);
    MetadataManager.INSTANCE.commitTransaction(mdTxnCtx);
  } catch (Exception e) {
    abort(e, e, mdTxnCtx);
    throw e;
  } finally {
    metadataProvider.getLocks().unlock();
  }
}
org.apache.asterix.lang.common.statementFeedDropStatementgetFeedName

Popular methods of FeedDropStatement

  • <init>
  • getDataverseName
  • getIfExists
  • getSourceLocation

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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