use of com.facebook.presto.orc.metadata.OrcMetadataReader in project presto by prestodb.
the class OrcTestingUtil method createReaderNoRows.
public static OrcRecordReader createReaderNoRows(OrcDataSource dataSource) throws IOException {
OrcReader orcReader = new OrcReader(dataSource, new OrcMetadataReader(), new DataSize(1, Unit.MEGABYTE), new DataSize(1, Unit.MEGABYTE));
assertEquals(orcReader.getColumnNames().size(), 0);
return createRecordReader(orcReader, ImmutableMap.of());
}
Aggregations