Class MemcachedBlobNode
java.lang.Object
io.datarouter.storage.node.BaseNode<PK,D,F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder>
io.datarouter.client.memcached.node.MemcachedBlobNode
- All Implemented Interfaces:
io.datarouter.storage.node.Node<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder>,io.datarouter.storage.node.op.NodeOps<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean>,io.datarouter.storage.node.op.raw.BlobStorage,io.datarouter.storage.node.op.raw.BlobStorage.BlobStorageNode,io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode,io.datarouter.storage.node.op.raw.read.BlobStorageReader,io.datarouter.storage.node.op.raw.write.BlobStorageWriter,io.datarouter.storage.node.type.physical.PhysicalNode<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder>,Comparable<io.datarouter.storage.node.Node<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder>>
public class MemcachedBlobNode
extends io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder>
implements io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.BlobStorage
io.datarouter.storage.node.op.raw.BlobStorage.BlobStorageNode, io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode -
Constructor Summary
Constructors Constructor Description MemcachedBlobNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, MemcachedBlobCodec blobCodec, Supplier<DatarouterMemcachedClient> lazyClient) -
Method Summary
Modifier and Type Method Description voiddelete(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)voiddeleteAll(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)booleanexists(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)StringgetBucket()io.datarouter.storage.util.SubpathgetRootPath()Optional<Long>length(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)byte[]read(io.datarouter.storage.file.PathbeanKey key, long offset, int length, io.datarouter.storage.config.Config config)byte[]read(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)Map<io.datarouter.storage.file.PathbeanKey,byte[]>read(List<io.datarouter.storage.file.PathbeanKey> keys, io.datarouter.storage.config.Config config)io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>>scanKeysPaged(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>>scanPaged(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)voidwrite(io.datarouter.storage.file.PathbeanKey key, byte[] value, io.datarouter.storage.config.Config config)voidwrite(io.datarouter.storage.file.PathbeanKey key, io.datarouter.scanner.Scanner<byte[]> chunks, io.datarouter.storage.config.Config config)voidwrite(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream, io.datarouter.storage.config.Config config)Methods inherited from class io.datarouter.storage.node.type.physical.base.BasePhysicalNode
getChildNodes, getClientId, getClientIds, getClientType, getFieldInfo, getName, getPhysicalNodes, getPhysicalNodesForClient, toString, usesClientMethods inherited from class io.datarouter.storage.node.BaseNode
compareToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.datarouter.storage.node.op.raw.read.BlobStorageReader
exists, length, read, read, read, scan, scanChunks, scanKeys, scanKeysPaged, scanPagedMethods inherited from interface io.datarouter.storage.node.op.raw.write.BlobStorageWriter
delete, deleteAll, write, write, writeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface io.datarouter.storage.node.Node
getChildNodes, getClientIds, getName, getPhysicalNodes, getPhysicalNodesForClient, usesClientMethods inherited from interface io.datarouter.storage.node.type.physical.PhysicalNode
getClientId, getClientType, getFieldInfo
-
Constructor Details
-
MemcachedBlobNode
public MemcachedBlobNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.file.PathbeanKey,io.datarouter.storage.file.Pathbean,io.datarouter.storage.file.Pathbean.PathbeanFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, MemcachedBlobCodec blobCodec, Supplier<DatarouterMemcachedClient> lazyClient)
-
-
Method Details
-
getBucket
- Specified by:
getBucketin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
getRootPath
public io.datarouter.storage.util.Subpath getRootPath()- Specified by:
getRootPathin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
exists
public boolean exists(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)- Specified by:
existsin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
length
public Optional<Long> length(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)- Specified by:
lengthin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
read
public byte[] read(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)- Specified by:
readin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
read
public Map<io.datarouter.storage.file.PathbeanKey,byte[]> read(List<io.datarouter.storage.file.PathbeanKey> keys, io.datarouter.storage.config.Config config)- Specified by:
readin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
read
public byte[] read(io.datarouter.storage.file.PathbeanKey key, long offset, int length, io.datarouter.storage.config.Config config)- Specified by:
readin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
scanKeysPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>> scanKeysPaged(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)- Specified by:
scanKeysPagedin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
scanPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>> scanPaged(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)- Specified by:
scanPagedin interfaceio.datarouter.storage.node.op.raw.read.BlobStorageReader
-
write
public void write(io.datarouter.storage.file.PathbeanKey key, byte[] value, io.datarouter.storage.config.Config config)- Specified by:
writein interfaceio.datarouter.storage.node.op.raw.write.BlobStorageWriter
-
write
public void write(io.datarouter.storage.file.PathbeanKey key, io.datarouter.scanner.Scanner<byte[]> chunks, io.datarouter.storage.config.Config config)- Specified by:
writein interfaceio.datarouter.storage.node.op.raw.write.BlobStorageWriter
-
write
public void write(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream, io.datarouter.storage.config.Config config)- Specified by:
writein interfaceio.datarouter.storage.node.op.raw.write.BlobStorageWriter
-
delete
public void delete(io.datarouter.storage.file.PathbeanKey key, io.datarouter.storage.config.Config config)- Specified by:
deletein interfaceio.datarouter.storage.node.op.raw.write.BlobStorageWriter
-
deleteAll
public void deleteAll(io.datarouter.storage.util.Subpath subpath, io.datarouter.storage.config.Config config)- Specified by:
deleteAllin interfaceio.datarouter.storage.node.op.raw.write.BlobStorageWriter
-