Index

A B C D F G I L O P Q R S V 
All Classes and Interfaces|All Packages|Constant Field Values

A

ALL - Enum constant in enum class com.hw.langchain.utilities.spark.sql.FetchType
Represents the fetch type for retrieving all results.

B

BaseSparkSqlTool - Class in com.hw.langchain.tools.spark.sql.tool
Base tool for interacting with Spark SQL.
BaseSparkSqlTool(SparkSql, String, String) - Constructor for class com.hw.langchain.tools.spark.sql.tool.BaseSparkSqlTool
 

C

com.hw.langchain.agents.toolkits.spark.sql.base - package com.hw.langchain.agents.toolkits.spark.sql.base
 
com.hw.langchain.agents.toolkits.spark.sql.prompt - package com.hw.langchain.agents.toolkits.spark.sql.prompt
 
com.hw.langchain.agents.toolkits.spark.sql.toolkit - package com.hw.langchain.agents.toolkits.spark.sql.toolkit
 
com.hw.langchain.tools.spark.sql.prompt - package com.hw.langchain.tools.spark.sql.prompt
 
com.hw.langchain.tools.spark.sql.tool - package com.hw.langchain.tools.spark.sql.tool
 
com.hw.langchain.utilities.spark.sql - package com.hw.langchain.utilities.spark.sql
 
createSparkSqlAgent(BaseLanguageModel, SparkSqlToolkit) - Static method in class com.hw.langchain.agents.toolkits.spark.sql.base.SparkSqlAgent
Construct a Spark SQL agent from an LLM and tools.
createSparkSqlAgent(BaseLanguageModel, SparkSqlToolkit, String, String, String, List<String>, int, Integer, Float, String) - Static method in class com.hw.langchain.agents.toolkits.spark.sql.base.SparkSqlAgent
Construct a Spark SQL agent from an LLM and tools.

D

db - Variable in class com.hw.langchain.tools.spark.sql.tool.BaseSparkSqlTool
 

F

FetchType - Enum Class in com.hw.langchain.utilities.spark.sql
 
fromUri(String) - Static method in class com.hw.langchain.utilities.spark.sql.SparkSql
Creating a remote Spark Session via Spark connect.

G

getSampleSparkRows(String) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
 
getTableInfo(Set<String>) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
 
getTableInfoNoThrow(Set<String>) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
Get information about specified tables.
getTools() - Method in class com.hw.langchain.agents.toolkits.spark.sql.toolkit.SparkSqlToolkit
 
getUsableTableNames() - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
Get names of tables available.

I

InfoSparkSqlTool - Class in com.hw.langchain.tools.spark.sql.tool
Tool for getting metadata about a Spark SQL.
InfoSparkSqlTool(SparkSql) - Constructor for class com.hw.langchain.tools.spark.sql.tool.InfoSparkSqlTool
 
init() - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
 
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.spark.sql.tool.InfoSparkSqlTool
Get the schema for tables in a comma-separated list.
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.spark.sql.tool.ListSparkSqlTool
Get the schema for a specific table.
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.spark.sql.tool.QueryCheckerTool
Use the LLM to check the query.
innerRun(String, Map<String, Object>) - Method in class com.hw.langchain.tools.spark.sql.tool.QuerySparkSqlTool
Execute the query, return the results or an error message.

L

ListSparkSqlTool - Class in com.hw.langchain.tools.spark.sql.tool
Tool for getting tables names.
ListSparkSqlTool(SparkSql) - Constructor for class com.hw.langchain.tools.spark.sql.tool.ListSparkSqlTool
 

O

ONE - Enum constant in enum class com.hw.langchain.utilities.spark.sql.FetchType
Represents the fetch type for retrieving only one result.

P

Prompt - Class in com.hw.langchain.agents.toolkits.spark.sql.prompt
 
Prompt - Class in com.hw.langchain.tools.spark.sql.prompt
 

Q

QUERY_CHECKER - Static variable in class com.hw.langchain.tools.spark.sql.prompt.Prompt
 
QueryCheckerTool - Class in com.hw.langchain.tools.spark.sql.tool
Use an LLM to check if a query is correct.
QueryCheckerTool(SparkSql, BaseLanguageModel) - Constructor for class com.hw.langchain.tools.spark.sql.tool.QueryCheckerTool
 
QuerySparkSqlTool - Class in com.hw.langchain.tools.spark.sql.tool
Tool for querying a Spark SQL.
QuerySparkSqlTool(SparkSql) - Constructor for class com.hw.langchain.tools.spark.sql.tool.QuerySparkSqlTool
 

R

run(String, FetchType) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
 
runNoThrow(String) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
 
runNoThrow(String, FetchType) - Method in class com.hw.langchain.utilities.spark.sql.SparkSql
Execute a SQL command and return a string representing the results.

S

SparkSql - Class in com.hw.langchain.utilities.spark.sql
 
SparkSql() - Constructor for class com.hw.langchain.utilities.spark.sql.SparkSql
 
SparkSqlAgent - Class in com.hw.langchain.agents.toolkits.spark.sql.base
 
SparkSqlToolkit - Class in com.hw.langchain.agents.toolkits.spark.sql.toolkit
Toolkit for interacting with Spark SQL.
SparkSqlToolkit(SparkSql, BaseLanguageModel) - Constructor for class com.hw.langchain.agents.toolkits.spark.sql.toolkit.SparkSqlToolkit
 
SQL_PREFIX - Static variable in class com.hw.langchain.agents.toolkits.spark.sql.prompt.Prompt
 
SQL_SUFFIX - Static variable in class com.hw.langchain.agents.toolkits.spark.sql.prompt.Prompt
 

V

valueOf(String) - Static method in enum class com.hw.langchain.utilities.spark.sql.FetchType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.hw.langchain.utilities.spark.sql.FetchType
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D F G I L O P Q R S V 
All Classes and Interfaces|All Packages|Constant Field Values