public static final class BufferedRows.DoubleNodeRow extends Object implements BufferedRows.BufferedRow
| Modifier | Constructor and Description |
|---|---|
protected |
BufferedRows.DoubleNodeRow(CachedNode node1,
CachedNode node2,
float score1,
float score2) |
| 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.
|
String |
toString() |
int |
width()
Get the number of nodes in each row.
|
protected BufferedRows.DoubleNodeRow(CachedNode node1, CachedNode node2, float score1, float score2)
public int width()
NodeSequence.RowAccessorwidth in interface NodeSequence.RowAccessorpublic CachedNode getNode()
NodeSequence.RowAccessorgetNode(0).getNode in interface NodeSequence.RowAccessorpublic CachedNode getNode(int index)
NodeSequence.RowAccessorgetNode in interface NodeSequence.RowAccessorindex - the 0-based index for the node in the row; must be less than NodeSequence.RowAccessor.width().public float getScore()
NodeSequence.RowAccessorgetScore(0).getScore in interface NodeSequence.RowAccessorpublic float getScore(int index)
NodeSequence.RowAccessorgetScore in interface NodeSequence.RowAccessorindex - the 0-based index for the node in the row; must be less than NodeSequence.RowAccessor.width().Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.