lib/distributedtrie/trie.rb
# kvsif ... Please implement like DistributedTrie::KvsIF class and specify instance of it.
kvsif ... Please implement like DistributedTrie::KvsIF class and specify instance of it.
kvsif ... Please implement like DistributedTrie :: KvsIF class and specify instance of it .
def _getNextLetters( node )
      str = @kvsif.get( @prefixString + node )
      if str
        term    = []
        nonTerm = []
        str.split( /[ ]+/ ).each { |x|
          case x.size
          when 1
            nonTerm << x
          when 2
            term    << x[0...1]
          end
        }
        [ term, nonTerm ]
      else
        [ [], [] ]
      end
    end
def _getNextLetters ( node ) str = @kvsif . get ( @prefixString + node ) if str term = [ ] nonTerm = [ ] str . split ( / [ ]+ / ) . each { | x | case x . size when 1 nonTerm << x when 2 term << x [ 0 ... 1 ] end } [ term , nonTerm ] else [ [ ] , [ ] ] end end
kvsif ...
kvsif ...
node
<not_specific>