V - type of the values inside the ISetpublic class SetKeyValueSource<V> extends KeyValueSource<String,V> implements IdentifiedDataSerializable
KeyValueSource implementation is used in
KeyValueSource.fromSet(com.hazelcast.core.ISet) to generate a default
implementation based on a Hazelcast ISet.| Constructor and Description |
|---|
SetKeyValueSource() |
SetKeyValueSource(String setName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map.Entry<String,V> |
element()
Returns the current index' element
|
int |
getFactoryId() |
int |
getId() |
boolean |
hasNext()
Called to request if at least one more key-value pair is available from this
data source.
|
String |
key()
Returns the current index' key for
KeyPredicate analysis. |
boolean |
open(NodeEngine nodeEngine)
This method is called before accessing the key-value pairs of this KeyValueSource
|
void |
readData(ObjectDataInput in) |
boolean |
reset()
This method need to reset all internal state as it would be a new instance at all.
|
void |
writeData(ObjectDataOutput out) |
fromList, fromMap, fromMultiMap, fromSet, getAllKeys, getAllKeys0, isAllKeysSupportedpublic SetKeyValueSource()
public SetKeyValueSource(String setName)
public boolean open(NodeEngine nodeEngine)
KeyValueSourceopen in class KeyValueSource<String,V>nodeEngine - nodeEngine of this cluster nodepublic boolean hasNext()
KeyValueSourcehasNext in class KeyValueSource<String,V>public String key()
KeyValueSourceKeyPredicate analysis. This is called
to prevent a possible deserialization of unneeded values because the key is not
interesting for the running mapreduce algorithm.key in class KeyValueSource<String,V>public Map.Entry<String,V> element()
KeyValueSourceelement in class KeyValueSource<String,V>public boolean reset()
KeyValueSourcePartitionIdAware.KeyValueSource.reset(), KeyValueSource.open(com.hazelcast.spi.NodeEngine)
and Closeable.close() is called multiple times with the other methods between open(...) and close().reset in class KeyValueSource<String,V>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void writeData(ObjectDataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(ObjectDataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic int getFactoryId()
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
getId in interface IdentifiedDataSerializableCopyright © 2021 Hazelcast, Inc.. All rights reserved.