BasicSet.BasicIntOpenHashSet, BasicSet.BasicLongOpenHashSetMAX_OPEN_HASHSET_CAPACITY| Constructor and Description |
|---|
BasicLongOpenHashSet()
Constructor
|
BasicLongOpenHashSet(long capacity)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.hadoop.io.LongWritable value)
Adds value to the set.
|
void |
clear()
Removes all of the elements from this list.
|
boolean |
contains(org.apache.hadoop.io.LongWritable value)
Checks whether set contains given value
|
PrimitiveIdTypeOps<org.apache.hadoop.io.LongWritable> |
getElementTypeOps()
TypeOps for type of elements this object holds
|
void |
readFields(DataInput in) |
long |
size()
Number of elements in this list
|
void |
trim(long n)
Makes sure set is not using space with capacity more than
max(n,size()) entries.
|
void |
write(DataOutput out) |
public BasicLongOpenHashSet()
public BasicLongOpenHashSet(long capacity)
capacity - Capacitypublic void clear()
BasicSetpublic long size()
BasicSetpublic void trim(long n)
BasicSetpublic boolean add(org.apache.hadoop.io.LongWritable value)
BasicSetpublic boolean contains(org.apache.hadoop.io.LongWritable value)
BasicSetpublic PrimitiveIdTypeOps<org.apache.hadoop.io.LongWritable> getElementTypeOps()
BasicSetgetElementTypeOps in interface BasicSet<org.apache.hadoop.io.LongWritable>public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.