Package com.google.common.geometry
Class S2CellIdVectorCoder
java.lang.Object
com.google.common.geometry.S2CellIdVectorCoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final S2CellIdVectorCoder
An instance of anS2CellIdVectorCoder
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) void
encode
(List<S2CellId> values, OutputStream output) Encodesvalue
tooutput
.
-
Field Details
-
INSTANCE
An instance of anS2CellIdVectorCoder
.
-
-
Constructor Details
-
S2CellIdVectorCoder
S2CellIdVectorCoder()
-
-
Method Details
-
encode
Description copied from interface:S2Coder
Encodesvalue
tooutput
.- Specified by:
encode
in interfaceS2Coder<List<S2CellId>>
- Throws:
IOException
-
decode
Description copied from interface:S2Coder
Decodes a value of typeS2Coder
fromdata
starting atcursor.position
.cursor.position
is updated to the position of the first byte indata
following the encoded value.
-