Preparing search index...
The search index is not available
nyadb - v1.0.0
nyadb
SSTManager
Class SSTManager
Index
Constructors
constructor
Properties
#column
#dir
Handle
#interval
#levels
#levels
Mutex
#options
Methods
#close
Old
Files
#enable
Interval
clear
close
flush
To
Disk
get
has
Key
init
may
Has
Key
merge
And
Compact
ping
set
Path
stats
default
Options
Constructors
constructor
new SSTManager
(
options
,
column
)
:
SSTManager
Parameters
options
:
Partial
<
ISSTMangerOptions
>
column
:
Column
Returns
SSTManager
Properties
Private
#column
#column
:
Column
Private
#dir
Handle
#dir
Handle
:
FileHandle
[]
= []
Private
#interval
#interval
:
null
|
Timeout
= null
Private
#levels
#levels
:
SSTFile
[]
[]
Private
#levels
Mutex
#levels
Mutex
:
Mutex
[]
= []
Private
#options
#options
:
ISSTMangerOptions
Methods
Private
#close
Old
Files
#close
Old
Files
(
data
)
:
Promise
<
void
>
Parameters
data
:
{
files
:
string
[]
;
level
:
number
;
}
files
:
string
[]
level
:
number
Returns
Promise
<
void
>
Private
#enable
Interval
#enable
Interval
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
flush
To
Disk
flush
To
Disk
(
data
,
level
?
)
:
Promise
<
void
>
Parameters
data
:
Uint8Array
[]
level
:
number
= 0
Returns
Promise
<
void
>
get
get
(
key
)
:
Promise
<
null
|
DataNode
>
Parameters
key
:
PossibleKeyType
Returns
Promise
<
null
|
DataNode
>
has
Key
has
Key
(
key
)
:
Promise
<
boolean
>
Parameters
key
:
PossibleKeyType
Returns
Promise
<
boolean
>
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
may
Has
Key
may
Has
Key
(
key
)
:
boolean
Parameters
key
:
PossibleKeyType
Returns
boolean
merge
And
Compact
merge
And
Compact
(
level
?
)
:
Promise
<
void
>
write a worker thread to handle merge and compact with mutex lock
Parameters
level
:
number
= 0
Returns
Promise
<
void
>
ping
ping
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
set
Path
set
Path
(
path
)
:
void
Parameters
path
:
string
Returns
void
stats
stats
(
)
:
Promise
<
{
count
:
number
;
level
:
number
;
ssts
:
{
bloomFilterSize
:
number
;
btreeSize
:
number
;
fileSize
:
number
;
kvCount
:
number
;
}
[]
;
}
[]
>
Returns
Promise
<
{
count
:
number
;
level
:
number
;
ssts
:
{
bloomFilterSize
:
number
;
btreeSize
:
number
;
fileSize
:
number
;
kvCount
:
number
;
}
[]
;
}
[]
>
Static
default
Options
default
Options
(
)
:
ISSTMangerOptions
Returns
ISSTMangerOptions
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#column
#dir
Handle
#interval
#levels
#levels
Mutex
#options
#close
Old
Files
#enable
Interval
clear
close
flush
To
Disk
get
has
Key
init
may
Has
Key
merge
And
Compact
ping
set
Path
stats
default
Options
src
typings
enum.ts
BloomFilterType
ColumnEvent
CompressionFlag
DatabaseMode
EncodingFlag
FileDataType
InMemBufferEvent
SaveMode
ThreadWorkType
WalMethod
interface.ts
IColumnOptions
IDataNodeOptions
IDatabaseOptions
IHeaderData
IInMemBufferEvents
IInMemoryBufferOptions
ILargeSSTFileOptions
IMetadata
ISSTFileOptions
ISSTMangerOptions
ISortAndMergeNode
ITableOptions
IThreadedMergeAndSort
IThreadedReadAll
IWalFileOptions
type.ts
DeepRequired
FileDataTypeMember
HashFunction
HashInputType
PossibleKeyType
TypedArray
availableDataTypeForHash
bool
dataType
f32
f64
float
i16
i32
i64
i8
numDataTypes
signedInt
str
u16
u32
u64
u8
unsignedInt
structs
BitArray.ts
BitArray
Filters.ts
BloomFilter
BufferNode.ts
BufferNode
Cache.ts
Cache
Column.ts
Column
Node.ts
DataNode
Database.ts
Database
InMemBuffer.ts
InMemoryBuffer
Mutex.ts
Mutex
Table.ts
Table
misc
Error.ts
NyaDBError
customHash.ts
hashDiscordIdCharWise
hashDiscordUserIdBigint
hashDiscordUserIdFNV1a
murmurhash3
files
SST.ts
SSTFile
BASE_BYTES
END_DELIMITER
HEADER
KVS_PER_PAGE
METADATA
SST_TABLE_MAGIC_NUMBER
START_DELIMITER
SUPPORTED_VERSION
Wal.ts
WalFile
WAL_END_DELIMITER
WAL_START_DELIMITER
managers
SST.ts
SSTManager
utils
dataType.ts
DataTypeToTypedArray
DataTypeToValue
TypedArrayToValue
ValueToBuffer
ValueToDataType
ValueToTypedArray
get4pointRangeOfDataType
getDataTypeByteLength
getDataTypeFromEnum
getEnumKeyFromDataType
timestampToUint8ArrayLE
checksum.ts
checksum
validateChecksum
sortAndMerge.ts
chunkify
sortAndMerge
array.ts
findLastIndex
bloom.ts
getCellAndHashCount
hash.ts
hashInt
hashu64
mergeOptions.ts
mergeOptions
write a worker thread to handle merge and compact with mutex lock