public final class Position extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
Position |
clone() |
Long |
getByteOffset()
Position is a byte offset.
|
ConcatPosition |
getConcatPosition()
CloudPosition is a concat position.
|
Boolean |
getEnd()
Position is past all other positions.
|
String |
getKey()
Position is a string key, ordered lexicographically.
|
Long |
getRecordIndex()
Position is a record index.
|
String |
getShufflePosition()
CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding).
|
Position |
set(String fieldName,
Object value) |
Position |
setByteOffset(Long byteOffset)
Position is a byte offset.
|
Position |
setConcatPosition(ConcatPosition concatPosition)
CloudPosition is a concat position.
|
Position |
setEnd(Boolean end)
Position is past all other positions.
|
Position |
setKey(String key)
Position is a string key, ordered lexicographically.
|
Position |
setRecordIndex(Long recordIndex)
Position is a record index.
|
Position |
setShufflePosition(String shufflePosition)
CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Long getByteOffset()
null
for nonepublic Position setByteOffset(Long byteOffset)
byteOffset
- byteOffset or null
for nonepublic ConcatPosition getConcatPosition()
null
for nonepublic Position setConcatPosition(ConcatPosition concatPosition)
concatPosition
- concatPosition or null
for nonepublic Boolean getEnd()
null
for nonepublic Position setEnd(Boolean end)
end
- end or null
for nonepublic String getKey()
null
for nonepublic Position setKey(String key)
key
- key or null
for nonepublic Long getRecordIndex()
null
for nonepublic Position setRecordIndex(Long recordIndex)
recordIndex
- recordIndex or null
for nonepublic String getShufflePosition()
null
for nonepublic Position setShufflePosition(String shufflePosition)
shufflePosition
- shufflePosition or null
for nonepublic Position set(String fieldName, Object value)
set
in class GenericJson
public Position clone()
clone
in class GenericJson