Class SqlDataset

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.data.experimental.SqlDataset
All Implemented Interfaces:
Shaped, Op, Operand<TType>

@Operator(group="data.experimental") public final class SqlDataset extends RawOp implements Operand<TType>
Creates a dataset that executes a SQL query and emits rows of the result set.
  • Field Details

  • Constructor Details

    • SqlDataset

      public SqlDataset(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static SqlDataset create(Scope scope, Operand<TString> driverName, Operand<TString> dataSourceName, Operand<TString> query, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes)
      Factory method to create a class wrapping a new ExperimentalSqlDataset operation.
      Parameters:
      scope - current scope
      driverName - The database type. Currently, the only supported type is 'sqlite'.
      dataSourceName - A connection string to connect to the database.
      query - A SQL query to execute.
      outputTypes - The value of the outputTypes attribute
      outputShapes - The value of the outputShapes attribute
      Returns:
      a new instance of SqlDataset
    • handle

      public Output<? extends TType> handle()
      Gets handle.
      Returns:
      handle.
    • asOutput

      public Output<TType> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

      Specified by:
      asOutput in interface Operand<TType>
      See Also: