Implementation for https://issues.apache.org/jira/browse/LUCENE-2082 - in a form of a codec.