List of usage examples for org.apache.lucene.store BufferedIndexInput BUFFER_SIZE
int BUFFER_SIZE
To view the source code for org.apache.lucene.store BufferedIndexInput BUFFER_SIZE.
Click Source Link
From source file:aos.lucene.admin.TrackingFSDirectory.java
License:Apache License
synchronized public IndexInput openInput(String name) throws IOException { return openInput(name, BufferedIndexInput.BUFFER_SIZE); }
From source file:com.leavesfly.lia.admin.TrackingFSDirectory.java
License:Apache License
synchronized public IndexInput openInput(String name) //C throws IOException { return openInput(name, BufferedIndexInput.BUFFER_SIZE); }
From source file:com.nearinfinity.blur.mapreduce.BlurReducer.java
License:Apache License
protected long copyBytes(IndexInput in, IndexOutput out, long numBytes, Context context, long totalBytesCopied, long totalBytesToCopy, long startTime, String src) throws IOException { if (_copyBuf == null) { _copyBuf = new byte[BufferedIndexInput.BUFFER_SIZE]; }/* www. j a va2s .co m*/ long start = System.currentTimeMillis(); long copied = 0; while (numBytes > 0) { if (start + REPORT_PERIOD < System.currentTimeMillis()) { report(context, totalBytesCopied + copied, totalBytesToCopy, startTime, src); start = System.currentTimeMillis(); } final int toCopy = (int) (numBytes > _copyBuf.length ? _copyBuf.length : numBytes); in.readBytes(_copyBuf, 0, toCopy); out.writeBytes(_copyBuf, 0, toCopy); numBytes -= toCopy; copied += toCopy; context.progress(); } return copied; }
From source file:org.middleheaven.text.indexing.lucene.ManagedFileDirectory.java
License:Apache License
@Override public IndexInput openInput(String name) throws IOException { ensureOpen(); return openInput(name, BufferedIndexInput.BUFFER_SIZE); }