@NotThreadSafe public static interface NodeSequence.RowAccessor
Modifier and Type | Method and Description |
---|---|
CachedNode |
getNode()
Get the first node in the current row.
|
CachedNode |
getNode(int index)
Get the node at the specified index in the current row.
|
float |
getScore()
Get the score for the first node in the current row.
|
float |
getScore(int index)
Get the score for the specified node in the current row.
|
int |
width()
Get the number of nodes in each row.
|
int width()
CachedNode getNode()
getNode(0)
.NoSuchElementException
- if there is no current rowCachedNode getNode(int index)
index
- the 0-based index for the node in the row; must be less than width()
.NoSuchElementException
- if there is no current rowIndexOutOfBoundsException
- if the index is not greater than 0 and less than width()
float getScore()
getScore(0)
.NoSuchElementException
- if there is no current rowfloat getScore(int index)
index
- the 0-based index for the node in the row; must be less than width()
.NoSuchElementException
- if there is no current rowIndexOutOfBoundsException
- if the index is not greater than 0 and less than width()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.