Tabnine Logo
CatalogSchemaTableName
Code IndexAdd Tabnine to your IDE (free)

How to use
CatalogSchemaTableName
in
io.prestosql.spi.connector

Best Java code snippets using io.prestosql.spi.connector.CatalogSchemaTableName (Showing top 20 results out of 315)

origin: io.prestosql/presto-main

public CatalogSchemaTableName asCatalogSchemaTableName()
{
  return new CatalogSchemaTableName(catalogName, schemaName, objectName);
}
origin: prestosql/presto

/**
 * Check if identity is allowed to rename the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanRenameTable(Identity identity, CatalogSchemaTableName table, CatalogSchemaTableName newTable)
{
  denyRenameTable(table.toString(), newTable.toString());
}
origin: io.prestosql/presto-main

@Override
public void checkCanSelectFromColumns(Identity identity, CatalogSchemaTableName table, Set<String> columns)
{
  if (table.getCatalogName().equals("secured_catalog")) {
    denySelectTable(table.toString());
  }
}
origin: prestosql/presto

@Override
public void checkCanSelectFromColumns(Identity identity, CatalogSchemaTableName table, Set<String> columns)
{
  if (table.getCatalogName().equals("secured_catalog")) {
    denySelectTable(table.toString());
  }
}
origin: prestosql/presto

public CatalogSchemaTableName asCatalogSchemaTableName()
{
  return new CatalogSchemaTableName(catalogName, schemaName, objectName);
}
origin: prestosql/presto

/**
 * Check if identity is allowed to drop the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanDropTable(Identity identity, CatalogSchemaTableName table)
{
  denyDropTable(table.toString());
}
origin: prestosql/presto

@Override
public Void visitTableScan(TableScanNode node, IOPlanBuilder context)
{
  TableMetadata tableMetadata = metadata.getTableMetadata(session, node.getTable());
  context.addInputTableColumnInfo(new IOPlan.TableColumnInfo(
      new CatalogSchemaTableName(
          tableMetadata.getConnectorId().getCatalogName(),
          tableMetadata.getTable().getSchemaName(),
          tableMetadata.getTable().getTableName()),
      parseConstraints(node.getTable(), node.getCurrentConstraint())));
  return null;
}
origin: prestosql/presto

/**
 * Check if identity is allowed to select from the specified columns in a relation.  The column set can be empty.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanSelectFromColumns(Identity identity, CatalogSchemaTableName table, Set<String> columns)
{
  denySelectColumns(table.toString(), columns);
}
origin: io.prestosql/presto-main

@Override
public Void visitTableScan(TableScanNode node, IoPlanBuilder context)
{
  TableMetadata tableMetadata = metadata.getTableMetadata(session, node.getTable());
  context.addInputTableColumnInfo(new IoPlan.TableColumnInfo(
      new CatalogSchemaTableName(
          tableMetadata.getConnectorId().getCatalogName(),
          tableMetadata.getTable().getSchemaName(),
          tableMetadata.getTable().getTableName()),
      parseConstraints(node.getTable(), node.getCurrentConstraint())));
  return null;
}
origin: prestosql/presto

/**
 * Check if identity is allowed to rename a column in the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanRenameColumn(Identity identity, CatalogSchemaTableName table)
{
  denyRenameColumn(table.toString());
}
origin: io.prestosql/presto-main

if (writerTarget instanceof CreateHandle) {
  CreateHandle createHandle = (CreateHandle) writerTarget;
  context.setOutputTable(new CatalogSchemaTableName(
      createHandle.getHandle().getConnectorId().getCatalogName(),
      createHandle.getSchemaTableName().getSchemaName(),
  context.setOutputTable(new CatalogSchemaTableName(
      insertHandle.getHandle().getConnectorId().getCatalogName(),
      insertHandle.getSchemaTableName().getSchemaName(),
  context.setOutputTable(new CatalogSchemaTableName(
      deleteHandle.getHandle().getConnectorId().getCatalogName(),
      deleteHandle.getSchemaTableName().getSchemaName(),
origin: prestosql/presto

/**
 * Check if identity is allowed to insert into the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanInsertIntoTable(Identity identity, CatalogSchemaTableName table)
{
  denyInsertTable(table.toString());
}
origin: prestosql/presto

if (writerTarget instanceof CreateHandle) {
  CreateHandle createHandle = (CreateHandle) writerTarget;
  context.setOutputTable(new CatalogSchemaTableName(
      createHandle.getHandle().getConnectorId().getCatalogName(),
      createHandle.getSchemaTableName().getSchemaName(),
  context.setOutputTable(new CatalogSchemaTableName(
      insertHandle.getHandle().getConnectorId().getCatalogName(),
      insertHandle.getSchemaTableName().getSchemaName(),
  context.setOutputTable(new CatalogSchemaTableName(
      deleteHandle.getHandle().getConnectorId().getCatalogName(),
      deleteHandle.getSchemaTableName().getSchemaName(),
origin: prestosql/presto

/**
 * Check if identity is allowed to drop the specified view in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanDropView(Identity identity, CatalogSchemaTableName view)
{
  denyDropView(view.toString());
}
origin: prestosql/presto

  @Test
  public void testIOExplain()
  {
    String query = "SELECT * FROM orders";
    MaterializedResult result = computeActual("EXPLAIN (TYPE IO, FORMAT JSON) " + query);
    TableColumnInfo input = new TableColumnInfo(
        new CatalogSchemaTableName("local", "sf0.01", "orders"),
        ImmutableSet.of(
            new ColumnConstraint(
                "orderstatus",
                createVarcharType(1).getTypeSignature(),
                new FormattedDomain(
                    false,
                    ImmutableSet.of(
                        new FormattedRange(
                            new FormattedMarker(Optional.of("F"), EXACTLY),
                            new FormattedMarker(Optional.of("F"), EXACTLY)),
                        new FormattedRange(
                            new FormattedMarker(Optional.of("O"), EXACTLY),
                            new FormattedMarker(Optional.of("O"), EXACTLY)),
                        new FormattedRange(
                            new FormattedMarker(Optional.of("P"), EXACTLY),
                            new FormattedMarker(Optional.of("P"), EXACTLY)))))));
    assertEquals(
        jsonCodec(IOPlan.class).fromJson((String) getOnlyElement(result.getOnlyColumnAsSet())),
        new IOPlan(ImmutableSet.of(input), Optional.empty()));
  }
}
origin: prestosql/presto

/**
 * Check if identity is allowed to add columns to the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanAddColumn(Identity identity, CatalogSchemaTableName table)
{
  denyAddColumn(table.toString());
}
origin: prestosql/presto

new IOPlan(
    ImmutableSet.of(new TableColumnInfo(
        new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
        ImmutableSet.of(
            new ColumnConstraint(
new IOPlan(
    ImmutableSet.of(new TableColumnInfo(
        new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
        ImmutableSet.of(
            new ColumnConstraint(
origin: prestosql/presto

/**
 * Check if identity is allowed to drop columns from the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanDropColumn(Identity identity, CatalogSchemaTableName table)
{
  denyDropColumn(table.toString());
}
origin: io.prestosql/presto-hive

new IoPlan(
    ImmutableSet.of(new TableColumnInfo(
        new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
        ImmutableSet.of(
            new ColumnConstraint(
new IoPlan(
    ImmutableSet.of(new TableColumnInfo(
        new CatalogSchemaTableName(catalog, "tpch", "test_orders"),
        ImmutableSet.of(
            new ColumnConstraint(
origin: prestosql/presto

/**
 * Check if identity is allowed to delete from the specified table in a catalog.
 *
 * @throws AccessDeniedException if not allowed
 */
default void checkCanDeleteFromTable(Identity identity, CatalogSchemaTableName table)
{
  denyDeleteTable(table.toString());
}
io.prestosql.spi.connectorCatalogSchemaTableName

Most used methods

  • <init>
  • toString
  • getCatalogName

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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