BasicSet.BasicIntOpenHashSet, BasicSet.BasicLongOpenHashSetMAX_OPEN_HASHSET_CAPACITY| Constructor and Description |
|---|
BasicIntOpenHashSet()
Constructor
|
BasicIntOpenHashSet(long capacity)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.hadoop.io.IntWritable value)
Adds value to the set.
|
void |
clear()
Removes all of the elements from this list.
|
boolean |
contains(org.apache.hadoop.io.IntWritable value)
Checks whether set contains given value
|
PrimitiveIdTypeOps<org.apache.hadoop.io.IntWritable> |
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 BasicIntOpenHashSet()
public BasicIntOpenHashSet(long capacity)
capacity - Capacitypublic void clear()
BasicSetpublic long size()
BasicSetpublic void trim(long n)
BasicSetpublic boolean add(org.apache.hadoop.io.IntWritable value)
BasicSetpublic boolean contains(org.apache.hadoop.io.IntWritable value)
BasicSetpublic PrimitiveIdTypeOps<org.apache.hadoop.io.IntWritable> getElementTypeOps()
BasicSetgetElementTypeOps in interface BasicSet<org.apache.hadoop.io.IntWritable>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.