Searched defs:output (Results 1 - 25 of 50) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DASCIIFoldingFilter.java66 private char[] output = new char[512]; field in class:ASCIIFoldingFilter
83 termAtt.copyBuffer(output, 0, outputPos);
103 if (output.length < maxSizeNeeded) {
104 output = new char[ArrayUtil.oversize(maxSizeNeeded, RamUsageEstimator.NUM_BYTES_CHAR)];
107 outputPos = foldToASCII(input, 0, output, 0, length);
115 * @param output The result of the folding. Should be of size >= {@code length * 4}.
116 * @param outputPos Index of output where to put the result of the folding
118 * @return length of output
121 public static final int foldToASCII(char input[], int inputPos, char output[], int outputPos, int length) argument
129 output[outputPo
[all...]
H A DISOLatin1AccentFilter.java40 private char[] output = new char[256]; field in class:ISOLatin1AccentFilter
55 termAtt.copyBuffer(output, 0, outputPos);
72 int size = output.length;
76 if (size != output.length)
77 output = new char[size];
89 output[outputPos++] = c;
98 output[outputPos++] = 'A';
101 output[outputPos++] = 'A';
102 output[outputPos++] = 'E';
105 output[outputPo
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/hi/
H A DTestHindiNormalizer.java65 private void check(String input, String output) throws IOException { argument
68 assertTokenStreamContents(tf, new String[] { output });
H A DTestHindiStemmer.java87 private void check(String input, String output) throws IOException { argument
90 assertTokenStreamContents(tf, new String[] { output });
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/in/
H A DTestIndicNormalizer.java50 private void check(String input, String output) throws IOException { argument
53 assertTokenStreamContents(tf, new String[] { output });
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DMultiLevelSkipListWriter.java130 * Writes the buffered skip lists to the given output.
132 * @param output the IndexOutput the skip lists shall be written to
135 long writeSkip(IndexOutput output) throws IOException { argument
136 long skipPointer = output.getFilePointer();
142 output.writeVLong(length);
143 skipBuffer[level].writeTo(output);
146 skipBuffer[0].writeTo(output);
H A DPrefixCodedTerms.java97 private RAMOutputStream output = new RAMOutputStream(buffer); field in class:PrefixCodedTerms.Builder
111 output.writeVInt(prefix << 1);
113 output.writeVInt(prefix << 1 | 1);
114 output.writeString(term.field);
116 output.writeVInt(suffix);
117 output.writeBytes(scratch.bytes, scratch.offset + prefix, suffix);
129 output.close();
H A DTermInfosWriter.java45 private IndexOutput output; field in class:TermInfosWriter
95 IOUtils.closeWhileHandlingException(output, other);
110 output = directory.createOutput(segment + (isIndex ? ".tii" : ".tis"));
113 output.writeInt(FORMAT_CURRENT); // write format
114 output.writeLong(0); // leave space for size
115 output.writeInt(indexInterval); // write indexInterval
116 output.writeInt(skipInterval); // write skipInterval
117 output.writeInt(maxSkipLevels); // write maxSkipLevels
122 IOUtils.closeWhileHandlingException(output);
198 output
[all...]
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/
H A DFSTCompletionLookup.java159 ByteArrayDataOutput output = new ByteArrayDataOutput(buffer);
166 output.reset(buffer);
167 output.writeInt(encodeWeight(tfit.weight()));
168 output.writeBytes(spare.bytes, spare.offset, spare.length);
169 writer.write(buffer, 0, output.getPosition());
261 public synchronized boolean store(OutputStream output) throws IOException { argument
266 normalCompletion.getFST().save(new OutputStreamDataOutput(output));
268 IOUtils.close(output);
H A DFSTCompletion.java130 * Cache the root node's output arcs starting with completions with the
260 final BytesRef output = BytesRef.deepCopyOf(key);
270 output.length = key.length - 1;
271 if (collect(res, num, rootArc.label, output, arc) && !collectAll) {
353 BytesRef output, Arc<Object> arc) throws IOException {
354 if (output.length == output.bytes.length) {
355 output.bytes = ArrayUtil.grow(output.bytes);
357 assert output
352 collect(List<Completion> res, int num, int bucket, BytesRef output, Arc<Object> arc) argument
[all...]
H A DWFSTCompletionLookup.java69 // customize the code to add some output you should use PairOutputs.
123 public boolean store(OutputStream output) throws IOException { argument
128 fst.save(new OutputStreamDataOutput(output));
130 IOUtils.close(output);
187 results.add(new LookupResult(spare.toString(), decodeWeight(prefixOutput + completion.output)));
194 long output = 0;
206 output += arc.output.longValue();
210 return output;
251 protected void encode(ByteSequencesWriter writer, ByteArrayDataOutput output, byt argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DByteSequenceOutputs.java27 * An FST {@link Outputs} implementation where each output
76 public BytesRef subtract(BytesRef output, BytesRef inc) { argument
77 assert output != null;
81 return output;
82 } else if (inc.length == output.length) {
83 // entire output removed
86 assert inc.length < output.length: "inc.length=" + inc.length + " vs output.length=" + output.length;
88 return new BytesRef(output
93 add(BytesRef prefix, BytesRef output) argument
137 outputToString(BytesRef output) argument
[all...]
H A DBytesRefFSTEnum.java24 /** Enumerates all input (BytesRef) + output pairs in an
35 /** Holds a single input (BytesRef) + output pair. */
38 public T output; field in class:BytesRefFSTEnum.InputOutput
121 result.output = output[upto];
H A DFSTEnum.java35 @SuppressWarnings({"rawtypes","unchecked"}) protected T[] output = (T[]) new Object[10]; field in class:FSTEnum
50 output[0] = NO_OUTPUT;
177 output[upto] = fst.outputs.add(output[upto-1], arc.output);
218 output[upto] = fst.outputs.add(output[upto-1], arc.output);
317 output[upto] = fst.outputs.add(output[upt
[all...]
H A DIntSequenceOutputs.java27 * An FST {@link Outputs} implementation where each output
76 public IntsRef subtract(IntsRef output, IntsRef inc) { argument
77 assert output != null;
81 return output;
82 } else if (inc.length == output.length) {
83 // entire output removed
86 assert inc.length < output.length: "inc.length=" + inc.length + " vs output.length=" + output.length;
88 return new IntsRef(output
93 add(IntsRef prefix, IntsRef output) argument
141 outputToString(IntsRef output) argument
[all...]
H A DIntsRefFSTEnum.java24 /** Enumerates all input (IntsRef) + output pairs in an
35 /** Holds a single input (IntsRef) + output pair. */
38 public T output; field in class:IntsRefFSTEnum.InputOutput
121 result.output = output[upto];
H A DNoOutputs.java33 // NodeHash calls hashCode for this output; we fix this
63 public Object subtract(Object output, Object inc) { argument
64 assert output == NO_OUTPUT;
70 public Object add(Object prefix, Object output) { argument
72 assert output == NO_OUTPUT;
94 public String outputToString(Object output) { argument
H A DOutputs.java39 // output instances -- this is an insane amount of garbage
47 public abstract T subtract(T output, T inc); argument
50 public abstract T add(T prefix, T output); argument
52 public abstract void write(T output, DataOutput out) throws IOException; argument
56 /** NOTE: this output is compared with == so you must
58 * it's really no output */
61 public abstract String outputToString(T output); argument
63 // TODO: maybe make valid(T output) public...? for asserts
H A DPositiveIntOutputs.java26 * An FST {@link Outputs} implementation where each output
67 public Long subtract(Long output, Long inc) { argument
68 assert valid(output);
70 assert output >= inc;
73 return output;
74 } else if (output.equals(inc)) {
77 return output - inc;
82 public Long add(Long prefix, Long output) { argument
84 assert valid(output);
86 return output;
95 write(Long output, DataOutput out) argument
123 outputToString(Long output) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DBufferedTokenStream.java35 * Handles input and output buffering of TokenStream
89 * write more tokens to the output stream, or simply return the next token
90 * to be output. Subclasses may return null if the token is to be dropped.
91 * If a subclass writes tokens to the output stream and returns a
93 * the token output stream.
105 // loop back to top in case process() put something on the output queue
177 * Write a token to the buffered output stream
184 * Provides direct Iterator access to the buffered output stream.
187 protected Iterable<Token> output() { method in class:BufferedTokenStream
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/
H A DTestRemoveDuplicatesTokenFilter.java141 private void add(SynonymMap.Builder b, String input, String output, boolean keepOrig) { argument
143 new CharsRef(output.replaceAll(" +", "\u0000")),
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/
H A DLookup.java147 * @param output {@link OutputStream} to write the data to.
151 public abstract boolean store(OutputStream output) throws IOException; argument
H A DSortedTermFreqIteratorWrapper.java105 ByteArrayDataOutput output = new ByteArrayDataOutput(buffer);
108 encode(writer, output, buffer, spare, source.weight());
165 protected void encode(ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, long weight) throws IOException { argument
169 output.reset(buffer);
170 output.writeBytes(spare.bytes, spare.offset, spare.length);
171 output.writeLong(weight);
172 writer.write(buffer, 0, output.getPosition());
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/jaspell/
H A DJaspellLookup.java157 public boolean store(OutputStream output) throws IOException { argument
162 DataOutputStream out = new DataOutputStream(output);
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/tst/
H A DTSTLookup.java177 public synchronized boolean store(OutputStream output) throws IOException { argument
178 DataOutputStream out = new DataOutputStream(output);
183 IOUtils.close(output);

Completed in 101 milliseconds

12