| Constructor and Description |
|---|
SourceState()
Construct a SourceState with an empty map.
|
SourceState(Map<String,byte[]> stateMap)
Construct a SourceState using a Map of String keys and byte[] values.
|
SourceState(SourceState state)
Construct a SourceState by making a copy of another SourceState.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearState()
Clear the internal state.
|
boolean |
equals(Object o) |
Map<String,byte[]> |
getState()
Get the full state of the Source.
|
byte[] |
getState(String state)
Get the byte[] associated with a key.
|
int |
hashCode() |
void |
setState(Map<String,byte[]> map)
Add a Map to the state of the source.
|
void |
setState(SourceState state)
Clear the internal state and set it to values from provided State.
|
void |
setState(String state,
byte[] value)
Set a single key state given the key and value.
|
public SourceState(Map<String,byte[]> stateMap)
stateMap - Map of string keys and byte[] valuespublic SourceState()
public SourceState(SourceState state)
state - SourceStatepublic byte[] getState(String state)
state - statepublic void setState(String state, byte[] value)
state - keyvalue - valuepublic Map<String,byte[]> getState()
Map of string keys and byte[] valuespublic void setState(Map<String,byte[]> map)
map - Map of string keys and byte[] valuespublic void setState(SourceState state)
state - state to be copiedpublic void clearState()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.