/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/ |
H A D | OutputStreamDataOutput.java | 26 private final OutputStream os; field in class:OutputStreamDataOutput 28 public OutputStreamDataOutput(OutputStream os) { argument 29 this.os = os; 34 os.write(b); 39 os.write(b, offset, length); 44 os.close();
|
H A D | Directory.java | 230 IndexOutput os = null; 234 os = to.createOutput(dest); 236 is.copyBytes(os, is.length()); 240 IOUtils.closeWhileHandlingException(priorException, os, is);
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/admin/ |
H A D | SystemInfoHandlerTest.java | 31 OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean(); 35 info.add( "name", os.getName() ); 36 info.add( "version", os.getVersion() ); 37 info.add( "arch", os.getArch() ); 41 SystemInfoHandler.addGetterIfAvaliable( os, "name", info2 ); 42 SystemInfoHandler.addGetterIfAvaliable( os, "version", info2 ); 43 SystemInfoHandler.addGetterIfAvaliable( os, "arch", info2 );
|
/lucene-3.6.0/dev-tools/scripts/ |
H A D | buildAndPushRelease.py | 19 import os namespace 43 if os.system('%s >> %s 2>&1' % (command, LOG)): 53 for l in os.popen('svn status --no-ignore -v').readlines(): 57 if os.path.exists(s): 59 if os.path.isdir(s) and not os.path.islink(s): 62 os.remove(s) 65 rev = os.popen('svnversion').read().strip() 76 if os.path.exists(LOG): 77 os [all...] |
H A D | checkJavaDocs.py | 17 import os namespace 79 #for dirPath, dirNames, fileNames in os.walk('%s/lucene/build/docs/api' % root): 82 os.chdir(root) 85 if os.system('ant javadocs > javadocs.log 2>&1'): 90 for dirPath, dirNames, fileNames in os.walk(root):
|
H A D | smokeTestRelease.py | 16 import os namespace 51 s = os.popen('%s; java -version 2>&1' % javaExe(version)).read() 56 env = os.environ 116 if DEBUG and os.path.exists(fileName): 118 print ' already done: %.1f MB' % (os.path.getsize(fileName)/1024./1024.) 136 os.remove(fileName) 138 print ' %.1f MB' % (os.path.getsize(fileName)/1024./1024.) 203 if not os.path.exists('%s/apache-rat-0.8.jar' % tmpDir): 220 if os.path.exists(gpgHomeDir): 222 os [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | CompoundFileWriter.java | 167 IndexOutput os = directory.createOutput(fileName); 172 os.writeVInt(FORMAT_CURRENT); 175 os.writeVInt(entries.size()); 182 fe.directoryOffset = os.getFilePointer(); 183 os.writeLong(0); // for now 184 os.writeString(IndexFileNames.stripSegmentName(fe.file)); 194 final long finalLength = totalSize+os.getFilePointer(); 195 os.setLength(finalLength); 200 fe.dataOffset = os.getFilePointer(); 201 copyFile(fe, os); 230 copyFile(FileEntry source, IndexOutput os) argument [all...] |
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/util/ |
H A D | TestJavaBinCodec.java | 32 ByteArrayOutputStream os = new ByteArrayOutputStream(); 33 javabin.marshal(s, os); 34 ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
|
H A D | TestFastInputStream.java | 76 public static void writeChars(OutputStream os, String s, int start, int length) throws IOException { argument 81 os.write(code); 83 os.write(0xC0 | (code >> 6)); 84 os.write(0x80 | (code & 0x3F)); 86 os.write(0xE0 | (code >>> 12)); 87 os.write(0x80 | ((code >> 6) & 0x3F)); 88 os.write(0x80 | (code & 0x3F));
|
H A D | ContentStreamTest.java | 53 FileOutputStream os = new FileOutputStream(file); 54 IOUtils.copy(is, os); 55 os.close();
|
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/tools/java/org/apache/lucene/analysis/ja/util/ |
H A D | CharacterDefinitionWriter.java | 77 OutputStream os = new FileOutputStream(filename); 79 os = new BufferedOutputStream(os); 80 final DataOutput out = new OutputStreamDataOutput(os); 91 os.close();
|
H A D | ConnectionCostsWriter.java | 54 OutputStream os = new FileOutputStream(filename); 56 os = new BufferedOutputStream(os); 57 final DataOutput out = new OutputStreamDataOutput(os); 72 os.close();
|
H A D | BinaryDictionaryWriter.java | 247 OutputStream os = new FileOutputStream(filename); 249 os = new BufferedOutputStream(os); 250 final DataOutput out = new OutputStreamDataOutput(os); 270 os.close(); 276 OutputStream os = new FileOutputStream(filename); 278 os = new BufferedOutputStream(os); 279 final DataOutput out = new OutputStreamDataOutput(os); 296 os [all...] |
/lucene-3.6.0/lucene/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/utils/ |
H A D | StreamUtilsTest.java | 100 OutputStream os = new CompressorStreamFactory().createCompressorOutputStream(CompressorStreamFactory.GZIP, new FileOutputStream(f)); 101 writeText(os); 107 OutputStream os = new CompressorStreamFactory().createCompressorOutputStream(CompressorStreamFactory.BZIP2, new FileOutputStream(f)); 108 writeText(os); 114 OutputStream os = StreamUtils.outputStream(f); 115 writeText(os); 119 private void writeText(OutputStream os) throws IOException { argument 120 BufferedWriter w = new BufferedWriter(new OutputStreamWriter(os));
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/ |
H A D | FacetsPayloadProcessorProvider.java | 152 private final ByteArrayOutputStream os = new ByteArrayOutputStream(); field in class:FacetsPayloadProcessorProvider.FacetsPayloadProcessor 166 return os.size(); 173 os.reset(); 174 encoder.reInit(os); 181 return os.toByteArray();
|
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/ |
H A D | MultiTrie.java | 143 * @param os the output stream 147 public void store(DataOutput os) throws IOException { argument 148 os.writeBoolean(forward); 149 os.writeInt(BY); 150 os.writeInt(tries.size()); 152 trie.store(os);
|
H A D | Row.java | 232 * @param os the output stream 235 public void store(DataOutput os) throws IOException { argument 236 os.writeInt(cells.size()); 245 os.writeChar(c.charValue()); 246 os.writeInt(e.cmd); 247 os.writeInt(e.cnt); 248 os.writeInt(e.ref); 249 os.writeInt(e.skip);
|
H A D | Trie.java | 312 * @param os the output stream 315 public void store(DataOutput os) throws IOException { argument 316 os.writeBoolean(forward); 317 os.writeInt(root); 318 os.writeInt(cmds.size()); 320 os.writeUTF(cmd.toString()); 322 os.writeInt(rows.size()); 324 row.store(os);
|
H A D | Compile.java | 184 DataOutputStream os = new DataOutputStream(new BufferedOutputStream( 186 os.writeUTF(args[0]); 187 trie.store(os); 188 os.close();
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/ |
H A D | StreamUtils.java | 63 OutputStream outputStream(OutputStream os) throws IOException { argument 65 return csfType==null ? os : new CompressorStreamFactory().createCompressorOutputStream(csfType, os); 114 OutputStream os = new BufferedOutputStream(new FileOutputStream(file), BUFFER_SIZE); 115 return fileType(file).outputStream(os);
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/core/ |
H A D | TestArbitraryIndexDir.java | 88 FileOutputStream os = null; 90 os = new FileOutputStream(idxprops); 91 p.store(os, "index properties"); 96 if (os != null) os.close();
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/admin/ |
H A D | SystemInfoHandler.java | 107 OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean(); 108 info.add( "name", os.getName() ); 109 info.add( "version", os.getVersion() ); 110 info.add( "arch", os.getArch() ); 113 addGetterIfAvaliable( os, "systemLoadAverage", info ); 116 addGetterIfAvaliable( os, "committedVirtualMemorySize", info); 117 addGetterIfAvaliable( os, "freePhysicalMemorySize", info); 118 addGetterIfAvaliable( os, "freeSwapSpaceSize", info); 119 addGetterIfAvaliable( os, "processCpuTime", info); 120 addGetterIfAvaliable( os, "totalPhysicalMemorySiz [all...] |
/lucene-3.6.0/lucene/contrib/icu/src/tools/java/org/apache/lucene/analysis/icu/ |
H A D | RBBIRuleCompiler.java | 80 FileOutputStream os = new FileOutputStream(outputFile); 81 RuleBasedBreakIterator.compileRules(rules, os); 82 os.close();
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/ |
H A D | Sort.java | 254 OutputStream os = null; 257 os = new FileOutputStream(output); 260 os.write(buffer, 0, length); 263 IOUtils.close(is, os); 379 private final DataOutput os; field in class:Sort.ByteSequencesWriter 387 public ByteSequencesWriter(DataOutput os) { argument 388 this.os = os; 404 os.writeShort(len); 405 os [all...] |
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/request/ |
H A D | RequestWriter.java | 68 public void write(SolrRequest request, OutputStream os) throws IOException { argument 71 OutputStreamWriter writer = new OutputStreamWriter(os, UTF_8); 125 public void writeTo(OutputStream os) throws IOException { argument 126 write(req, os);
|