| Package | Description |
|---|---|
| org.iq80.leveldb.env | |
| org.iq80.leveldb.impl | |
| org.iq80.leveldb.iterator | |
| org.iq80.leveldb.table | |
| org.iq80.leveldb.util |
| Modifier and Type | Method and Description |
|---|---|
void |
WritableFile.append(Slice data)
Append
data to current file position. |
| Modifier and Type | Method and Description |
|---|---|
Slice |
VersionEdit.encode() |
Slice |
InternalKey.encode() |
Slice |
InternalUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
InternalUserComparator.findShortSuccessor(Slice key) |
Slice |
InternalKey.getUserKey() |
Slice |
LookupKey.getUserKey() |
Slice |
LookupResult.getValue() |
Slice |
InternalEntry.getValue() |
Slice |
LogReader.readRecord() |
Slice |
InternalEntry.setValue(Slice value) |
| Modifier and Type | Method and Description |
|---|---|
void |
MemTable.add(long sequenceNumber,
ValueType valueType,
Slice key,
Slice value) |
void |
LogWriter.addRecord(Slice record,
boolean force) |
LookupResult |
KeyMatchingLookup.apply(Slice internalKey1,
Slice value) |
int |
InternalUserComparator.compare(Slice left,
Slice right) |
WriteBatchImpl |
WriteBatchImpl.delete(Slice key) |
void |
WriteBatchImpl.Handler.delete(Slice key) |
Slice |
InternalUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
InternalUserComparator.findShortSuccessor(Slice key) |
<T> T |
TableCache.get(ReadOptions options,
Slice key,
FileMetaData fileMetaData,
KeyValueFunction<T> resultBuilder) |
long |
TableCache.getApproximateOffsetOf(FileMetaData file,
Slice key) |
static int |
Logs.getChunkChecksum(int chunkTypeId,
Slice slice) |
List<FileMetaData> |
Level.getFilesForKey(Slice userKey,
InternalKey internalKey) |
boolean |
Compaction.isBaseLevelForKey(Slice userKey) |
static LookupResult |
LookupResult.ok(LookupKey key,
Slice value) |
boolean |
VersionSet.overlapInLevel(int level,
Slice smallestUserKey,
Slice largestUserKey) |
boolean |
Version.overlapInLevel(int level,
Slice smallestUserKey,
Slice largestUserKey) |
WriteBatchImpl |
WriteBatchImpl.put(Slice key,
Slice value) |
void |
WriteBatchImpl.Handler.put(Slice key,
Slice value) |
Slice |
InternalEntry.setValue(Slice value) |
boolean |
Level.someFileOverlapsRange(boolean disjointSortedFiles,
Slice smallestUserKey,
Slice largestUserKey) |
| Constructor and Description |
|---|
InternalEntry(InternalKey key,
Slice value) |
InternalKey(Slice data) |
InternalKey(Slice userKey,
long sequenceNumber,
ValueType valueType) |
LookupKey(Slice userKey,
long sequenceNumber) |
VersionEdit(Slice slice) |
| Modifier and Type | Method and Description |
|---|---|
Slice |
DBIteratorAdapter.DbEntry.getKeySlice() |
Slice |
DBIteratorAdapter.DbEntry.getValueSlice() |
protected Slice |
SnapshotSeekingIterator.internalKey() |
protected Slice |
MergingIterator.internalValue() |
protected Slice |
MemTableIterator.internalValue() |
protected Slice |
SnapshotSeekingIterator.internalValue() |
Slice |
DbIterator.value() |
Slice |
InternalTableIterator.value() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
SnapshotSeekingIterator.internalSeek(Slice targetKey) |
| Modifier and Type | Method and Description |
|---|---|
static <T> InternalIterator |
SeekingIterators.twoLevelInternalIterator(SeekingIterator<InternalKey,T> indexIterator,
Function<T,SeekingIterator<InternalKey,Slice>> blockFunction,
Closeable closeableResources) |
static SliceIterator |
SeekingIterators.twoLevelSliceIterator(SliceIterator indexIterator,
Function<Slice,SeekingIterator<Slice,Slice>> blockFunction,
Closeable closeableResources) |
static SliceIterator |
SeekingIterators.twoLevelSliceIterator(SliceIterator indexIterator,
Function<Slice,SeekingIterator<Slice,Slice>> blockFunction,
Closeable closeableResources) |
static SliceIterator |
SeekingIterators.twoLevelSliceIterator(SliceIterator indexIterator,
Function<Slice,SeekingIterator<Slice,Slice>> blockFunction,
Closeable closeableResources) |
| Constructor and Description |
|---|
DbEntry(Slice key,
Slice value) |
| Constructor and Description |
|---|
MemTableIterator(ConcurrentNavigableMap<InternalKey,Slice> table) |
SnapshotSeekingIterator(InternalIterator iterator,
long sequence,
Comparator<Slice> userComparator,
SnapshotSeekingIterator.IRecordBytesListener listener) |
| Modifier and Type | Method and Description |
|---|---|
Slice |
BytewiseComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
UserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
CustomUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
BytewiseComparator.findShortSuccessor(Slice key) |
Slice |
UserComparator.findShortSuccessor(Slice key) |
Slice |
CustomUserComparator.findShortSuccessor(Slice key) |
Slice |
BlockBuilder.finish() |
Slice |
FilterBlockBuilder.finish() |
Slice |
BlockEntry.getKey() |
Slice |
BlockEntry.getValue() |
protected Slice |
BlockIterator.internalKey() |
protected Slice |
BlockIterator.internalValue() |
protected Slice |
Table.readRawBlock(BlockHandle blockHandle,
boolean verifyChecksum) |
Slice |
BlockEntry.setValue(Slice value) |
static Slice |
BlockHandle.writeBlockHandle(BlockHandle blockHandle) |
static Slice |
BlockTrailer.writeBlockTrailer(BlockTrailer blockTrailer) |
static Slice |
Footer.writeFooter(Footer footer) |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockBuilder.add(Slice key,
Slice value) |
void |
TableBuilder.add(Slice key,
Slice value) |
void |
FilterBlockBuilder.addKey(Slice key) |
T |
KeyValueFunction.apply(Slice internalKey,
Slice value)
Function to apply on first entry after seeking in a table.
|
static int |
BlockBuilder.calculateSharedBytes(Slice leftKey,
Slice rightKey) |
int |
BytewiseComparator.compare(Slice sliceA,
Slice sliceB) |
int |
CustomUserComparator.compare(Slice o1,
Slice o2) |
static int |
TableBuilder.crc32c(Slice data,
CompressionType type) |
Slice |
BytewiseComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
UserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
CustomUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
BytewiseComparator.findShortSuccessor(Slice key) |
Slice |
UserComparator.findShortSuccessor(Slice key) |
Slice |
CustomUserComparator.findShortSuccessor(Slice key) |
long |
Table.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).
|
<T> T |
Table.internalGet(ReadOptions options,
Slice key,
KeyValueFunction<T> keyValueFunction) |
protected boolean |
BlockIterator.internalSeek(Slice targetKey)
Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.
|
boolean |
FilterPolicy.keyMayMatch(Slice key,
Slice filter)
"filter" contains the data appended by a preceding call to
CreateFilter() on this class.
|
boolean |
BloomFilterPolicy.keyMayMatch(Slice key,
Slice bloomFilter1) |
Block |
Table.openBlock(Slice blockEntry,
ReadOptions options) |
static BlockTrailer |
BlockTrailer.readBlockTrailer(Slice slice) |
protected org.iq80.leveldb.table.FilterBlockReader |
Table.readFilter(FilterPolicy filterPolicy,
Slice filterHandle,
boolean verifyChecksum) |
static Footer |
Footer.readFooter(Slice slice) |
Slice |
BlockEntry.setValue(Slice value) |
int |
BlockHandleSliceWeigher.weigh(CacheKey key,
Slice value) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
FilterPolicy.createFilter(List<Slice> keys)
Append a filter that summarizes keys[0,n-1] to *dst.
|
byte[] |
BloomFilterPolicy.createFilter(List<Slice> keys) |
| Constructor and Description |
|---|
Block(Slice block,
Comparator<Slice> comparator) |
BlockEntry(Slice key,
Slice value) |
BlockIterator(Slice data,
Slice restartPositions,
Comparator<Slice> comparator) |
| Constructor and Description |
|---|
Block(Slice block,
Comparator<Slice> comparator) |
BlockBuilder(int estimatedSize,
int blockRestartInterval,
Comparator<Slice> comparator) |
BlockIterator(Slice data,
Slice restartPositions,
Comparator<Slice> comparator) |
Table(RandomInputFile source,
Comparator<Slice> comparator,
boolean paranoidChecks,
ILRUCache<CacheKey,Slice> blockCache,
FilterPolicy filterPolicy) |
Table(RandomInputFile source,
Comparator<Slice> comparator,
boolean paranoidChecks,
ILRUCache<CacheKey,Slice> blockCache,
FilterPolicy filterPolicy) |
| Modifier and Type | Field and Description |
|---|---|
static Slice |
Slices.EMPTY_SLICE
A buffer whose capacity is
0. |
| Modifier and Type | Method and Description |
|---|---|
static Slice |
Slices.allocate(int capacity) |
static Slice |
Slices.avoidCopiedBuffer(ByteBuffer source) |
static Slice |
Slices.copiedBuffer(ByteBuffer source) |
static Slice |
Slices.copiedBuffer(ByteBuffer source,
int sourceOffset,
int length) |
static Slice |
Slices.copiedBuffer(String string,
Charset charset) |
Slice |
Slice.copySlice() |
Slice |
Slice.copySlice(int index,
int length)
Returns a copy of this buffer's sub-region.
|
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
Slice |
SliceInput.readBytes(int length)
Transfers this buffer's data to a newly created buffer starting at
the current
position and increases the position
by the number of the transferred bytes (= length). |
static Slice |
Slices.readLengthPrefixedBytes(SliceInput sliceInput) |
Slice |
SliceInput.readSlice(int length)
Returns a new slice of this buffer's sub-region starting at the current
position and increases the position by the size
of the new slice (= length). |
Slice |
BasicSliceOutput.slice() |
abstract Slice |
SliceOutput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
SliceInput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
DynamicSliceOutput.slice() |
Slice |
Slice.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
Slice.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
static Slice |
Slices.wrappedBuffer(byte[] array) |
| Modifier and Type | Method and Description |
|---|---|
int |
SliceComparator.compare(Slice sliceA,
Slice sliceB) |
int |
Slice.compareTo(Slice that)
Compares the content of the specified buffer to the content of this
buffer.
|
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
void |
Slice.getBytes(int index,
Slice dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index. |
void |
SliceInput.readBytes(Slice destination)
Transfers this buffer's data to the specified destination starting at
the current
position until the destination becomes
non-writable, and increases the position by the number of the
transferred bytes. |
void |
SliceInput.readBytes(Slice destination,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length). |
void |
SliceInput.readBytes(Slice destination,
int destinationIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length). |
void |
Slice.setBytes(int index,
Slice src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index. |
void |
BasicSliceOutput.writeBytes(Slice source) |
abstract void |
SliceOutput.writeBytes(Slice source)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes. |
void |
DynamicSliceOutput.writeBytes(Slice source) |
void |
BasicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
abstract void |
SliceOutput.writeBytes(Slice source,
int sourceIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length). |
void |
DynamicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
static void |
Slices.writeLengthPrefixedBytes(SliceOutput sliceOutput,
Slice value) |
| Constructor and Description |
|---|
BasicSliceOutput(Slice slice) |
SliceInput(Slice slice) |
Copyright © 2011–2020. All rights reserved.