|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.taverna.t2.partition.algorithms.LiteralValuePartitionAlgorithm
public class LiteralValuePartitionAlgorithm
A naive partition algorithm that simply returns the property value it's been configured to use from the property getter.
| Constructor Summary | |
|---|---|
LiteralValuePartitionAlgorithm()
Default constructor. |
|
LiteralValuePartitionAlgorithm(java.lang.String propertyName)
Constructor that initialised the LiteralValuePartitionAlgorithm with a property name |
|
| Method Summary | |
|---|---|
java.lang.Object |
allocate(java.lang.Object newItem,
PropertyExtractorRegistry reg)
Given an object to classify return the value of the partition into which the object falls. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getPropertyName()
|
int |
hashCode()
|
void |
setPropertyName(java.lang.String propertyName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralValuePartitionAlgorithm()
public LiteralValuePartitionAlgorithm(java.lang.String propertyName)
propertyName - | Method Detail |
|---|
public java.lang.Object allocate(java.lang.Object newItem,
PropertyExtractorRegistry reg)
PartitionAlgorithm
allocate in interface PartitionAlgorithm<java.lang.Object>public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||