org.apache.lucene.util.fst
Class NoOutputs

java.lang.Object
  extended by org.apache.lucene.util.fst.Outputs<Object>
      extended by org.apache.lucene.util.fst.NoOutputs

public final class NoOutputs
extends Outputs<Object>

Use this if you just want to build an FSA.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Method Summary
 Object add(Object prefix, Object output)
          Eg add("foo", "bar") -> "foobar"
 Object common(Object output1, Object output2)
          Eg common("foo", "foobar") -> "foo"
 Object getNoOutput()
          NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output
static NoOutputs getSingleton()
           
 String outputToString(Object output)
           
 Object read(DataInput in)
           
 Object subtract(Object output, Object inc)
          Eg subtract("foobar", "foo") -> "bar"
 void write(Object prefix, DataOutput out)
           
 
Methods inherited from class org.apache.lucene.util.fst.Outputs
merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static NoOutputs getSingleton()

common

public Object common(Object output1,
                     Object output2)
Description copied from class: Outputs
Eg common("foo", "foobar") -> "foo"

Specified by:
common in class Outputs<Object>

subtract

public Object subtract(Object output,
                       Object inc)
Description copied from class: Outputs
Eg subtract("foobar", "foo") -> "bar"

Specified by:
subtract in class Outputs<Object>

add

public Object add(Object prefix,
                  Object output)
Description copied from class: Outputs
Eg add("foo", "bar") -> "foobar"

Specified by:
add in class Outputs<Object>

write

public void write(Object prefix,
                  DataOutput out)
Specified by:
write in class Outputs<Object>

read

public Object read(DataInput in)
Specified by:
read in class Outputs<Object>

getNoOutput

public Object getNoOutput()
Description copied from class: Outputs
NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output

Specified by:
getNoOutput in class Outputs<Object>

outputToString

public String outputToString(Object output)
Specified by:
outputToString in class Outputs<Object>


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.