use of com.google.cloud.bigquery.connector.common.NonInterruptibleBlockingBytesChannel in project spark-bigquery-connector by GoogleCloudDataproc.
the class ArrowColumnBatchPartitionReaderContext method newArrowStreamReader.
private ArrowStreamReader newArrowStreamReader(InputStream fullStream) {
BufferAllocator childAllocator = allocator.newChildAllocator("readerAllocator" + (closeables.size() - 1), 0, maxAllocation);
closeables.add(childAllocator);
return new ArrowStreamReader(new NonInterruptibleBlockingBytesChannel(fullStream), childAllocator, CommonsCompressionFactory.INSTANCE);
}
Aggregations