@Private
@Evolving
public class ReferenceCountMap<E extends ReferenceCountMap.ReferenceCounter>
extends java.lang.Object
ReferenceCountMap.ReferenceCounter| Modifier and Type | Class | Description |
|---|---|---|
static interface |
ReferenceCountMap.ReferenceCounter |
Interface for the reference count holder
|
| Constructor | Description |
|---|---|
ReferenceCountMap() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clear the contents
|
org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableList<E> |
getEntries() |
Get entries in the reference Map.
|
long |
getReferenceCount(E key) |
Get the reference count for the key
|
int |
getUniqueElementsSize() |
Get the number of unique elements
|
E |
put(E key) |
Add the reference.
|
void |
remove(E key) |
Delete the reference.
|
public E put(E key)
key - Key to put in reference mappublic void remove(E key)
key - Key to remove the reference.@VisibleForTesting public org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableList<E> getEntries()
public long getReferenceCount(E key)
public int getUniqueElementsSize()
@VisibleForTesting public void clear()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.