Package cz.o2.proxima.direct.io.hadoop
Class HadoopDataAccessor
- java.lang.Object
-
- cz.o2.proxima.direct.io.hadoop.HadoopDataAccessor
-
- All Implemented Interfaces:
AbstractDataAccessor,DataAccessor,java.io.Serializable
public class HadoopDataAccessor extends java.lang.Object implements DataAccessor
DataAccessorfor Hadoop Distributed FileSystem.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHADOOP_ALLOWED_LATENESSstatic java.lang.StringHADOOP_BATCH_PROCESS_SIZE_MINstatic java.lang.StringHADOOP_ROLL_INTERVALstatic java.lang.StringTMP_FS
-
Constructor Summary
Constructors Constructor Description HadoopDataAccessor(AttributeFamilyDescriptor family)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Optional<BatchLogReader>getBatchLogReader(Context context)Retrieve batch log reader.java.util.Map<java.lang.String,java.lang.Object>getCfg()java.net.URIgetUriRemapped()java.util.Optional<AttributeWriterBase>getWriter(Context context)Retrieve writer (if applicable).inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.storage.internal.AbstractDataAccessor
getUri
-
Methods inherited from interface cz.o2.proxima.direct.core.DataAccessor
getCachedView, getCommitLogReader, getRandomAccessReader, isAcceptable
-
-
-
-
Field Detail
-
HADOOP_ROLL_INTERVAL
public static final java.lang.String HADOOP_ROLL_INTERVAL
- See Also:
- Constant Field Values
-
HADOOP_BATCH_PROCESS_SIZE_MIN
public static final java.lang.String HADOOP_BATCH_PROCESS_SIZE_MIN
- See Also:
- Constant Field Values
-
HADOOP_ALLOWED_LATENESS
public static final java.lang.String HADOOP_ALLOWED_LATENESS
- See Also:
- Constant Field Values
-
TMP_FS
public static final java.lang.String TMP_FS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HadoopDataAccessor
public HadoopDataAccessor(AttributeFamilyDescriptor family)
-
-
Method Detail
-
getCfg
public java.util.Map<java.lang.String,java.lang.Object> getCfg()
-
getWriter
public java.util.Optional<AttributeWriterBase> getWriter(Context context)
Description copied from interface:DataAccessorRetrieve writer (if applicable).- Specified by:
getWriterin interfaceDataAccessor- Parameters:
context- the serializable context provided by repository- Returns:
- optional
AttributeWriterBaseof this accessor
-
getBatchLogReader
public java.util.Optional<BatchLogReader> getBatchLogReader(Context context)
Description copied from interface:DataAccessorRetrieve batch log reader.- Specified by:
getBatchLogReaderin interfaceDataAccessor- Parameters:
context- serializable context provided by repository- Returns:
- optional
BatchLogReaderof this accessor
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getUriRemapped
public java.net.URI getUriRemapped()
-
-