This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master_tempfix
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git
The following commit(s) were added to refs/heads/master_tempfix by this push:
new d0622e4 No code change, I just sorted the members to make them easier
to find.
d0622e4 is described below
commit d0622e474b733b89f03a012fa04b074e7930021e
Author: Lee Rhodes <[email protected]>
AuthorDate: Fri Jan 13 17:14:20 2023 -0800
No code change, I just sorted the members to make them easier to find.
---
.../org/apache/datasketches/memory/BaseState.java | 84 +++++++++++-----------
1 file changed, 42 insertions(+), 42 deletions(-)
diff --git
a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java
b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java
index aff64aa..2c5c7f7 100644
---
a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java
+++
b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/BaseState.java
@@ -31,46 +31,12 @@ import
org.apache.datasketches.memory.internal.BaseStateImpl;
* @author Lee Rhodes
*/
public interface BaseState {
+
/**
* The placeholder for the default MemoryRequestServer, if set at all.
*/
static final MemoryRequestServer defaultMemReqSvr = null; //new
DefaultMemoryRequestServer();
- //Monitoring
-
- /**
- * Gets the current size of active direct memory allocated.
- * @return the current size of active direct memory allocated.
- */
- static long getCurrentDirectMemoryAllocated() {
- return BaseStateImpl.getCurrentDirectMemoryAllocated();
- }
-
- /**
- * Gets the current number of active direct memory allocations.
- * @return the current number of active direct memory allocations.
- */
- static long getCurrentDirectMemoryAllocations() {
- return BaseStateImpl.getCurrentDirectMemoryAllocations();
- }
-
- /**
- * Gets the current size of active direct memory map allocated.
- * @return the current size of active direct memory map allocated.
- */
- static long getCurrentDirectMemoryMapAllocated() {
- return BaseStateImpl.getCurrentDirectMemoryMapAllocated();
- }
-
- /**
- * Gets the current number of active direct memory map allocations.
- * @return the current number of active direct memory map allocations.
- */
- static long getCurrentDirectMemoryMapAllocations() {
- return BaseStateImpl.getCurrentDirectMemoryMapAllocations();
- }
- //End Monitoring
-
/**
* Checks that the specified range of bytes is within bounds of this object,
throws
* {@link IllegalArgumentException} if it's not: i. e. if offsetBytes <
0, or length < 0,
@@ -108,12 +74,53 @@ public interface BaseState {
*/
ByteBuffer getByteBuffer();
+ /**
+ * Gets the current ByteOrder.
+ * This may be different from the ByteOrder of the backing resource and
{@link ByteOrder#nativeOrder()}
+ * @return the current ByteOrder.
+ */
+ ByteOrder getByteOrder();
+
/**
* Gets the capacity of this object in bytes
* @return the capacity of this object in bytes
*/
long getCapacity();
+ //Monitoring
+ /**
+ * Gets the current size of active direct memory allocated.
+ * @return the current size of active direct memory allocated.
+ */
+ static long getCurrentDirectMemoryAllocated() {
+ return BaseStateImpl.getCurrentDirectMemoryAllocated();
+ }
+
+ /**
+ * Gets the current number of active direct memory allocations.
+ * @return the current number of active direct memory allocations.
+ */
+ static long getCurrentDirectMemoryAllocations() {
+ return BaseStateImpl.getCurrentDirectMemoryAllocations();
+ }
+
+ /**
+ * Gets the current size of active direct memory map allocated.
+ * @return the current size of active direct memory map allocated.
+ */
+ static long getCurrentDirectMemoryMapAllocated() {
+ return BaseStateImpl.getCurrentDirectMemoryMapAllocated();
+ }
+
+ /**
+ * Gets the current number of active direct memory map allocations.
+ * @return the current number of active direct memory map allocations.
+ */
+ static long getCurrentDirectMemoryMapAllocations() {
+ return BaseStateImpl.getCurrentDirectMemoryMapAllocations();
+ }
+ //End Monitoring
+
/**
* Returns the offset of address zero of this object relative to the base
address of the
* backing resource. This does not include the object header for heap arrays
nor the initial
@@ -123,13 +130,6 @@ public interface BaseState {
*/
long getTotalOffset();
- /**
- * Gets the current ByteOrder.
- * This may be different from the ByteOrder of the backing resource and
{@link ByteOrder#nativeOrder()}
- * @return the current ByteOrder.
- */
- ByteOrder getByteOrder();
-
/**
* Returns true if this object is backed by an on-heap primitive array
* @return true if this object is backed by an on-heap primitive array
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]