|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.fst.Outputs<T>
public abstract class Outputs<T>
Represents the outputs for an FST, providing the basic algebra required for building and traversing the FST.
Note that any operation that returns NO_OUTPUT must
return the same singleton object from getNoOutput().
| Constructor Summary | |
|---|---|
Outputs()
|
|
| Method Summary | |
|---|---|
abstract T |
add(T prefix,
T output)
Eg add("foo", "bar") -> "foobar" |
abstract T |
common(T output1,
T output2)
Eg common("foo", "foobar") -> "foo" |
abstract T |
getNoOutput()
NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output |
T |
merge(T first,
T second)
|
abstract String |
outputToString(T output)
|
abstract T |
read(DataInput in)
|
abstract T |
subtract(T output,
T inc)
Eg subtract("foobar", "foo") -> "bar" |
abstract void |
write(T output,
DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Outputs()
| Method Detail |
|---|
public abstract T common(T output1,
T output2)
public abstract T subtract(T output,
T inc)
public abstract T add(T prefix,
T output)
public abstract void write(T output,
DataOutput out)
throws IOException
IOException
public abstract T read(DataInput in)
throws IOException
IOExceptionpublic abstract T getNoOutput()
public abstract String outputToString(T output)
public T merge(T first,
T second)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||