Package com.lancedb.lance.spark
Class LanceDataSource
java.lang.Object
com.lancedb.lance.spark.LanceDataSource
- All Implemented Interfaces:
org.apache.spark.sql.connector.catalog.SupportsCatalogOptions,org.apache.spark.sql.connector.catalog.TableProvider,org.apache.spark.sql.sources.DataSourceRegister
public abstract class LanceDataSource
extends Object
implements org.apache.spark.sql.connector.catalog.SupportsCatalogOptions, org.apache.spark.sql.sources.DataSourceRegister
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LanceDatasetcreateDataset(LanceConfig config, org.apache.spark.sql.types.StructType sparkSchema) extractCatalog(org.apache.spark.sql.util.CaseInsensitiveStringMap options) org.apache.spark.sql.connector.catalog.IdentifierextractIdentifier(org.apache.spark.sql.util.CaseInsensitiveStringMap options) org.apache.spark.sql.connector.catalog.TablegetTable(org.apache.spark.sql.types.StructType schema, org.apache.spark.sql.connector.expressions.Transform[] partitioning, Map<String, String> properties) org.apache.spark.sql.types.StructTypeinferSchema(org.apache.spark.sql.util.CaseInsensitiveStringMap options) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.catalog.SupportsCatalogOptions
extractTimeTravelTimestamp, extractTimeTravelVersionMethods inherited from interface org.apache.spark.sql.connector.catalog.TableProvider
inferPartitioning, supportsExternalMetadata
-
Field Details
-
name
- See Also:
-
-
Constructor Details
-
LanceDataSource
public LanceDataSource()
-
-
Method Details
-
inferSchema
public org.apache.spark.sql.types.StructType inferSchema(org.apache.spark.sql.util.CaseInsensitiveStringMap options) - Specified by:
inferSchemain interfaceorg.apache.spark.sql.connector.catalog.TableProvider
-
getTable
public org.apache.spark.sql.connector.catalog.Table getTable(org.apache.spark.sql.types.StructType schema, org.apache.spark.sql.connector.expressions.Transform[] partitioning, Map<String, String> properties) - Specified by:
getTablein interfaceorg.apache.spark.sql.connector.catalog.TableProvider
-
shortName
- Specified by:
shortNamein interfaceorg.apache.spark.sql.sources.DataSourceRegister
-
extractIdentifier
public org.apache.spark.sql.connector.catalog.Identifier extractIdentifier(org.apache.spark.sql.util.CaseInsensitiveStringMap options) - Specified by:
extractIdentifierin interfaceorg.apache.spark.sql.connector.catalog.SupportsCatalogOptions
-
extractCatalog
- Specified by:
extractCatalogin interfaceorg.apache.spark.sql.connector.catalog.SupportsCatalogOptions
-
createDataset
public abstract LanceDataset createDataset(LanceConfig config, org.apache.spark.sql.types.StructType sparkSchema)
-