Modifier and Type | Class and Description |
---|---|
(package private) static class |
FST.Arc.BitTable
Reusable table of bits using an array of long internally.
|
Modifier and Type | Field and Description |
---|---|
private int |
arcIdx |
private FST.Arc.BitTable |
bitTable |
private int |
bytesPerArc |
private int |
firstLabel |
private byte |
flags |
private int |
label |
private long |
nextArc |
private T |
nextFinalOutput |
private byte |
nodeFlags |
private int |
numArcs |
private T |
output |
private long |
posArcsStart |
private long |
target |
Constructor and Description |
---|
Arc() |
Modifier and Type | Method and Description |
---|---|
int |
arcIdx()
Where we are in the array; only valid if bytesPerArc != 0.
|
(package private) FST.Arc.BitTable |
bitTable()
Table of bits of a direct addressing node.
|
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
|
(package private) int |
firstLabel()
First label of a direct addressing node.
|
(package private) boolean |
flag(int flag) |
byte |
flags() |
(package private) FST.Arc.BitTable |
getOrCreateBitTable()
The table of bits of a direct addressing node created lazily.
|
boolean |
isFinal() |
boolean |
isLast() |
int |
label() |
(package private) long |
nextArc()
Address (into the byte[]) of the next arc - only for list of variable length arc.
|
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.
|
java.lang.String |
toString() |
private int label
private T output
private long target
private byte flags
private T nextFinalOutput
private long nextArc
private int arcIdx
private byte nodeFlags
private long posArcsStart
private int bytesPerArc
private int numArcs
private FST.Arc.BitTable bitTable
private int firstLabel
boolean flag(int flag)
public boolean isLast()
public boolean isFinal()
public java.lang.String toString()
toString
in class java.lang.Object
public int label()
public T output()
public long target()
public byte flags()
public T nextFinalOutput()
long nextArc()
FST.END_LABEL
.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()
FST.Arc.BitTable bitTable()
FST.ARCS_FOR_DIRECT_ADDRESSING
;
may be null otherwise.FST.Arc.BitTable getOrCreateBitTable()
int firstLabel()
FST.ARCS_FOR_DIRECT_ADDRESSING
.