BasicSet.BasicIntOpenHashSet, BasicSet.BasicLongOpenHashSet
MAX_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()
BasicSet
public long size()
BasicSet
public void trim(long n)
BasicSet
public boolean add(org.apache.hadoop.io.IntWritable value)
BasicSet
public boolean contains(org.apache.hadoop.io.IntWritable value)
BasicSet
public PrimitiveIdTypeOps<org.apache.hadoop.io.IntWritable> getElementTypeOps()
BasicSet
getElementTypeOps
in interface BasicSet<org.apache.hadoop.io.IntWritable>
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.