Example usage for org.apache.lucene.store DataOutput writeString

List of usage examples for org.apache.lucene.store DataOutput writeString

Introduction

In this page you can find the example usage for org.apache.lucene.store DataOutput writeString.

Prototype

public void writeString(String s) throws IOException 

Source Link

Document

Writes a string.

Usage

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);
    }
}