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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
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
Copyright © 2011–2021 Google. All rights reserved.