public class MockSingleIntIndexOutput extends IntIndexOutput
IntIndexOutput.Index
Constructor and Description |
---|
MockSingleIntIndexOutput(Directory dir,
String fileName,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
IntIndexOutput.Index |
index()
If you are indexing the primary output file, call
this and interact with the returned IndexWriter.
|
String |
toString() |
void |
write(int v)
Write an int to the primary file
|
public MockSingleIntIndexOutput(Directory dir, String fileName, IOContext context) throws IOException
IOException
public void write(int v) throws IOException
write
in class IntIndexOutput
IOException
public IntIndexOutput.Index index()
IntIndexOutput
index
in class IntIndexOutput
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class IntIndexOutput
IOException
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.