Interface PartFileInfo<BucketID>
-
- All Known Subinterfaces:
InProgressFileWriter<IN,BucketID>
- All Known Implementing Classes:
AbstractPartFileWriter,OutputStreamBasedPartFileWriter,RowWisePartWriter
@PublicEvolving public interface PartFileInfo<BucketID>An interface exposing the information concerning the current (open) part file that is necessary to theRollingPolicyin order to determine if it should roll the part file or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BucketIDgetBucketId()longgetCreationTime()longgetLastUpdateTime()longgetSize()
-
-
-
Method Detail
-
getBucketId
BucketID getBucketId()
- Returns:
- The bucket identifier of the current buffer, as returned by the
BucketAssigner.getBucketId(Object, BucketAssigner.Context).
-
getCreationTime
long getCreationTime()
- Returns:
- The creation time (in ms) of the currently open part file.
-
getSize
long getSize() throws IOException- Returns:
- The size of the currently open part file.
- Throws:
IOException
-
getLastUpdateTime
long getLastUpdateTime()
- Returns:
- The last time (in ms) the currently open part file was written to.
-
-