Uses of Class
org.apache.lucene.store.DataOutput
-
Packages that use DataOutput Package Description org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.blocktree BlockTree terms dictionary.org.apache.lucene.codecs.blocktreeords Same postings format as Lucene50, except the terms dictionary also supports ords, i.e.org.apache.lucene.codecs.bloom Codec PostingsFormat for fast access to low-frequency terms such as primary key fields.org.apache.lucene.codecs.compressing StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.org.apache.lucene.codecs.idversion A primary-key postings format that associates a version (long) with each term and can provide fail-fast lookups by ID and version.org.apache.lucene.codecs.lucene50 Components from the Lucene 5.0 index format Seeorg.apache.lucene.codecs.lucene80for an overview of the index format.org.apache.lucene.codecs.lucene84 Components from the Lucene 8.4 index format.org.apache.lucene.codecs.lucene87 Lucene 8.7 file format.org.apache.lucene.codecs.memory Term dictionary, DocValues or Postings formats that are read entirely into memory.org.apache.lucene.codecs.simpletext Simpletext Codec: writes human readable postings.org.apache.lucene.codecs.uniformsplit Pluggable term index / block terms dictionary implementations.org.apache.lucene.codecs.uniformsplit.sharedterms Pluggable term index / block terms dictionary implementations.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.analyzing Analyzer based autosuggest.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.suggest.fst Finite-state based autosuggest.org.apache.lucene.search.suggest.jaspell JaSpell-based autosuggest.org.apache.lucene.search.suggest.tst Ternary Search Tree based autosuggest.org.apache.lucene.store Binary i/o API, used for all index data.org.apache.lucene.util Some utility classes.org.apache.lucene.util.bkd Block KD-tree, implementing the generic spatial data structure described in this paper.org.apache.lucene.util.compress Compression utilities.org.apache.lucene.util.fst Finite state transducersorg.apache.lucene.util.packed Packed integer arrays and streams. -
-
Uses of DataOutput in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type DataOutput Modifier and Type Method Description abstract voidPostingsWriterBase. encodeTerm(DataOutput out, FieldInfo fieldInfo, BlockTermState state, boolean absolute)Encode metadata as long[] and byte[].static voidCodecUtil. verifyAndCopyIndexHeader(IndexInput in, DataOutput out, byte[] expectedID)Expert: verifies the incomingIndexInputhas an index header and that its segment ID matches the expected one, and then copies that index header into the providedDataOutput.static voidCodecUtil. writeHeader(DataOutput out, java.lang.String codec, int version)Writes a codec header, which records both a string to identify the file and a version number.static voidCodecUtil. writeIndexHeader(DataOutput out, java.lang.String codec, int version, byte[] id, java.lang.String suffix)Writes a codec header for an index file, which records both a string to identify the format of the file, a version number, and data to identify the file instance (ID and auxiliary suffix such as generation). -
Uses of DataOutput in org.apache.lucene.codecs.blocktree
Fields in org.apache.lucene.codecs.blocktree declared as DataOutput Modifier and Type Field Description private DataOutputBlockTreeTermsWriter.StatsWriter. outMethods in org.apache.lucene.codecs.blocktree with parameters of type DataOutput Modifier and Type Method Description private static voidBlockTreeTermsWriter. writeBytesRef(DataOutput out, BytesRef bytes)Constructors in org.apache.lucene.codecs.blocktree with parameters of type DataOutput Constructor Description StatsWriter(DataOutput out, boolean hasFreqs) -
Uses of DataOutput in org.apache.lucene.codecs.blocktreeords
Methods in org.apache.lucene.codecs.blocktreeords with parameters of type DataOutput Modifier and Type Method Description voidFSTOrdsOutputs. write(FSTOrdsOutputs.Output prefix, DataOutput out) -
Uses of DataOutput in org.apache.lucene.codecs.bloom
Methods in org.apache.lucene.codecs.bloom with parameters of type DataOutput Modifier and Type Method Description voidFuzzySet. serialize(DataOutput out)Serializes the data set to file using the following format: FuzzySet -->FuzzySetVersion,HashFunctionName,BloomSize, NumBitSetWords,BitSetWordNumBitSetWords HashFunctionName -->StringThe name of a ServiceProvider registeredHashFunctionFuzzySetVersion -->Uint32The version number of theFuzzySetclass BloomSize -->Uint32The modulo value used to project hashes into the field's Bitset NumBitSetWords -->Uint32The number of longs (as returned fromFixedBitSet.getBits()) BitSetWord -->LongA long from the array returned byFixedBitSet.getBits() -
Uses of DataOutput in org.apache.lucene.codecs.compressing
Methods in org.apache.lucene.codecs.compressing with parameters of type DataOutput Modifier and Type Method Description voidCompressionMode.DeflateCompressor. compress(byte[] bytes, int off, int len, DataOutput out)voidCompressionMode.LZ4FastCompressor. compress(byte[] bytes, int off, int len, DataOutput out)voidCompressionMode.LZ4HighCompressor. compress(byte[] bytes, int off, int len, DataOutput out)abstract voidCompressor. compress(byte[] bytes, int off, int len, DataOutput out)Compress bytes intoout.private static voidCompressingStoredFieldsWriter. saveInts(int[] values, int length, DataOutput out)(package private) static voidCompressingStoredFieldsWriter. writeTLong(DataOutput out, long l)Writes a long in a variable-length format.(package private) static voidCompressingStoredFieldsWriter. writeZDouble(DataOutput out, double d)Writes a float in a variable-length format.(package private) static voidCompressingStoredFieldsWriter. writeZFloat(DataOutput out, float f)Writes a float in a variable-length format. -
Uses of DataOutput in org.apache.lucene.codecs.idversion
Methods in org.apache.lucene.codecs.idversion with parameters of type DataOutput Modifier and Type Method Description voidIDVersionPostingsWriter. encodeTerm(DataOutput out, FieldInfo fieldInfo, BlockTermState _state, boolean absolute) -
Uses of DataOutput in org.apache.lucene.codecs.lucene50
Constructors in org.apache.lucene.codecs.lucene50 with parameters of type DataOutput Constructor Description ForUtil(float acceptableOverheadRatio, DataOutput out)Create a newForUtilinstance and save state intoout. -
Uses of DataOutput in org.apache.lucene.codecs.lucene84
Methods in org.apache.lucene.codecs.lucene84 with parameters of type DataOutput Modifier and Type Method Description (package private) voidForUtil. encode(long[] longs, int bitsPerValue, DataOutput out)Encode 128 integers fromlongsintoout.(package private) voidPForUtil. encode(long[] longs, DataOutput out)Encode 128 integers fromlongsintoout.(package private) voidForDeltaUtil. encodeDeltas(long[] longs, DataOutput out)Encode deltas of a strictly monotonically increasing sequence of integers.voidLucene84PostingsWriter. encodeTerm(DataOutput out, FieldInfo fieldInfo, BlockTermState _state, boolean absolute)(package private) static voidLucene84SkipWriter. writeImpacts(CompetitiveImpactAccumulator acc, DataOutput out) -
Uses of DataOutput in org.apache.lucene.codecs.lucene87
Methods in org.apache.lucene.codecs.lucene87 with parameters of type DataOutput Modifier and Type Method Description voidDeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor. compress(byte[] bytes, int off, int len, DataOutput out)voidLZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor. compress(byte[] bytes, int off, int len, DataOutput out)private voidDeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor. doCompress(byte[] bytes, int off, int len, DataOutput out)private voidLZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor. doCompress(byte[] bytes, int dictLen, int len, DataOutput out) -
Uses of DataOutput in org.apache.lucene.codecs.memory
Methods in org.apache.lucene.codecs.memory with parameters of type DataOutput Modifier and Type Method Description voidFSTTermOutputs. write(FSTTermOutputs.TermData data, DataOutput out) -
Uses of DataOutput in org.apache.lucene.codecs.simpletext
Subclasses of DataOutput in org.apache.lucene.codecs.simpletext Modifier and Type Class Description (package private) static classSimpleTextSegmentInfoFormat.BytesRefOutputMethods in org.apache.lucene.codecs.simpletext with parameters of type DataOutput Modifier and Type Method Description static voidSimpleTextUtil. write(DataOutput out, java.lang.String s, BytesRefBuilder scratch)static voidSimpleTextUtil. write(DataOutput out, BytesRef b)static voidSimpleTextUtil. writeNewline(DataOutput out) -
Uses of DataOutput in org.apache.lucene.codecs.uniformsplit
Methods in org.apache.lucene.codecs.uniformsplit with parameters of type DataOutput Modifier and Type Method Description voidBlockHeader.Serializer. write(DataOutput output, BlockHeader blockHeader)voidFieldMetadata.Serializer. write(DataOutput output, FieldMetadata fieldMetadata)voidFSTDictionary. write(DataOutput output, BlockEncoder blockEncoder)voidIndexDictionary. write(DataOutput output, BlockEncoder blockEncoder)Writes this dictionary to the provided output.protected intUniformSplitTermsWriter. writeFieldTerms(BlockWriter blockWriter, DataOutput fieldsOutput, TermsEnum termsEnum, FieldInfo fieldInfo, NormsProducer normsProducer)protected voidBlockLine.Serializer. writeIncrementallyEncodedTerm(TermBytes termBytes, TermBytes previousTermBytes, boolean isIncrementalEncodingSeed, DataOutput blockOutput)voidBlockLine.Serializer. writeLine(DataOutput blockOutput, BlockLine line, BlockLine previousLine, int termStateRelativeOffset, boolean isIncrementalEncodingSeed)Writes a line and its offset to the corresponding term state details in the details region.protected voidBlockLine.Serializer. writeLineTermState(DataOutput termStatesOutput, BlockLine line, FieldInfo fieldInfo, DeltaBaseTermStateSerializer encoder)Writes the term state details of a line in the details region.voidDeltaBaseTermStateSerializer. writeTermState(DataOutput termStatesOutput, FieldInfo fieldInfo, BlockTermState termState)Writes aBlockTermStateto the providedDataOutput.voidBlockEncoder.WritableBytes. writeTo(DataOutput dataOutput)Writes the bytes to the providedDataOutput. -
Uses of DataOutput in org.apache.lucene.codecs.uniformsplit.sharedterms
Methods in org.apache.lucene.codecs.uniformsplit.sharedterms with parameters of type DataOutput Modifier and Type Method Description voidSTBlockLine.Serializer. writeLineTermStates(DataOutput termStatesOutput, STBlockLine line, DeltaBaseTermStateSerializer encoder)Writes all theBlockTermStateof the providedSTBlockLineto the given output. -
Uses of DataOutput in org.apache.lucene.index
Subclasses of DataOutput in org.apache.lucene.index Modifier and Type Class Description (package private) classByteSliceWriterClass to write byte streams into slices of shared byte[].Fields in org.apache.lucene.index declared as DataOutput Modifier and Type Field Description private DataOutputBinaryDocValuesWriter. bytesOutMethods in org.apache.lucene.index with parameters of type DataOutput Modifier and Type Method Description private voidFreqProxTermsWriter.SortingPostingsEnum. addPositions(PostingsEnum in, DataOutput out)static voidSortFieldProvider. write(SortField sf, DataOutput output)Writes a SortField to a DataOutputabstract voidSortFieldProvider. writeSortField(SortField sf, DataOutput out)Writes a SortField to a DataOutput This is used to record index sort information in segment headerslongByteSliceReader. writeTo(DataOutput out)(package private) voidDocValuesUpdate.BinaryDocValuesUpdate. writeTo(DataOutput out)(package private) voidDocValuesUpdate.NumericDocValuesUpdate. writeTo(DataOutput out)(package private) abstract voidDocValuesUpdate. writeTo(DataOutput output)Constructors in org.apache.lucene.index with parameters of type DataOutput Constructor Description CorruptIndexException(java.lang.String message, DataOutput output)Create exception with a message onlyCorruptIndexException(java.lang.String message, DataOutput output, java.lang.Throwable cause)Create exception with message and root cause. -
Uses of DataOutput in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type DataOutput Modifier and Type Method Description private voidSortedNumericSortField. serialize(DataOutput out)private voidSortedSetSortField. serialize(DataOutput out)private voidSortField. serialize(DataOutput out)voidSortedNumericSortField.Provider. writeSortField(SortField sf, DataOutput out)voidSortedSetSortField.Provider. writeSortField(SortField sf, DataOutput out)voidSortField.Provider. writeSortField(SortField sf, DataOutput out) -
Uses of DataOutput in org.apache.lucene.search.suggest
Methods in org.apache.lucene.search.suggest with parameters of type DataOutput Modifier and Type Method Description abstract booleanLookup. store(DataOutput output)Persist the constructed lookup data to a directory. -
Uses of DataOutput in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type DataOutput Modifier and Type Method Description booleanAnalyzingInfixSuggester. store(DataOutput in)booleanAnalyzingSuggester. store(DataOutput output)booleanFreeTextSuggester. store(DataOutput output) -
Uses of DataOutput in org.apache.lucene.search.suggest.document
Methods in org.apache.lucene.search.suggest.document with parameters of type DataOutput Modifier and Type Method Description booleanNRTSuggesterBuilder. store(DataOutput output)Builds and stores a FST that can be loaded withNRTSuggester.load(IndexInput, CompletionPostingsFormat.FSTLoadMode))} -
Uses of DataOutput in org.apache.lucene.search.suggest.fst
Methods in org.apache.lucene.search.suggest.fst with parameters of type DataOutput Modifier and Type Method Description booleanFSTCompletionLookup. store(DataOutput output)booleanWFSTCompletionLookup. store(DataOutput output) -
Uses of DataOutput in org.apache.lucene.search.suggest.jaspell
Methods in org.apache.lucene.search.suggest.jaspell with parameters of type DataOutput Modifier and Type Method Description booleanJaspellLookup. store(DataOutput output)Deprecated.private voidJaspellLookup. writeRecursively(DataOutput out, JaspellTernarySearchTrie.TSTNode node)Deprecated. -
Uses of DataOutput in org.apache.lucene.search.suggest.tst
Methods in org.apache.lucene.search.suggest.tst with parameters of type DataOutput Modifier and Type Method Description booleanTSTLookup. store(DataOutput output)private voidTSTLookup. writeRecursively(DataOutput out, TernaryTreeNode node) -
Uses of DataOutput in org.apache.lucene.store
Subclasses of DataOutput in org.apache.lucene.store Modifier and Type Class Description classByteArrayDataOutputDataOutput backed by a byte array.classByteBuffersDataOutputADataOutputstoring data in a list ofByteBuffers.classByteBuffersIndexOutputAnIndexOutputwriting to aByteBuffersDataOutput.(package private) classFSDirectory.FSIndexOutputclassGrowableByteArrayDataOutputADataOutputthat can be used to build a byte[].classIndexOutputADataOutputfor appending data to a file in aDirectory.private static classNativeUnixDirectory.NativeUnixIndexOutputclassOutputStreamDataOutputADataOutputwrapping a plainOutputStream.classOutputStreamIndexOutputImplementation class for bufferedIndexOutputthat writes to anOutputStream.classRAMOutputStreamDeprecated.This class uses inefficient synchronization and is discouraged in favor ofMMapDirectory.classRateLimitedIndexOutputMethods in org.apache.lucene.store with parameters of type DataOutput Modifier and Type Method Description voidByteBuffersDataOutput. copyTo(DataOutput output)Copy the current content of this object into anotherDataOutput.voidRAMOutputStream. writeTo(DataOutput out)Deprecated.Copy the current contents of this buffer to the providedDataOutput. -
Uses of DataOutput in org.apache.lucene.util
Subclasses of DataOutput in org.apache.lucene.util Modifier and Type Class Description classPagedBytes.PagedBytesDataOutput -
Uses of DataOutput in org.apache.lucene.util.bkd
Methods in org.apache.lucene.util.bkd with parameters of type DataOutput Modifier and Type Method Description private voidBKDWriter. writeActualBounds(DataOutput out, int[] commonPrefixLengths, int count, java.util.function.IntFunction<BytesRef> packedValues)private voidBKDWriter. writeCommonPrefixes(DataOutput out, int[] commonPrefixes, byte[] packedValue)(package private) static voidDocIdsWriter. writeDocIds(int[] docIds, int start, int count, DataOutput out)private voidBKDWriter. writeHighCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int compressedByteOffset)private voidBKDWriter. writeLeafBlockDocs(DataOutput out, int[] docIDs, int start, int count)private voidBKDWriter. writeLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, int sortedDim, java.util.function.IntFunction<BytesRef> packedValues, int leafCardinality)private voidBKDWriter. writeLeafBlockPackedValuesRange(DataOutput out, int[] commonPrefixLengths, int start, int end, java.util.function.IntFunction<BytesRef> packedValues)private voidBKDWriter. writeLowCardinalityLeafBlockPackedValues(DataOutput out, int[] commonPrefixLengths, int count, java.util.function.IntFunction<BytesRef> packedValues) -
Uses of DataOutput in org.apache.lucene.util.compress
Methods in org.apache.lucene.util.compress with parameters of type DataOutput Modifier and Type Method Description static booleanLowercaseAsciiCompression. compress(byte[] in, int len, byte[] tmp, DataOutput out)Compressin[0:len]intoout.static voidLZ4. compress(byte[] bytes, int off, int len, DataOutput out, LZ4.HashTable ht)Compressbytes[off:off+len]intooutusing at most 16kB of memory.static voidLZ4. compressWithDictionary(byte[] bytes, int dictOff, int dictLen, int len, DataOutput out, LZ4.HashTable ht)Compressbytes[dictOff+dictLen:dictOff+dictLen+len]intooutusing at most 16kB of memory.private static voidLZ4. encodeLastLiterals(byte[] bytes, int anchor, int literalLen, DataOutput out)private static voidLZ4. encodeLen(int l, DataOutput out)private static voidLZ4. encodeLiterals(byte[] bytes, int token, int anchor, int literalLen, DataOutput out)private static voidLZ4. encodeSequence(byte[] bytes, int anchor, int matchRef, int matchOff, int matchLen, DataOutput out) -
Uses of DataOutput in org.apache.lucene.util.fst
Subclasses of DataOutput in org.apache.lucene.util.fst Modifier and Type Class Description (package private) classBytesStoreMethods in org.apache.lucene.util.fst with parameters of type DataOutput Modifier and Type Method Description voidFST. save(DataOutput metaOut, DataOutput out)voidByteSequenceOutputs. write(BytesRef prefix, DataOutput out)voidCharSequenceOutputs. write(CharsRef prefix, DataOutput out)voidIntSequenceOutputs. write(IntsRef prefix, DataOutput out)voidListOfOutputs. write(java.lang.Object output, DataOutput out)voidNoOutputs. write(java.lang.Object prefix, DataOutput out)abstract voidOutputs. write(T output, DataOutput out)Encode an output value into aDataOutput.voidPairOutputs. write(PairOutputs.Pair<A,B> output, DataOutput writer)voidPositiveIntOutputs. write(java.lang.Long output, DataOutput out)voidUpToTwoPositiveIntOutputs. write(java.lang.Object _output, DataOutput out)voidListOfOutputs. writeFinalOutput(java.lang.Object output, DataOutput out)voidOutputs. writeFinalOutput(T output, DataOutput out)Encode an final node output value into aDataOutput.private voidFST. writeLabel(DataOutput out, int v)voidBytesStore. writeTo(DataOutput out)Writes all of our bytes to the targetDataOutput.voidFSTStore. writeTo(DataOutput out)voidOffHeapFSTStore. writeTo(DataOutput out)voidOnHeapFSTStore. writeTo(DataOutput out) -
Uses of DataOutput in org.apache.lucene.util.packed
Fields in org.apache.lucene.util.packed declared as DataOutput Modifier and Type Field Description protected DataOutputAbstractBlockPackedWriter. out(package private) DataOutputPackedDataOutput. outprotected DataOutputPackedInts.Writer. out(package private) DataOutputDirectWriter. outputMethods in org.apache.lucene.util.packed with parameters of type DataOutput Modifier and Type Method Description static DirectWriterDirectWriter. getInstance(DataOutput output, long numValues, int bitsPerValue)Returns an instance suitable for encodingnumValuesusingbitsPerValuestatic PackedInts.WriterPackedInts. getWriter(DataOutput out, int valueCount, int bitsPerValue, float acceptableOverheadRatio)Create a packed integer array writer for the given output, format, value count, and number of bits per value.static PackedInts.WriterPackedInts. getWriterNoHeader(DataOutput out, PackedInts.Format format, int valueCount, int bitsPerValue, int mem)Expert: Create a packed integer array writer for the given output, format, value count, and number of bits per value.voidAbstractBlockPackedWriter. reset(DataOutput out)Reset this writer to wrapout.voidGrowableWriter. save(DataOutput out)voidPackedInts.Mutable. save(DataOutput out)Save this mutable intoout.(package private) static voidAbstractBlockPackedWriter. writeVLong(DataOutput out, long i)Constructors in org.apache.lucene.util.packed with parameters of type DataOutput Constructor Description AbstractBlockPackedWriter(DataOutput out, int blockSize)Sole constructor.BlockPackedWriter(DataOutput out, int blockSize)Sole constructor.DirectWriter(DataOutput output, long numValues, int bitsPerValue)MonotonicBlockPackedWriter(DataOutput out, int blockSize)Sole constructor.PackedDataOutput(DataOutput out)Create a new instance that wrapsout.PackedWriter(PackedInts.Format format, DataOutput out, int valueCount, int bitsPerValue, int mem)Writer(DataOutput out, int valueCount, int bitsPerValue)
-