You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gr...@apache.org on 2017/12/22 19:12:28 UTC

[5/5] flink git commit: [hotfix] [docs] Fix typos in MemorySegment class

[hotfix] [docs] Fix typos in MemorySegment class

This closes #5199


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/15a0dc4a
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/15a0dc4a
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/15a0dc4a

Branch: refs/heads/master
Commit: 15a0dc4aecea4a5cff26abef00a067577a27c985
Parents: cc8f70b
Author: Cristian <me...@cristian.io>
Authored: Thu Dec 21 05:33:18 2017 -0800
Committer: Greg Hogan <co...@greghogan.com>
Committed: Thu Dec 21 11:47:05 2017 -0500

----------------------------------------------------------------------
 .../apache/flink/core/memory/MemorySegment.java   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/15a0dc4a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
----------------------------------------------------------------------
diff --git a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
index 3ad1c63..44b5eca 100644
--- a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
+++ b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
@@ -272,7 +272,7 @@ public abstract class MemorySegment {
 	//  - Grab mutable fields onto the stack before checking and using. This
 	//    guards us against concurrent modifications which invalidate the
 	//    pointers
-	//  - Use subtrations for range checks, as they are tolerant
+	//  - Use subtractions for range checks, as they are tolerant
 	//------------------------------------------------------------------------
 
 	/**
@@ -402,7 +402,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Reads an character value (16 bit, 2 bytes) from the given position, in little-endian byte order.
+	 * Reads a character value (16 bit, 2 bytes) from the given position, in little-endian byte order.
 	 * This method's speed depends on the system's native byte order, and it
 	 * is possibly slower than {@link #getChar(int)}. For most cases (such as
 	 * transient storage in memory or serialization for I/O and network),
@@ -423,7 +423,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Reads an character value (16 bit, 2 bytes) from the given position, in big-endian byte order.
+	 * Reads a character value (16 bit, 2 bytes) from the given position, in big-endian byte order.
 	 * This method's speed depends on the system's native byte order, and it
 	 * is possibly slower than {@link #getChar(int)}. For most cases (such as
 	 * transient storage in memory or serialization for I/O and network),
@@ -444,7 +444,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Writes a char value to teh given position, in the system's native byte order.
+	 * Writes a char value to the given position, in the system's native byte order.
 	 *
 	 * @param index The position at which the memory will be written.
 	 * @param value The char value to be written.
@@ -476,7 +476,7 @@ public abstract class MemorySegment {
 	 * one in which it is read, and {@link #putChar(int, char)} is the preferable choice.
 	 *
 	 * @param index The position at which the value will be written.
-	 * @param value The short value to be written.
+	 * @param value The char value to be written.
 	 *
 	 * @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger then the segment size minus 2.
 	 */
@@ -497,7 +497,7 @@ public abstract class MemorySegment {
 	 * one in which it is read, and {@link #putChar(int, char)} is the preferable choice.
 	 *
 	 * @param index The position at which the value will be written.
-	 * @param value The short value to be written.
+	 * @param value The char value to be written.
 	 *
 	 * @throws IndexOutOfBoundsException Thrown, if the index is negative, or larger then the segment size minus 2.
 	 */
@@ -510,7 +510,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Reads two memory at the given position, composing them into a short value
+	 * Reads a short integer value (16 bit, 2 bytes) from the given position, composing them into a short value
 	 * according to the current byte order.
 	 *
 	 * @param index The position from which the memory will be read.
@@ -534,7 +534,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Reads an short integer value (16 bit, 2 bytes) from the given position, in little-endian byte order.
+	 * Reads a short integer value (16 bit, 2 bytes) from the given position, in little-endian byte order.
 	 * This method's speed depends on the system's native byte order, and it
 	 * is possibly slower than {@link #getShort(int)}. For most cases (such as
 	 * transient storage in memory or serialization for I/O and network),
@@ -555,7 +555,7 @@ public abstract class MemorySegment {
 	}
 
 	/**
-	 * Reads an short integer value (16 bit, 2 bytes) from the given position, in big-endian byte order.
+	 * Reads a short integer value (16 bit, 2 bytes) from the given position, in big-endian byte order.
 	 * This method's speed depends on the system's native byte order, and it
 	 * is possibly slower than {@link #getShort(int)}. For most cases (such as
 	 * transient storage in memory or serialization for I/O and network),