Class FileSplit
java.lang.Object
org.elasticsearch.xpack.esql.datasources.FileSplit
- All Implemented Interfaces:
NamedWriteable,Writeable,ExternalSplit
Represents a byte range within a file for a file-based external source.
A single file may map to one or more splits. Carries Hive partition
key-value pairs extracted from the file path for partition pruning.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileSplit(String sourceType, StoragePath path, long offset, long length, String format, Map<String, Object> config, Map<String, Object> partitionValues) FileSplit(String sourceType, StoragePath path, long offset, long length, String format, Map<String, Object> config, Map<String, Object> partitionValues, SchemaReconciliation.ColumnMapping columnMapping) FileSplit(String sourceType, StoragePath path, long offset, long length, String format, Map<String, Object> config, Map<String, Object> partitionValues, SchemaReconciliation.ColumnMapping columnMapping, Map<String, Object> statistics) FileSplit(StreamInput in) -
Method Summary
-
Field Details
-
ENTRY
-
-
Constructor Details
-
FileSplit
-
FileSplit
public FileSplit(String sourceType, StoragePath path, long offset, long length, String format, Map<String, Object> config, Map<String, Object> partitionValues, @Nullable SchemaReconciliation.ColumnMapping columnMapping) -
FileSplit
-
FileSplit
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
sourceType
- Specified by:
sourceTypein interfaceExternalSplit
-
path
-
offset
public long offset() -
length
public long length() -
format
-
config
-
partitionValues
-
columnMapping
-
statistics
-
estimatedSizeInBytes
public long estimatedSizeInBytes()- Specified by:
estimatedSizeInBytesin interfaceExternalSplit
-
equals
-
hashCode
public int hashCode() -
toString
-