Package cz.o2.proxima.direct.blob
Class BlobStorageAccessor
- java.lang.Object
-
- cz.o2.proxima.storage.AbstractStorage
-
- cz.o2.proxima.storage.AbstractStorage.SerializableAbstractStorage
-
- cz.o2.proxima.direct.blob.BlobStorageAccessor
-
- All Implemented Interfaces:
DataAccessor,cz.o2.proxima.storage.internal.AbstractDataAccessor,java.io.Serializable
@Internal public abstract class BlobStorageAccessor extends cz.o2.proxima.storage.AbstractStorage.SerializableAbstractStorage implements DataAccessor
ADataAccessorfor blob storages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLOWED_LATENESS_MSMaximal allowed lateness to wait before segment is rolled.(package private) java.util.Map<java.lang.String,java.lang.Object>cfg(package private) cz.o2.proxima.repository.AttributeFamilyDescriptorfamilyDescriptorstatic java.lang.StringLOG_ROLL_INTERVALHow often to roll the blob in milliseconds.static java.lang.StringPARTITION_MAX_BLOBSMaximal number of blobs to be put in single partition.static java.lang.StringPARTITION_MAX_TIME_SPAN_MSMaximal amount of time (in milliseconds) a partition containing multiple blobs can span.static java.lang.StringPARTITION_SIZEMinimal size of partition in bytes.private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlobStorageAccessor(cz.o2.proxima.repository.AttributeFamilyDescriptor family)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetAllowedLateness()java.util.Map<java.lang.String,java.lang.Object>getCfg()(package private) FileFormatgetFileFormat()NamingConventiongetNamingConvention()intgetPartitionMaxNumBlobs()longgetPartitionMaxTimeSpanMs()longgetPartitionMinSize()longgetRollPeriod()abstract FileSystemgetTargetFileSystem()java.io.FilegetTmpDir()(package private) voidsetCfg(java.lang.String key, java.lang.Object value)-
Methods inherited from class cz.o2.proxima.storage.AbstractStorage
equals, getEntityDescriptor, getUri, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.direct.core.DataAccessor
getBatchLogReader, getCachedView, getCommitLogReader, getRandomAccessReader, getWriter, isAcceptable
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
LOG_ROLL_INTERVAL
public static final java.lang.String LOG_ROLL_INTERVAL
How often to roll the blob in milliseconds.- See Also:
- Constant Field Values
-
ALLOWED_LATENESS_MS
public static final java.lang.String ALLOWED_LATENESS_MS
Maximal allowed lateness to wait before segment is rolled. Late data are put to separate blob and flushed periodically with on time data.- See Also:
- Constant Field Values
-
PARTITION_SIZE
public static final java.lang.String PARTITION_SIZE
Minimal size of partition in bytes.- See Also:
- Constant Field Values
-
PARTITION_MAX_BLOBS
public static final java.lang.String PARTITION_MAX_BLOBS
Maximal number of blobs to be put in single partition.- See Also:
- Constant Field Values
-
PARTITION_MAX_TIME_SPAN_MS
public static final java.lang.String PARTITION_MAX_TIME_SPAN_MS
Maximal amount of time (in milliseconds) a partition containing multiple blobs can span.- See Also:
- Constant Field Values
-
familyDescriptor
final cz.o2.proxima.repository.AttributeFamilyDescriptor familyDescriptor
-
cfg
final java.util.Map<java.lang.String,java.lang.Object> cfg
-
-
Method Detail
-
getCfg
public java.util.Map<java.lang.String,java.lang.Object> getCfg()
-
setCfg
void setCfg(java.lang.String key, java.lang.Object value)
-
getTargetFileSystem
public abstract FileSystem getTargetFileSystem()
-
getFileFormat
FileFormat getFileFormat()
-
getNamingConvention
public NamingConvention getNamingConvention()
-
getTmpDir
public java.io.File getTmpDir()
-
getRollPeriod
public long getRollPeriod()
-
getAllowedLateness
public long getAllowedLateness()
-
getPartitionMinSize
public long getPartitionMinSize()
-
getPartitionMaxNumBlobs
public int getPartitionMaxNumBlobs()
-
getPartitionMaxTimeSpanMs
public long getPartitionMaxTimeSpanMs()
-
-