public OakFileDataStore() { //TODO FIXME Temporary workaround for OAK-1666. Override the default //synchronized map with a Noop. This should be removed when fix //for JCR-3764 is part of release. inUse = new NoOpMap<DataIdentifier, WeakReference<DataIdentifier>>(); // Set default min record length overiding the 100 set for FileDataStore setMinRecordLength(DEFAULT_MIN_RECORD_LENGTH); }
public OakFileDataStore() { //TODO FIXME Temporary workaround for OAK-1666. Override the default //synchronized map with a Noop. This should be removed when fix //for JCR-3764 is part of release. inUse = new NoOpMap<DataIdentifier, WeakReference<DataIdentifier>>(); // Set default min record length overiding the 100 set for FileDataStore setMinRecordLength(DEFAULT_MIN_RECORD_LENGTH); }
public OakFileDataStore() { //TODO FIXME Temporary workaround for OAK-1666. Override the default //synchronized map with a Noop. This should be removed when fix //for JCR-3764 is part of release. inUse = new NoOpMap<DataIdentifier, WeakReference<DataIdentifier>>(); // Set default min record length overiding the 100 set for FileDataStore setMinRecordLength(DEFAULT_MIN_RECORD_LENGTH); }
private static BlobStore createBlobStore(){ File file = getTestDir("datastore"); OakFileDataStore fds = new OakFileDataStore(); byte[] key = new byte[256]; new Random().nextBytes(key); fds.setReferenceKeyEncoded(BaseEncoding.base64().encode(key)); fds.setMinRecordLength(4092); fds.init(file.getAbsolutePath()); return new DataStoreBlobStore(fds); }
public static FileDataStore createFDS(File root, int minRecordLength) { OakFileDataStore fds = new OakFileDataStore(); fds.setPath(root.getAbsolutePath()); fds.setMinRecordLength(minRecordLength); fds.init(null); return fds; }
ds.setMinRecordLength(10); ds.init(fileDataStoreRoot.getRoot().getAbsolutePath()); DataStoreBlobStore dsbs = new DataStoreBlobStore(ds);