Searched defs:BUFFER_SIZE (Results 1 - 8 of 8) sorted by relevance

/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DStreamUtils.java41 public static final int BUFFER_SIZE = 1 << 16; // 64K field in class:StreamUtils
92 InputStream in = new BufferedInputStream(new FileInputStream(file), BUFFER_SIZE);
114 OutputStream os = new BufferedOutputStream(new FileOutputStream(file), BUFFER_SIZE);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DBufferedIndexOutput.java24 static final int BUFFER_SIZE = 16384; field in class:BufferedIndexOutput
26 private final byte[] buffer = new byte[BUFFER_SIZE];
35 if (bufferPosition >= BUFFER_SIZE)
47 int bytesLeft = BUFFER_SIZE - bufferPosition;
54 if (BUFFER_SIZE - bufferPosition == 0)
58 if (length > BUFFER_SIZE) {
75 bytesLeft = BUFFER_SIZE - bufferPosition;
78 bytesLeft = BUFFER_SIZE;
H A DBufferedIndexInput.java27 public static final int BUFFER_SIZE = 1024; field in class:BufferedIndexInput
29 private int bufferSize = BUFFER_SIZE;
51 this(resourceDesc, BUFFER_SIZE);
H A DRAMInputStream.java27 static final int BUFFER_SIZE = RAMOutputStream.BUFFER_SIZE; field in class:RAMInputStream
49 if (length/BUFFER_SIZE >= Integer.MAX_VALUE) {
96 bufferStart = (long) BUFFER_SIZE * (long) currentBufferIndex;
104 bufferPosition = BUFFER_SIZE;
110 bufferLength = buflen > BUFFER_SIZE ? BUFFER_SIZE : (int) buflen;
142 if (currentBuffer==null || pos < bufferStart || pos >= bufferStart + BUFFER_SIZE) {
143 currentBufferIndex = (int) (pos / BUFFER_SIZE);
146 bufferPosition = (int) (pos % BUFFER_SIZE);
[all...]
H A DRAMOutputStream.java28 static final int BUFFER_SIZE = 1024; field in class:RAMOutputStream
60 int length = BUFFER_SIZE;
91 currentBufferIndex = (int) (pos / BUFFER_SIZE);
95 bufferPosition = (int) (pos % BUFFER_SIZE);
132 currentBuffer = file.addBuffer(BUFFER_SIZE);
137 bufferStart = (long) BUFFER_SIZE * (long) currentBufferIndex;
161 return (long) file.numBuffers() * (long) BUFFER_SIZE;
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A DLineFileDocs.java40 private final static int BUFFER_SIZE = 1 << 16; // 64K field in class:LineFileDocs
81 reader = new BufferedReader(new InputStreamReader(is, "UTF-8"), BUFFER_SIZE);
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A DLineFileDocs.java40 private final static int BUFFER_SIZE = 1 << 16; // 64K field in class:LineFileDocs
81 reader = new BufferedReader(new InputStreamReader(is, "UTF-8"), BUFFER_SIZE);
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/
H A DAbstractTestCase.java195 private static final int BUFFER_SIZE = 4096; field in class:AbstractTestCase.BasicNGramTokenizer
220 charBuffer = new char[BUFFER_SIZE];
221 charBufferIndex = BUFFER_SIZE;
308 charBufferIndex = BUFFER_SIZE;

Completed in 224 milliseconds