From 9c6fb5a6e6c558e6f76dc4ad5c5c7eb781d827c7 Mon Sep 17 00:00:00 2001 From: bomeng Date: Tue, 22 May 2018 10:49:12 -0700 Subject: [PATCH] typo fix --- .../apache/arrow/vector/ipc/message/MessageSerializer.java | 4 ++-- .../src/main/java/org/apache/arrow/vector/util/Text.java | 4 ++-- .../org/apache/arrow/vector/ipc/MessageSerializerTest.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java b/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java index e2f8f7d9a8d7..0b409df97e2e 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java @@ -191,7 +191,7 @@ public static long writeBatchBuffers(WriteChannel out, ArrowRecordBatch batch) t * Deserializes a RecordBatch. * * @param reader the reader interface to deserialize from - * @param message the object to derialize to + * @param message the object to deserialize to * @param alloc to allocate buffers * @return the deserialized object * @throws IOException if something went wrong @@ -210,7 +210,7 @@ public static ArrowRecordBatch deserializeRecordBatch(MessageReader reader, Mess * minimizes the number of reads to the underlying stream. * * @param in the channel to deserialize from - * @param block the object to derialize to + * @param block the object to deserialize to * @param alloc to allocate buffers * @return the deserialized object * @throws IOException if something went wrong diff --git a/java/vector/src/main/java/org/apache/arrow/vector/util/Text.java b/java/vector/src/main/java/org/apache/arrow/vector/util/Text.java index 15ce132fc801..50037bf92d6a 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/util/Text.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/util/Text.java @@ -153,13 +153,13 @@ public int find(String what) { } /** - * Finds any occurence of what in the backing buffer, starting as position start. The + * Finds any occurrence of what in the backing buffer, starting as position start. The * starting position is measured in bytes and the return value is in terms of byte position in the buffer. The backing * buffer is not converted to a string for this operation. * * @param what the string to search for * @param start where to start from - * @return byte position of the first occurence of the search string in the UTF-8 buffer or -1 if not found + * @return byte position of the first occurrence of the search string in the UTF-8 buffer or -1 if not found */ public int find(String what, int start) { try { diff --git a/java/vector/src/test/java/org/apache/arrow/vector/ipc/MessageSerializerTest.java b/java/vector/src/test/java/org/apache/arrow/vector/ipc/MessageSerializerTest.java index 239d3034ad13..064f5002bdda 100644 --- a/java/vector/src/test/java/org/apache/arrow/vector/ipc/MessageSerializerTest.java +++ b/java/vector/src/test/java/org/apache/arrow/vector/ipc/MessageSerializerTest.java @@ -94,7 +94,7 @@ public void testSchemaDictionaryMessageSerialization() throws IOException { public ExpectedException expectedEx = ExpectedException.none(); @Test - public void testdeSerializeRecordBatchLongMetaData() throws IOException { + public void testDeserializeRecordBatchLongMetaData() throws IOException { expectedEx.expect(IOException.class); expectedEx.expectMessage("Cannot currently deserialize record batches over 2GB"); int offset = 0;