Uses of Class
org.iq80.leveldb.util.Slice
Packages that use Slice
Package
Description
-
Uses of Slice in org.iq80.leveldb.benchmark
Fields in org.iq80.leveldb.benchmark declared as SliceMethods in org.iq80.leveldb.benchmark that return SliceModifier and TypeMethodDescriptionprivate static SliceDbBenchmark.compressibleString(Random rnd, double compressionRatio, int len) private static SliceDbBenchmark.generateRandomSlice(Random random, int length) -
Uses of Slice in org.iq80.leveldb.impl
Fields in org.iq80.leveldb.impl declared as SliceModifier and TypeFieldDescriptionprivate final SliceDbImpl.ManualCompaction.beginprivate SliceLogReader.currentChunkCurrent chunk which is sliced from the current block.private final SliceDbImpl.ManualCompaction.endprivate final SliceSeekingIteratorAdapter.DbEntry.keyprivate final SliceInternalKey.userKeyprivate final SliceInternalEntry.valueprivate final SliceLookupResult.valueprivate final SliceSeekingIteratorAdapter.DbEntry.valueFields in org.iq80.leveldb.impl with type parameters of type SliceModifier and TypeFieldDescriptionWriteBatchImpl.batchWriteBatchImpl.batchprivate com.google.common.collect.PeekingIterator<Map.Entry<InternalKey, Slice>> MemTable.MemTableIterator.iteratorprivate final ConcurrentSkipListMap<InternalKey, Slice> MemTable.tableprivate final Comparator<Slice> SnapshotSeekingIterator.userComparatorMethods in org.iq80.leveldb.impl that return SliceModifier and TypeMethodDescriptionInternalKey.encode()VersionEdit.encode()InternalUserComparator.findShortestSeparator(Slice start, Slice limit) InternalUserComparator.findShortSuccessor(Slice key) SeekingIteratorAdapter.DbEntry.getKeySlice()InternalKey.getUserKey()private static SliceInternalKey.getUserKey(Slice data) LookupKey.getUserKey()InternalEntry.getValue()LookupResult.getValue()SeekingIteratorAdapter.DbEntry.getValueSlice()private SliceFileChannelLogWriter.newLogRecordHeader(LogChunkType type, Slice slice, int length) private static SliceMMapLogWriter.newLogRecordHeader(LogChunkType type, Slice slice) LogReader.readRecord()final Sliceprivate SliceDbImpl.writeWriteBatch(WriteBatchImpl updates, long sequenceBegin) Methods in org.iq80.leveldb.impl that return types with arguments of type SliceModifier and TypeMethodDescriptionSnapshotSeekingIterator.getNextElement()SnapshotSeekingIterator.getNextElement()(package private) SeekingIterable<InternalKey, Slice> DbImpl.internalIterable()Methods in org.iq80.leveldb.impl with parameters of type SliceModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidDbImpl.compactRange(int level, Slice start, Slice end) intvoidvoidprivate voidSnapshotSeekingIterator.findNextUserEntry(Slice deletedKey) InternalUserComparator.findShortestSeparator(Slice start, Slice limit) InternalUserComparator.findShortSuccessor(Slice key) longTableCache.getApproximateOffsetOf(FileMetaData file, Slice key) static intLogs.getChunkChecksum(int chunkTypeId, Slice slice) private static SliceInternalKey.getUserKey(Slice data) booleanCompaction.isBaseLevelForKey(Slice userKey) private SliceFileChannelLogWriter.newLogRecordHeader(LogChunkType type, Slice slice, int length) private static SliceMMapLogWriter.newLogRecordHeader(LogChunkType type, Slice slice) static LookupResultbooleanVersion.overlapInLevel(int level, Slice smallestUserKey, Slice largestUserKey) booleanVersionSet.overlapInLevel(int level, Slice smallestUserKey, Slice largestUserKey) (package private) intVersion.pickLevelForMemTableOutput(Slice smallestUserKey, Slice largestUserKey) voidvoidprotected voidSnapshotSeekingIterator.seekInternal(Slice targetKey) final SlicebooleanLevel.someFileOverlapsRange(Slice smallestUserKey, Slice largestUserKey) booleanLevel0.someFileOverlapsRange(Slice smallestUserKey, Slice largestUserKey) private voidFileChannelLogWriter.writeChunk(LogChunkType type, Slice slice) private voidMMapLogWriter.writeChunk(LogChunkType type, Slice slice) Method parameters in org.iq80.leveldb.impl with type arguments of type SliceModifier and TypeMethodDescriptionprivate SeekingIteratorAdapter.DbEntryprivate SeekingIteratorAdapter.DbEntryprivate FileMetaDataDbImpl.buildTable(SeekingIterable<InternalKey, Slice> data, long fileNumber) Constructors in org.iq80.leveldb.impl with parameters of type SliceModifierConstructorDescriptionInternalEntry(InternalKey key, Slice value) InternalKey(Slice data) InternalKey(Slice userKey, long sequenceNumber, ValueType valueType) privateLookupResult(LookupKey key, Slice value, boolean deleted) privateManualCompaction(int level, Slice begin, Slice end) VersionEdit(Slice slice) Constructor parameters in org.iq80.leveldb.impl with type arguments of type SliceModifierConstructorDescriptionSnapshotSeekingIterator(DbIterator iterator, SnapshotImpl snapshot, Comparator<Slice> userComparator) -
Uses of Slice in org.iq80.leveldb.table
Fields in org.iq80.leveldb.table declared as SliceModifier and TypeFieldDescriptionprivate final SliceBlock.blockprivate SliceTableBuilder.compressedOutputprivate final SliceBlock.dataprivate final SliceBlockEntry.keyprivate SliceBlockBuilder.lastKeyprivate SliceTableBuilder.lastKeyprivate final SliceBlock.restartPositionsprivate final SliceBlockIterator.restartPositionsprivate final SliceBlockEntry.valueFields in org.iq80.leveldb.table with type parameters of type SliceModifier and TypeFieldDescriptionprivate final Comparator<Slice> Block.comparatorprivate final Comparator<Slice> BlockBuilder.comparatorprivate final Comparator<Slice> BlockIterator.comparatorprotected final Comparator<Slice> Table.comparatorMethods in org.iq80.leveldb.table that return SliceModifier and TypeMethodDescriptionBytewiseComparator.findShortestSeparator(Slice start, Slice limit) CustomUserComparator.findShortestSeparator(Slice start, Slice limit) UserComparator.findShortestSeparator(Slice start, Slice limit) BytewiseComparator.findShortSuccessor(Slice key) CustomUserComparator.findShortSuccessor(Slice key) UserComparator.findShortSuccessor(Slice key) BlockBuilder.finish()BlockEntry.getKey()BlockEntry.getValue()final Slicestatic SliceBlockHandle.writeBlockHandle(BlockHandle blockHandle) static SliceBlockTrailer.writeBlockTrailer(BlockTrailer blockTrailer) static SliceFooter.writeFooter(Footer footer) Methods in org.iq80.leveldb.table with parameters of type SliceModifier and TypeMethodDescriptionvoidvoidstatic intBlockBuilder.calculateSharedBytes(Slice leftKey, Slice rightKey) intintstatic intTableBuilder.crc32c(Slice data, CompressionType type) BytewiseComparator.findShortestSeparator(Slice start, Slice limit) CustomUserComparator.findShortestSeparator(Slice start, Slice limit) UserComparator.findShortestSeparator(Slice start, Slice limit) BytewiseComparator.findShortSuccessor(Slice key) CustomUserComparator.findShortSuccessor(Slice key) UserComparator.findShortSuccessor(Slice key) longTable.getApproximateOffsetOf(Slice key) Given a key, return an approximate byte offset in the file where the data for that key begins (or would begin if the key were present in the file).static BlockTrailerBlockTrailer.readBlockTrailer(Slice slice) static FooterFooter.readFooter(Slice slice) voidRepositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.final SliceConstructors in org.iq80.leveldb.table with parameters of type SliceModifierConstructorDescriptionBlock(Slice block, Comparator<Slice> comparator) BlockEntry(Slice key, Slice value) BlockIterator(Slice data, Slice restartPositions, Comparator<Slice> comparator) Constructor parameters in org.iq80.leveldb.table with type arguments of type SliceModifierConstructorDescriptionBlock(Slice block, Comparator<Slice> comparator) BlockBuilder(int estimatedSize, int blockRestartInterval, Comparator<Slice> comparator) BlockIterator(Slice data, Slice restartPositions, Comparator<Slice> comparator) FileChannelTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) MMapTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) Table(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) -
Uses of Slice in org.iq80.leveldb.util
Fields in org.iq80.leveldb.util declared as SliceModifier and TypeFieldDescriptionstatic final SliceSlices.EMPTY_SLICEA buffer whose capacity is0.private final SliceBasicSliceOutput.sliceprivate SliceDynamicSliceOutput.sliceprivate final SliceSliceInput.sliceFields in org.iq80.leveldb.util with type parameters of type SliceModifier and TypeFieldDescriptionprivate final SeekingIterator<InternalKey, Slice> DbIterator.ComparableIterator.iteratorprivate final SeekingIterator<InternalKey, Slice> Level0Iterator.ComparableIterator.iteratorprivate Map.Entry<InternalKey, Slice> DbIterator.ComparableIterator.nextElementprivate Map.Entry<InternalKey, Slice> Level0Iterator.ComparableIterator.nextElementprivate Map.Entry<InternalKey, Slice> MergingIterator.ComparableIterator.nextElementMethods in org.iq80.leveldb.util that return SliceModifier and TypeMethodDescriptionstatic SliceSlices.allocate(int capacity) static SliceSlices.copiedBuffer(String string, Charset charset) static SliceSlices.copiedBuffer(ByteBuffer source) static SliceSlices.copiedBuffer(ByteBuffer source, int sourceOffset, int length) Slice.copySlice()Slice.copySlice(int index, int length) Returns a copy of this buffer's sub-region.static SliceSlices.ensureSize(Slice existingSlice, int minWritableBytes) SliceInput.readBytes(int length) Transfers this buffer's data to a newly created buffer starting at the currentpositionand increases thepositionby the number of the transferred bytes (=length).static SliceSlices.readLengthPrefixedBytes(SliceInput sliceInput) SliceInput.readSlice(int length) Returns a new slice of this buffer's sub-region starting at the currentpositionand increases thepositionby the size of the new slice (=length).BasicSliceOutput.slice()DynamicSliceOutput.slice()Slice.slice()Returns a slice of this buffer's readable bytes.Slice.slice(int index, int length) Returns a slice of this buffer's sub-region.SliceInput.slice()Returns a slice of this buffer's readable bytes.abstract SliceSliceOutput.slice()Returns a slice of this buffer's readable bytes.static SliceSlices.wrappedBuffer(byte[] array) Methods in org.iq80.leveldb.util that return types with arguments of type SliceModifier and TypeMethodDescriptionprotected Map.Entry<InternalKey, Slice> DbIterator.getNextElement()protected Map.Entry<InternalKey, Slice> InternalTableIterator.getNextElement()protected Map.Entry<InternalKey, Slice> Level0Iterator.getNextElement()protected Map.Entry<InternalKey, Slice> LevelIterator.getNextElement()protected Map.Entry<InternalKey, Slice> MergingIterator.getNextElement()TableIterator.getNextElement()TableIterator.getNextElement()DbIterator.ComparableIterator.next()Level0Iterator.ComparableIterator.next()MergingIterator.ComparableIterator.next()Methods in org.iq80.leveldb.util with parameters of type SliceModifier and TypeMethodDescriptionintintCompares the content of the specified buffer to the content of this buffer.static SliceSlices.ensureSize(Slice existingSlice, int minWritableBytes) voidTransfers this buffer's data to the specified destination starting at the specified absoluteindex.voidTransfers this buffer's data to the specified destination starting at the currentpositionuntil the destination becomes non-writable, and increases thepositionby the number of the transferred bytes.voidTransfers this buffer's data to the specified destination starting at the currentpositionand increases thepositionby the number of the transferred bytes (=length).voidTransfers this buffer's data to the specified destination starting at the currentpositionand increases thepositionby the number of the transferred bytes (=length).protected voidTableIterator.seekInternal(Slice targetKey) voidTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex.voidBasicSliceOutput.writeBytes(Slice source) voidBasicSliceOutput.writeBytes(Slice source, int sourceIndex, int length) voidDynamicSliceOutput.writeBytes(Slice source) voidDynamicSliceOutput.writeBytes(Slice source, int sourceIndex, int length) abstract voidSliceOutput.writeBytes(Slice source) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexuntil the source buffer becomes unreadable, and increases thewriterIndexby the number of the transferred bytes.abstract voidSliceOutput.writeBytes(Slice source, int sourceIndex, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).static voidSlices.writeLengthPrefixedBytes(SliceOutput sliceOutput, Slice value) Constructors in org.iq80.leveldb.util with parameters of type SliceConstructor parameters in org.iq80.leveldb.util with type arguments of type SliceModifierConstructorDescriptionprivateComparableIterator(SeekingIterator<InternalKey, Slice> iterator, Comparator<InternalKey> comparator, int ordinal, Map.Entry<InternalKey, Slice> nextElement) privateComparableIterator(SeekingIterator<InternalKey, Slice> iterator, Comparator<InternalKey> comparator, int ordinal, Map.Entry<InternalKey, Slice> nextElement) privateComparableIterator(SeekingIterator<InternalKey, Slice> iterator, Comparator<InternalKey> comparator, int ordinal, Map.Entry<InternalKey, Slice> nextElement) privateComparableIterator(SeekingIterator<InternalKey, Slice> iterator, Comparator<InternalKey> comparator, int ordinal, Map.Entry<InternalKey, Slice> nextElement) privateComparableIterator(InternalIterator iterator, Comparator<InternalKey> comparator, int ordinal, Map.Entry<InternalKey, Slice> nextElement)