All Packages Class Hierarchy This Package Previous Next Index
Class cube.database.IdSet
java.lang.Object
|
+----cube.database.IdSet
- public class IdSet
- extends Object
An IdSet is a set of Ids. It is implemented using a Hashtable.
An IdSet is a data type for columns in a database.
An IdSet cannot be used as a key.
For more information on the cube see the cube
Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved.
Please be aware of the
Licence
and
Version.
- See Also:
- Table, Tuple
-
IdSet()
- Create an empty set
-
IdSet(byte[])
- Create a set from a byte image of the set
-
IdSet(Id[])
- Create a set from an array of Ids
-
IdSet(IdList)
- Create a set from the list
-
delete(Id)
- Delete an Id from this set, does nothing if element does not exist
-
enumerate()
- Return an enumeration of the elements (keys) in the set.
-
image()
- image creates a formatted string of all the elements in the set
-
insert(Id)
- Insert an element into this set
-
intersect(IdSet)
- Create a new set that is the result of taking the intersection of this
with another Set
-
memberOf(Id)
- Is the given Id a member of the set?
-
numberOfElements()
- How many elements are in this set?
-
toBytes()
- Convert the set to a byte array
-
toIdArray()
- Convert the set to an array of Ids (should this be an IdList?)
-
union(IdSet)
- Create a new set that is the union of this set and another.
-
unionSelf(IdSet)
- Add the elements in another set to this one
IdSet
public IdSet()
- Create an empty set
IdSet
public IdSet(byte b[])
- Create a set from a byte image of the set
- Parameters:
- b - - the byte image of the set
IdSet
public IdSet(IdList v)
- Create a set from the list
- Parameters:
- v - - a list of Ids
IdSet
public IdSet(Id v[])
- Create a set from an array of Ids
- Parameters:
- v - - the array of Ids
numberOfElements
public int numberOfElements()
- How many elements are in this set?
memberOf
public boolean memberOf(Id v)
- Is the given Id a member of the set?
delete
public void delete(Id v)
- Delete an Id from this set, does nothing if element does not exist
- Parameters:
- v - - element to remove
insert
public void insert(Id v)
- Insert an element into this set
- Parameters:
- v - - element to insert
enumerate
public Enumeration enumerate()
- Return an enumeration of the elements (keys) in the set.
union
public IdSet union(IdSet other)
- Create a new set that is the union of this set and another.
- Parameters:
- other - - the other set
unionSelf
public void unionSelf(IdSet other)
- Add the elements in another set to this one
- Parameters:
- other - - the other set
image
public String image()
- image creates a formatted string of all the elements in the set
intersect
public IdSet intersect(IdSet other)
- Create a new set that is the result of taking the intersection of this
with another Set
- Parameters:
- other - - the other set
toBytes
public byte[] toBytes()
- Convert the set to a byte array
toIdArray
public Id[] toIdArray()
- Convert the set to an array of Ids (should this be an IdList?)
All Packages Class Hierarchy This Package Previous Next Index