Class NewFileCache
- java.lang.Object
-
- com.ss.android.ugc.bytex.transformer.cache.FileCache
-
- com.ss.android.ugc.bytex.transformer.cache.DirCache
-
- com.ss.android.ugc.bytex.transformer.cache.NewFileCache
-
- All Implemented Interfaces:
java.io.Serializable
public class NewFileCache extends DirCache
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NewFileCache(TransformContext context, java.lang.String affinity)NewFileCache(java.util.List<FileData> newFiles, java.lang.String affinity, TransformContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(FileData file)booleanequals(java.lang.Object o)java.util.List<FileData>getChangedFiles()inthashCode()protected java.util.List<FileData>resolve(io.reactivex.ObservableEmitter<FileData> emitter)voidskip()-
Methods inherited from class com.ss.android.ugc.bytex.transformer.cache.DirCache
getFile, transformOutput
-
Methods inherited from class com.ss.android.ugc.bytex.transformer.cache.FileCache
containsFileData, forEach, getContent, isHasWritten, output, parallelForEach, stream, stream, transformOutput
-
-
-
-
Constructor Detail
-
NewFileCache
public NewFileCache(TransformContext context, java.lang.String affinity)
-
NewFileCache
public NewFileCache(java.util.List<FileData> newFiles, java.lang.String affinity, TransformContext context)
-
-
Method Detail
-
resolve
protected java.util.List<FileData> resolve(io.reactivex.ObservableEmitter<FileData> emitter) throws java.io.IOException
-
skip
public void skip() throws java.io.IOException
-
getChangedFiles
public java.util.List<FileData> getChangedFiles()
- Overrides:
getChangedFilesin classFileCache
-
addFile
public void addFile(FileData file)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-