Skip to content

Commit

Permalink
removed function not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Jul 17, 2017
1 parent 11a7a87 commit 063dcd9
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,6 @@ private[sql] object ArrowConverters {
reader.close()
}
}

private[arrow] def execByteArrayAsVectors(
batchBytes: Array[Byte],
allocator: BufferAllocator)(block: (VectorSchemaRoot) => Unit): Unit = {
val in = new ByteArrayReadableSeekableByteChannel(batchBytes)
val reader = new ArrowFileReader(in, allocator)

// Read a batch from a byte stream, ensure the reader is closed
Utils.tryWithSafeFinally {
val root = reader.getVectorSchemaRoot // throws IOException
reader.loadNextBatch() // throws IOException
block(root)
} {
reader.close()
}
}
}

/**
Expand Down

0 comments on commit 063dcd9

Please sign in to comment.