List of usage examples for org.apache.lucene.store DataOutput writeString
public void writeString(String s) throws IOException
From source file:com.browseengine.bobo.geosearch.impl.MappedFieldNameFilterConverter.java
License:Apache License
@Override public void writeToOutput(DataOutput output) throws IOException { output.writeVInt(FIELD_FILTER_VERSION); if (bitmasks != null) { output.writeVInt(bitmasks.size()); for (Map.Entry<String, Byte> filterEntry : bitmasks.entrySet()) { output.writeString(filterEntry.getKey()); output.writeByte(filterEntry.getValue()); }/*from w w w . j a v a 2 s .co m*/ } else { output.writeVInt(0); } }