Example #1
0
 public FieldBuilder(BSTR field, int size) {
   m_field = field;
   m_docs = new int[size];
   m_values = new BstrSet();
   int index = m_values.add(BSTR.EMPTY);
   if (index != 0) throw new RuntimeException("Error insertin empty string");
 }
Example #2
0
 public void add(int doc, BSTR value) {
   int index = m_values.add(value);
   m_docs[doc] = index;
 }