Skip to content
Permalink
Browse files
Merge pull request #105 from apache/directoryMoves
Refactor to org.apache.datasketches.memory
  • Loading branch information
leerho committed Jun 17, 2019
2 parents bf45611 + 540c0f5 commit 54698b1f09f77d5bf45b7a9e8a4ed1a316834415
Show file tree
Hide file tree
Showing 91 changed files with 338 additions and 334 deletions.

This file was deleted.

@@ -17,9 +17,9 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import static com.yahoo.memory.UnsafeUtil.unsafe;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,9 +17,9 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import static com.yahoo.memory.UnsafeUtil.unsafe;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -17,9 +17,9 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import static com.yahoo.memory.UnsafeUtil.unsafe;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import java.io.File;
import java.io.FileDescriptor;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.io.File;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

/**
* A new positional API. This is different from and simpler than Java Buffer positional approach.
@@ -17,12 +17,12 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import static com.yahoo.memory.UnsafeUtil.LS;
import static com.yahoo.memory.UnsafeUtil.assertBounds;
import static com.yahoo.memory.UnsafeUtil.checkBounds;
import static com.yahoo.memory.UnsafeUtil.unsafe;
import static org.apache.datasketches.memory.UnsafeUtil.LS;
import static org.apache.datasketches.memory.UnsafeUtil.assertBounds;
import static org.apache.datasketches.memory.UnsafeUtil.checkBounds;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -17,18 +17,18 @@
* under the License.
*/

package com.yahoo.memory;

import static com.yahoo.memory.UnsafeUtil.ARRAY_BOOLEAN_BASE_OFFSET;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BOOLEAN_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BYTE_BASE_OFFSET;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BYTE_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_CHAR_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_INT_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_LONG_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_SHORT_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.checkBounds;
import static com.yahoo.memory.UnsafeUtil.unsafe;
package org.apache.datasketches.memory;

import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BOOLEAN_BASE_OFFSET;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BOOLEAN_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BYTE_BASE_OFFSET;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BYTE_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_CHAR_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_INT_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_LONG_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_SHORT_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.checkBounds;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import java.nio.ByteOrder;

@@ -17,18 +17,18 @@
* under the License.
*/

package com.yahoo.memory;

import static com.yahoo.memory.UnsafeUtil.ARRAY_BOOLEAN_BASE_OFFSET;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BOOLEAN_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BYTE_BASE_OFFSET;
import static com.yahoo.memory.UnsafeUtil.ARRAY_BYTE_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_CHAR_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_INT_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_LONG_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.ARRAY_SHORT_INDEX_SCALE;
import static com.yahoo.memory.UnsafeUtil.checkBounds;
import static com.yahoo.memory.UnsafeUtil.unsafe;
package org.apache.datasketches.memory;

import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BOOLEAN_BASE_OFFSET;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BOOLEAN_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BYTE_BASE_OFFSET;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_BYTE_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_CHAR_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_INT_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_LONG_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.ARRAY_SHORT_INDEX_SCALE;
import static org.apache.datasketches.memory.UnsafeUtil.checkBounds;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

import java.io.File;
import java.io.IOException;
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -29,7 +29,7 @@
* @author Roman Leventov
* @author Lee Rhodes
*
* @see com.yahoo.memory
* @see org.apache.datasketches.memory
*/
public abstract class Buffer extends BaseBuffer {

@@ -17,16 +17,16 @@
* under the License.
*/

package com.yahoo.memory;

import static com.yahoo.memory.UnsafeUtil.CHAR_SHIFT;
import static com.yahoo.memory.UnsafeUtil.DOUBLE_SHIFT;
import static com.yahoo.memory.UnsafeUtil.FLOAT_SHIFT;
import static com.yahoo.memory.UnsafeUtil.INT_SHIFT;
import static com.yahoo.memory.UnsafeUtil.LONG_SHIFT;
import static com.yahoo.memory.UnsafeUtil.SHORT_SHIFT;
import static com.yahoo.memory.UnsafeUtil.checkBounds;
import static com.yahoo.memory.UnsafeUtil.unsafe;
package org.apache.datasketches.memory;

import static org.apache.datasketches.memory.UnsafeUtil.CHAR_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.DOUBLE_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.FLOAT_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.INT_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.LONG_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.SHORT_SHIFT;
import static org.apache.datasketches.memory.UnsafeUtil.checkBounds;
import static org.apache.datasketches.memory.UnsafeUtil.unsafe;

/**
* @author Lee Rhodes
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

/**
* This is a simple implementation of the MemoryRequestServer that creates space on the Java heap
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

/**
* A handle for read-only resource.
@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

@@ -17,7 +17,7 @@
* under the License.
*/

package com.yahoo.memory;
package org.apache.datasketches.memory;

import java.nio.ByteOrder;

0 comments on commit 54698b1

Please sign in to comment.