Package com.google.common.geometry
Class S2CellIdVectorCoder
java.lang.Object
com.google.common.geometry.S2CellIdVectorCoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final S2CellIdVectorCoderAn instance of anS2CellIdVectorCoder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) voidencode(List<S2CellId> values, OutputStream output) Encodesvaluetooutput.
-
Field Details
-
INSTANCE
An instance of anS2CellIdVectorCoder.
-
-
Constructor Details
-
S2CellIdVectorCoder
S2CellIdVectorCoder()
-
-
Method Details
-
encode
Description copied from interface:S2CoderEncodesvaluetooutput.- Specified by:
encodein interfaceS2Coder<List<S2CellId>>- Throws:
IOException
-
decode
Description copied from interface:S2CoderDecodes a value of typeS2Coderfromdatastarting atcursor.position.cursor.positionis updated to the position of the first byte indatafollowing the encoded value.
-