Record Class BulkOperations.BulkPutResult<K>
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.bulk.BulkOperations.BulkPutResult<K>
- Type Parameters:
K- key type | 键类型- Record Components:
inserted- keys that were inserted | 插入的键skipped- keys that were skipped | 跳过的键
- Enclosing class:
BulkOperations<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionBulkPutResult(Set<K> inserted, Set<K> skipped) Creates an instance of aBulkPutResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inserted()Returns the value of theinsertedrecord component.intReturns the inserted count | 返回插入数skipped()Returns the value of theskippedrecord component.intReturns the skipped count | 返回跳过数final StringtoString()Returns a string representation of this record class.intReturns the total count | 返回总数
-
Constructor Details
-
BulkPutResult
-
-
Method Details
-
insertedCount
public int insertedCount()Returns the inserted count | 返回插入数- Returns:
- inserted count | 插入数
-
skippedCount
public int skippedCount()Returns the skipped count | 返回跳过数- Returns:
- skipped count | 跳过数
-
totalCount
public int totalCount()Returns the total count | 返回总数- Returns:
- total count | 总数
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
inserted
-
skipped
-