Quellcode durchsuchen

HADOOP-7449. Add Data(In,Out)putByteBuffer to work with ByteBuffer similar to Data(In,Out)putBuffer for byte[]. Merge from yahoo-merge branch, -r 1079163. Fix missing Apache license headers. Contributed by Chris Douglas.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1143681 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley vor 14 Jahren
Ursprung
Commit
473b189390

+ 4 - 0
common/CHANGES.txt

@@ -241,6 +241,10 @@ Trunk (unreleased changes)
 
 
     HADOOP-7451. Generalize StringUtils#join. (Chris Douglas via mattf)
     HADOOP-7451. Generalize StringUtils#join. (Chris Douglas via mattf)
 
 
+    HADOOP-7449. Add Data(In,Out)putByteBuffer to work with ByteBuffer similar 
+    to Data(In,Out)putBuffer for byte[].  Merge from yahoo-merge branch,
+    -r 1079163.  Fix missing Apache license headers. (Chris Douglas via mattf)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
   
   
     HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole
     HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

+ 18 - 0
common/src/java/org/apache/hadoop/io/DataInputByteBuffer.java

@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.hadoop.io;
 package org.apache.hadoop.io;
 
 
 import java.io.DataInputStream;
 import java.io.DataInputStream;

+ 18 - 0
common/src/java/org/apache/hadoop/io/DataOutputByteBuffer.java

@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.hadoop.io;
 package org.apache.hadoop.io;
 
 
 import java.io.DataOutputStream;
 import java.io.DataOutputStream;

+ 18 - 0
common/src/test/core/org/apache/hadoop/io/TestDataByteBuffers.java

@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.hadoop.io;
 package org.apache.hadoop.io;
 
 
 import java.io.DataInput;
 import java.io.DataInput;