Class LocalStorageProvider
java.lang.Object
org.elasticsearch.xpack.esql.datasource.http.local.LocalStorageProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,StorageProvider
StorageProvider implementation for local file system access.
Features:
- Full file reads
- Range reads via RandomAccessFile
- Directory listing
- File metadata (size, last modified)
This implementation is primarily for testing and development purposes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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
-
LocalStorageProvider
public LocalStorageProvider()Creates a LocalStorageProvider.
-
-
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
-