Package org.apache.drill.exec.store.dfs
Class MetadataContext
java.lang.Object
org.apache.drill.exec.store.dfs.MetadataContext
A metadata context that holds state across multiple invocations of
the Parquet metadata APIs.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
clearStatus
(org.apache.hadoop.fs.Path dir) List<org.apache.hadoop.fs.Path>
boolean
getStatus
(org.apache.hadoop.fs.Path dir) boolean
void
setDirectories
(List<org.apache.hadoop.fs.Path> directories) void
setMetadataCacheCorrupted
(boolean metadataCacheCorrupted) Setting this as true allows to avoid double reading of corrupted, unsupported or missing metadata filesvoid
void
setStatus
(org.apache.hadoop.fs.Path dir)
-
Constructor Details
-
MetadataContext
public MetadataContext()
-
-
Method Details
-
setStatus
public void setStatus(org.apache.hadoop.fs.Path dir) -
clearStatus
public void clearStatus(org.apache.hadoop.fs.Path dir) -
getStatus
public boolean getStatus(org.apache.hadoop.fs.Path dir) -
clear
public void clear() -
setPruneStatus
-
getPruneStatus
-
isMetadataCacheCorrupted
public boolean isMetadataCacheCorrupted()- Returns:
- true if parquet metadata cache files are missing or corrupted, false otherwise
-
setMetadataCacheCorrupted
public void setMetadataCacheCorrupted(boolean metadataCacheCorrupted) Setting this as true allows to avoid double reading of corrupted, unsupported or missing metadata files- Parameters:
metadataCacheCorrupted
- metadata corruption status
-
setDirectories
-
getDirectories
-