Skip to content

HashedNTupleLayoutConfig

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:8

Object directories named by their id’s digest, nested under pieces of it.

optional digestAlgorithm?: FixityAlgorithm

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:12

Algorithm used to hash the id. Defaults to sha256.


extensionName: "0004-hashed-n-tuple-storage-layout"

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:10

Name of the layout’s OCFL extension.


optional numberOfTuples?: number

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:16

Number of directory levels. Defaults to 3.


optional shortObjectRoot?: boolean

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:18

Name the object directory with only the rest of the digest. Defaults to false.


optional tupleSize?: number

Defined in: src/layouts/0004-hashed-n-tuple-storage-layout.ts:14

Characters of the digest in each directory level. Defaults to 3.