Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface BlockLoader.SingletonBytesRefBuilder
- All Superinterfaces:
AutoCloseable,BlockLoader.Builder,Closeable,Releasable
- Enclosing interface:
BlockLoader
Specialized builder for collecting dense arrays of BytesRef values.
-
Method Summary
Modifier and TypeMethodDescriptionappendBytesRefs(byte[] bytes, long bytesRefLengths) Append multiple BytesRefs, all with the same length.appendBytesRefs(byte[] bytes, long[] offsets) Append multiple BytesRef.Methods inherited from interface org.elasticsearch.index.mapper.BlockLoader.Builder
appendNull, beginPositionEntry, build, endPositionEntryMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Method Details
-
appendBytesRefs
BlockLoader.SingletonBytesRefBuilder appendBytesRefs(byte[] bytes, long[] offsets) throws IOException Append multiple BytesRef. Offsets contains offsets of each BytesRef in the byte array. The length of the offsets array is one more than the number of BytesRefs.- Throws:
IOException
-
appendBytesRefs
BlockLoader.SingletonBytesRefBuilder appendBytesRefs(byte[] bytes, long bytesRefLengths) throws IOException Append multiple BytesRefs, all with the same length.- Throws:
IOException
-