Java 类org.apache.lucene.util.fst.Builder.UnCompiledNode 实例源码

项目:lams    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * <= this value and their number of arcs is >=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:search    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:NYBC    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:read-open-source-code    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:read-open-source-code    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:read-open-source-code    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}
项目:Maskana-Gestor-de-Conocimiento    文件:FST.java   
/**
 * Nodes will be expanded if their depth (distance from the root node) is
 * &lt;= this value and their number of arcs is &gt;=
 * {@link #FIXED_ARRAY_NUM_ARCS_SHALLOW}.
 * 
 * <p>
 * Fixed array consumes more RAM but enables binary search on the arcs
 * (instead of a linear scan) on lookup by arc label.
 * 
 * @return <code>true</code> if <code>node</code> should be stored in an
 *         expanded (array) form.
 * 
 * @see #FIXED_ARRAY_NUM_ARCS_DEEP
 * @see Builder.UnCompiledNode#depth
 */
private boolean shouldExpand(UnCompiledNode<T> node) {
  return allowArrayArcs &&
    ((node.depth <= FIXED_ARRAY_SHALLOW_DISTANCE && node.numArcs >= FIXED_ARRAY_NUM_ARCS_SHALLOW) || 
     node.numArcs >= FIXED_ARRAY_NUM_ARCS_DEEP);
}