Package com.yahoo.document
Class DocumentOperation
- java.lang.Object
-
- com.yahoo.document.DocumentOperation
-
- Direct Known Subclasses:
DocumentGet
,DocumentPut
,DocumentRemove
,DocumentUpdate
public abstract class DocumentOperation extends java.lang.Object
Base class for "document operations". These include "put" (DocumentPut), "update" (DocumentUpdate), "remove" (DocumentRemove) and "get" (DocumentGet). The latter only for internal use. Historically, put operations were represented by the Document class alone, but since it doesn't make much sense to put a *test and set* condition in Document, a more uniform interface for document operations was needed.- Author:
- Vegard Sjonfjell
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DocumentOperation()
protected
DocumentOperation(DocumentOperation other)
Copy constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TestAndSetCondition
getCondition()
abstract DocumentId
getId()
void
setCondition(TestAndSetCondition condition)
-
-
-
Constructor Detail
-
DocumentOperation
protected DocumentOperation()
-
DocumentOperation
protected DocumentOperation(DocumentOperation other)
Copy constructor- Parameters:
other
- DocumentOperation to copy
-
-
Method Detail
-
getId
public abstract DocumentId getId()
-
setCondition
public void setCondition(TestAndSetCondition condition)
-
getCondition
public TestAndSetCondition getCondition()
-
-