Constructor and Description |
---|
Arc() |
Modifier and Type | Method and Description |
---|---|
int |
arcIdx()
Where we are in the array; only valid if bytesPerArc != 0.
|
int |
bytesPerArc()
Non-zero if this arc is part of a node with fixed length arcs, which means all
arcs for the node are encoded with a fixed number of bytes so
that we binary search or direct address.
|
FST.Arc<T> |
copyFrom(FST.Arc<T> other)
Returns this
|
byte |
flags() |
boolean |
isFinal() |
boolean |
isLast() |
int |
label() |
T |
nextFinalOutput() |
byte |
nodeFlags()
Node header flags.
|
int |
numArcs()
How many arcs; only valid if bytesPerArc != 0 (fixed length arcs).
|
T |
output() |
long |
posArcsStart()
Where the first arc in the array starts; only valid if bytesPerArc != 0
|
long |
target()
Ord/address to target node.
|
String |
toString() |
public boolean isLast()
public boolean isFinal()
public int label()
public T output()
public long target()
public byte flags()
public T nextFinalOutput()
public int arcIdx()
public byte nodeFlags()
FST.ARCS_FOR_BINARY_SEARCH
or FST.ARCS_FOR_DIRECT_ADDRESSING
(other value when bytesPerArc == 0).public long posArcsStart()
public int bytesPerArc()
public int numArcs()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.