BasicSet.BasicIntOpenHashSet, BasicSet.BasicLongOpenHashSet
MAX_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()
BasicSet
public long size()
BasicSet
public void trim(long n)
BasicSet
public boolean add(org.apache.hadoop.io.LongWritable value)
BasicSet
public boolean contains(org.apache.hadoop.io.LongWritable value)
BasicSet
public PrimitiveIdTypeOps<org.apache.hadoop.io.LongWritable> getElementTypeOps()
BasicSet
getElementTypeOps
in interface BasicSet<org.apache.hadoop.io.LongWritable>
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.