mirror of https://github.com/apache/lucene.git
more nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1430835 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee55976e9d
commit
e8f131a4e2
|
@ -36,6 +36,7 @@ import org.apache.lucene.util.packed.PackedInts;
|
|||
/** Indexes doc values to disk and loads them in RAM at
|
||||
* search time. */
|
||||
|
||||
// nocommit: nuke this wrapper and just make a nice impl (e.g. FST for sortedbytes)
|
||||
public class MemoryDocValuesFormat extends SimpleDocValuesFormat {
|
||||
|
||||
public MemoryDocValuesFormat() {
|
||||
|
@ -48,6 +49,9 @@ public class MemoryDocValuesFormat extends SimpleDocValuesFormat {
|
|||
return new SimpleTextDocValuesWriter(state, "dat");
|
||||
}
|
||||
|
||||
// nocommit the get's of this thing need to use a map. its returning new ram instances
|
||||
// per-thread!
|
||||
|
||||
@Override
|
||||
public SimpleDVProducer fieldsProducer(SegmentReadState state) throws IOException {
|
||||
final SimpleDVProducer producer = new SimpleTextDocValuesReader(state, "dat");
|
||||
|
@ -164,12 +168,6 @@ public class MemoryDocValuesFormat extends SimpleDocValuesFormat {
|
|||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public SimpleDVProducer clone() {
|
||||
// We are already thread-safe:
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
producer.close();
|
||||
|
|
Loading…
Reference in New Issue