Tabnine Logo
ShowTables.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.facebook.presto.sql.tree.ShowTables
constructor

Best Java code snippets using com.facebook.presto.sql.tree.ShowTables.<init> (Showing top 6 results out of 315)

origin: prestodb/presto

@Override
public Node visitShowTables(SqlBaseParser.ShowTablesContext context)
{
  return new ShowTables(
      getLocation(context),
      Optional.ofNullable(context.qualifiedName())
          .map(this::getQualifiedName),
      getTextIfPresent(context.pattern)
          .map(AstBuilder::unquote),
      getTextIfPresent(context.escape)
          .map(AstBuilder::unquote));
}
origin: prestodb/presto

@Test
public void testShowTables()
{
  assertStatement("SHOW TABLES", new ShowTables(Optional.empty(), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES FROM a", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES FROM \"awesome schema\"", new ShowTables(Optional.of(QualifiedName.of("awesome schema")), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES IN a LIKE '%$_%' ESCAPE '$'", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.of("%$_%"), Optional.of("$")));
}
origin: uk.co.nichesolutions.presto/presto-parser

@Override
public Node visitShowTables(SqlBaseParser.ShowTablesContext context)
{
  return new ShowTables(
      getLocation(context),
      Optional.ofNullable(context.qualifiedName())
          .map(this::getQualifiedName),
      getTextIfPresent(context.pattern)
          .map(AstBuilder::unquote));
}
origin: com.facebook.presto/presto-parser

@Override
public Node visitShowTables(SqlBaseParser.ShowTablesContext context)
{
  return new ShowTables(
      getLocation(context),
      Optional.ofNullable(context.qualifiedName())
          .map(this::getQualifiedName),
      getTextIfPresent(context.pattern)
          .map(AstBuilder::unquote),
      getTextIfPresent(context.escape)
          .map(AstBuilder::unquote));
}
origin: com.facebook.presto/presto-parser

@Test
public void testShowTables()
{
  assertStatement("SHOW TABLES", new ShowTables(Optional.empty(), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES FROM a", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES FROM \"awesome schema\"", new ShowTables(Optional.of(QualifiedName.of("awesome schema")), Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES IN a LIKE '%$_%' ESCAPE '$'", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.of("%$_%"), Optional.of("$")));
}
origin: uk.co.nichesolutions.presto/presto-parser

@Test
public void testShowTables()
    throws Exception
{
  assertStatement("SHOW TABLES", new ShowTables(Optional.empty(), Optional.empty()));
  assertStatement("SHOW TABLES FROM a", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.empty()));
  assertStatement("SHOW TABLES IN a LIKE '%'", new ShowTables(Optional.of(QualifiedName.of("a")), Optional.of("%")));
}
com.facebook.presto.sql.treeShowTables<init>

Popular methods of ShowTables

  • getLikePattern
  • getSchema
  • getEscape

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
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