Package io.datarouter.client.redis.node
Class RedisBlobNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
java.lang.Object
io.datarouter.storage.node.BaseNode<PK,D,F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<PK,D,F>
io.datarouter.client.redis.node.RedisBlobNode<PK,D,F>
- All Implemented Interfaces:
io.datarouter.storage.node.Node<PK,D,F>,io.datarouter.storage.node.op.NodeOps<PK,D>,io.datarouter.storage.node.op.raw.BlobStorage<PK,D>,io.datarouter.storage.node.op.raw.BlobStorage.BlobStorageNode<PK,D,F>,io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode<PK,D,F>,io.datarouter.storage.node.op.raw.read.BlobStorageReader<PK,D>,io.datarouter.storage.node.op.raw.write.BlobStorageWriter<PK,D>,io.datarouter.storage.node.type.physical.PhysicalNode<PK,D,F>,Comparable<io.datarouter.storage.node.Node<PK,D,F>>
public class RedisBlobNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
extends io.datarouter.storage.node.type.physical.base.BasePhysicalNode<PK,D,F>
implements io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode<PK,D,F>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.BlobStorage
io.datarouter.storage.node.op.raw.BlobStorage.BlobStorageNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>, io.datarouter.storage.node.op.raw.BlobStorage.PhysicalBlobStorageNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>> -
Constructor Summary
Constructors Constructor Description RedisBlobNode(io.datarouter.storage.node.NodeParams<PK,D,F> params, io.datarouter.storage.client.ClientType<?,?> clientType, RedisClientManager redisClientManager) -
Method Summary
Modifier and Type Method Description voiddelete(io.datarouter.storage.file.PathbeanKey key)voiddeleteAll(io.datarouter.storage.util.Subpath subpath)booleanexists(io.datarouter.storage.file.PathbeanKey key)StringgetBucket()io.datarouter.storage.util.SubpathgetRootPath()Optional<Long>length(io.datarouter.storage.file.PathbeanKey key)byte[]read(io.datarouter.storage.file.PathbeanKey key)byte[]read(io.datarouter.storage.file.PathbeanKey key, long offset, int length)io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>>scanKeysPaged(io.datarouter.storage.util.Subpath subpath)io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>>scanPaged(io.datarouter.storage.util.Subpath subpath)voidwrite(io.datarouter.storage.file.PathbeanKey key, byte[] value)voidwrite(io.datarouter.storage.file.PathbeanKey key, io.datarouter.scanner.Scanner<byte[]> chunks)voidwrite(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream)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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.datarouter.storage.node.op.raw.read.BlobStorageReader
scan, scanChunks, scanKeys
-
Constructor Details
-
RedisBlobNode
public RedisBlobNode(io.datarouter.storage.node.NodeParams<PK,D,F> params, io.datarouter.storage.client.ClientType<?,?> clientType, RedisClientManager redisClientManager)
-
-
Method Details
-
getBucket
-
getRootPath
public io.datarouter.storage.util.Subpath getRootPath() -
exists
public boolean exists(io.datarouter.storage.file.PathbeanKey key) -
length
-
read
public byte[] read(io.datarouter.storage.file.PathbeanKey key) -
read
public byte[] read(io.datarouter.storage.file.PathbeanKey key, long offset, int length) -
scanKeysPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>> scanKeysPaged(io.datarouter.storage.util.Subpath subpath) -
scanPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>> scanPaged(io.datarouter.storage.util.Subpath subpath) -
write
public void write(io.datarouter.storage.file.PathbeanKey key, byte[] value) -
write
public void write(io.datarouter.storage.file.PathbeanKey key, io.datarouter.scanner.Scanner<byte[]> chunks) -
write
-
delete
public void delete(io.datarouter.storage.file.PathbeanKey key) -
deleteAll
public void deleteAll(io.datarouter.storage.util.Subpath subpath)
-