Package org.apache.parquet.hadoop
Class ParquetInputSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.mapreduce.lib.input.FileSplit
org.apache.parquet.hadoop.ParquetInputSplit
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
@Private
@Deprecated
public class ParquetInputSplit
extends org.apache.hadoop.mapreduce.lib.input.FileSplit
implements org.apache.hadoop.io.Writable
Deprecated.
will be removed in 2.0.0. use org.apache.hadoop.mapred.FileSplit instead.
An input split for the Parquet format
It contains the information to read one block of the file.
This class is private to the ParquetInputFormat. Backward compatibility is not maintained.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Writables must have a parameterless constructorParquetInputSplit(org.apache.hadoop.fs.Path file, long start, long end, long length, String[] hosts, long[] rowGroupOffsets) Deprecated.ParquetInputSplit(org.apache.hadoop.fs.Path path, long start, long length, String[] hosts, List<BlockMetaData> blocks, String requestedSchema, String fileSchema, Map<String, String> extraMetadata, Map<String, String> readSupportMetadata) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.the file footer is no longer read before creating input splitslonggetEnd()Deprecated.Deprecated.will be removed in 2.0.0. the file footer is no longer read before creating input splitsDeprecated.the file footer is no longer read before creating input splitslong[]Deprecated.will be removed in 2.0.0.voidreadFields(DataInput hin) Deprecated.toString()Deprecated.voidwrite(DataOutput hout) Deprecated.Methods inherited from class org.apache.hadoop.mapreduce.lib.input.FileSplit
getLength, getLocationInfo, getLocations, getPath, getStart
-
Constructor Details
-
ParquetInputSplit
public ParquetInputSplit()Deprecated.Writables must have a parameterless constructor -
ParquetInputSplit
@Deprecated public ParquetInputSplit(org.apache.hadoop.fs.Path path, long start, long length, String[] hosts, List<BlockMetaData> blocks, String requestedSchema, String fileSchema, Map<String, String> extraMetadata, Map<String, String> readSupportMetadata) Deprecated.For compatibility only useParquetInputSplit(Path, long, long, long, String[], long[])- Parameters:
path- a Pathstart- split start locationlength- split lengthhosts- locality information for this splitblocks- Parquet blocks in this splitrequestedSchema- the requested schemafileSchema- the file schemaextraMetadata- string map of file metadatareadSupportMetadata- string map of metadata from read support
-
ParquetInputSplit
public ParquetInputSplit(org.apache.hadoop.fs.Path file, long start, long end, long length, String[] hosts, long[] rowGroupOffsets) Deprecated.- Parameters:
file- the path of the file for that splitstart- the start offset in the fileend- the end offset in the filelength- the actual size in bytes that we expect to readhosts- the hosts with the replicas of this datarowGroupOffsets- the offsets of the rowgroups selected if loaded on the client
-
-
Method Details
-
getBlocks
Deprecated.the file footer is no longer read before creating input splits- Returns:
- the block meta data
-
getFileSchema
Deprecated.the file footer is no longer read before creating input splits- Returns:
- the file schema
-
getEnd
public long getEnd()Deprecated.- Returns:
- the end offset of that split
-
getExtraMetadata
Deprecated.will be removed in 2.0.0. the file footer is no longer read before creating input splits- Returns:
- app specific metadata from the file
-
getRowGroupOffsets
public long[] getRowGroupOffsets()Deprecated.will be removed in 2.0.0.- Returns:
- the offsets of the row group selected if this has been determined on the client side
-
toString
Deprecated.- Overrides:
toStringin classorg.apache.hadoop.mapreduce.lib.input.FileSplit
-
readFields
Deprecated.- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classorg.apache.hadoop.mapreduce.lib.input.FileSplit- Throws:
IOException
-
write
Deprecated.- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classorg.apache.hadoop.mapreduce.lib.input.FileSplit- Throws:
IOException
-