|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.ground.partition.Bucket
public class Bucket
A partition bucket is either 1) one or multiple components in whole; or 2) one or multiple partitions of one component. Partitions are grouped into buckets and solved bucket by bucket.
Field Summary | |
---|---|
private java.util.HashSet<Component> |
comps
|
private RDB |
db
|
private static int |
guid
|
private int |
id
|
private java.util.HashSet<Partition> |
parts
|
private PartitionScheme |
pmap
|
private long |
size
Estimated size in bytes. |
Constructor Summary | |
---|---|
Bucket(RDB db,
PartitionScheme pmap)
Construct an initially empty memory zone. |
Method Summary | |
---|---|
void |
addComponent(Component c)
Add a component to this bucket. |
void |
addPart(Partition p)
Add a partition to this bucket. |
void |
discard()
Discard all data structues to facilitate GC. |
java.util.Set<Component> |
getComponents()
|
java.util.Set<Partition> |
getPartitions()
|
void |
load(MarkovLogicNetwork mln)
Load the set of partitions from DB to RAM. |
long |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static int guid
private RDB db
private PartitionScheme pmap
private int id
private java.util.HashSet<Component> comps
private java.util.HashSet<Partition> parts
private long size
Constructor Detail |
---|
public Bucket(RDB db, PartitionScheme pmap)
addComponent(Component)
,
addPart(Partition)
Method Detail |
---|
public java.util.Set<Component> getComponents()
public java.util.Set<Partition> getPartitions()
public void discard()
public java.lang.String toString()
toString
in class java.lang.Object
public long size()
public void addComponent(Component c)
public void addPart(Partition p)
public void load(MarkovLogicNetwork mln)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |