Interface RepositoryRecord
public interface RepositoryRecord
Represents an abstraction of a FlowFile that can be used to track changing
state of a FlowFile so that transactionality with repositories can exist
-
Method Summary
-
Method Details
-
getDestination
FlowFileQueue getDestination()- Returns:
- FlowFileQueue to which the FlowFile is to be transferred
-
getOriginalQueue
FlowFileQueue getOriginalQueue()- Returns:
- FlowFileQueue from which the record was pulled
-
getType
RepositoryRecordType getType()- Returns:
- type of update that this record encapsulates
-
getCurrentClaim
ContentClaim getCurrentClaim()- Returns:
- current ContentClaim for the FlowFile
-
getOriginalClaim
ContentClaim getOriginalClaim()- Returns:
- original ContentClaim for the FlowFile before any changes were made
-
getCurrentClaimOffset
long getCurrentClaimOffset()- Returns:
- byte offset into the Content Claim where this FlowFile's content begins
-
getCurrent
FlowFileRecord getCurrent()- Returns:
- FlowFile being encapsulated by this record
-
isAttributesChanged
boolean isAttributesChanged()- Returns:
- Whether or not the FlowFile's attributes have changed since the FlowFile was pulled from its queue (or created)
-
isMarkedForAbort
boolean isMarkedForAbort()- Returns:
trueif the FlowFile is not viable and should be aborted (e.g., the content of the FlowFile cannot be found)
-
getSwapLocation
String getSwapLocation()- Returns:
- If the FlowFile is swapped out of the Java heap space, provides the
location of the swap file, or
nullif the FlowFile is not swapped out
-
getTransientClaims
List<ContentClaim> getTransientClaims()- Returns:
- a List of Content Claims that are "transient," meaning that they existed only for the life of the Process Session in which they were created and should not be persisted.
-
isContentModified
boolean isContentModified()- Returns:
- true if the content of the FlowFile has been modified
-