Class HttpStorageProvider
java.lang.Object
org.elasticsearch.xpack.esql.datasource.http.HttpStorageProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,StorageProvider
StorageProvider implementation for HTTP/HTTPS using Java's built-in HttpClient.
Features:
- Full object reads via GET
- Range reads via HTTP Range header
- Metadata retrieval via HEAD
- Configurable timeouts and redirects
Note: HTTP/HTTPS does not support directory listing, so listObjects() returns null.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpStorageProvider(HttpConfiguration config, ExecutorService executor) Creates an HttpStorageProvider with configuration and executor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()config()booleanexists(StoragePath path) listObjects(StoragePath prefix, boolean recursive) newObject(StoragePath path) newObject(StoragePath path, long length) newObject(StoragePath path, long length, Instant lastModified) toString()
-
Constructor Details
-
HttpStorageProvider
Creates an HttpStorageProvider with configuration and executor.- Parameters:
config- the HTTP configurationexecutor- the executor service for async operations
-
-
Method Details
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
listObjects
- Specified by:
listObjectsin interfaceStorageProvider- Throws:
IOException
-
exists
- Specified by:
existsin interfaceStorageProvider- Throws:
IOException
-
supportedSchemes
- Specified by:
supportedSchemesin interfaceStorageProvider
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
httpClient
-
config
-
toString
-