Class RecordReaderUtils
- java.lang.Object
-
- org.apache.pinot.spi.data.readers.RecordReaderUtils
-
public class RecordReaderUtils extends Object
Utils for reading file records
-
-
Method Summary
Modifier and Type Method Description static BufferedInputStreamgetBufferedInputStream(File dataFile)static BufferedReadergetBufferedReader(File dataFile)static InputStreamgetInputStream(File dataFile)static booleanisGZippedFile(File file)static FileunpackIfRequired(File dataFile, String extension)
-
-
-
Method Detail
-
getBufferedReader
public static BufferedReader getBufferedReader(File dataFile) throws IOException
- Throws:
IOException
-
getBufferedInputStream
public static BufferedInputStream getBufferedInputStream(File dataFile) throws IOException
- Throws:
IOException
-
getInputStream
public static InputStream getInputStream(File dataFile) throws IOException
- Throws:
IOException
-
unpackIfRequired
public static File unpackIfRequired(File dataFile, String extension) throws IOException
- Throws:
IOException
-
isGZippedFile
public static boolean isGZippedFile(File file) throws IOException
- Throws:
IOException
-
-