Esempio n. 1
0
 @Override
 public boolean store(DataOutput output) throws IOException {
   output.writeVLong(count);
   TSTNode root = trie.getRoot();
   if (root == null) { // empty tree
     return false;
   }
   writeRecursively(output, root);
   return true;
 }
 @Override
 public synchronized boolean store(DataOutput output) throws IOException {
   output.writeVLong(count);
   writeRecursively(output, root);
   return true;
 }
Esempio n. 3
0
 @Override
 public void write(Long output, DataOutput out) throws IOException {
   assert valid(output);
   out.writeVLong(output);
 }