|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.fst.Outputs<PairOutputs.Pair<A,B>> org.apache.lucene.util.fst.PairOutputs<A,B>
public class PairOutputs<A,B>
Pairs up two outputs into one.
Nested Class Summary | |
---|---|
static class |
PairOutputs.Pair<A,B>
|
Constructor Summary | |
---|---|
PairOutputs(Outputs<A> outputs1,
Outputs<B> outputs2)
|
Method Summary | |
---|---|
PairOutputs.Pair<A,B> |
add(PairOutputs.Pair<A,B> prefix,
PairOutputs.Pair<A,B> output)
Eg add("foo", "bar") -> "foobar" |
PairOutputs.Pair<A,B> |
common(PairOutputs.Pair<A,B> pair1,
PairOutputs.Pair<A,B> pair2)
Eg common("foo", "foobar") -> "foo" |
PairOutputs.Pair<A,B> |
get(A output1,
B output2)
|
PairOutputs.Pair<A,B> |
getNoOutput()
NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output |
String |
outputToString(PairOutputs.Pair<A,B> output)
|
PairOutputs.Pair<A,B> |
read(DataInput in)
|
PairOutputs.Pair<A,B> |
subtract(PairOutputs.Pair<A,B> output,
PairOutputs.Pair<A,B> inc)
Eg subtract("foobar", "foo") -> "bar" |
void |
write(PairOutputs.Pair<A,B> output,
DataOutput writer)
|
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 |
Constructor Detail |
---|
public PairOutputs(Outputs<A> outputs1, Outputs<B> outputs2)
Method Detail |
---|
public PairOutputs.Pair<A,B> get(A output1, B output2)
public PairOutputs.Pair<A,B> common(PairOutputs.Pair<A,B> pair1, PairOutputs.Pair<A,B> pair2)
Outputs
common
in class Outputs<PairOutputs.Pair<A,B>>
public PairOutputs.Pair<A,B> subtract(PairOutputs.Pair<A,B> output, PairOutputs.Pair<A,B> inc)
Outputs
subtract
in class Outputs<PairOutputs.Pair<A,B>>
public PairOutputs.Pair<A,B> add(PairOutputs.Pair<A,B> prefix, PairOutputs.Pair<A,B> output)
Outputs
add
in class Outputs<PairOutputs.Pair<A,B>>
public void write(PairOutputs.Pair<A,B> output, DataOutput writer) throws IOException
write
in class Outputs<PairOutputs.Pair<A,B>>
IOException
public PairOutputs.Pair<A,B> read(DataInput in) throws IOException
read
in class Outputs<PairOutputs.Pair<A,B>>
IOException
public PairOutputs.Pair<A,B> getNoOutput()
Outputs
getNoOutput
in class Outputs<PairOutputs.Pair<A,B>>
public String outputToString(PairOutputs.Pair<A,B> output)
outputToString
in class Outputs<PairOutputs.Pair<A,B>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |