Class S2TaggedShapeCoder

  • All Implemented Interfaces:
    S2Coder<S2Shape>

    @GwtIncompatible("S2LaxPolylineShape and S2LaxPolygonShape")
    public class S2TaggedShapeCoder
    extends java.lang.Object
    implements S2Coder<S2Shape>
    An encoder/decoder of tagged S2Shapes.
    • Field Detail

      • FAST_POLYLINE_SHAPE_CODER

        private static final S2Coder<S2Polyline> FAST_POLYLINE_SHAPE_CODER
      • POLYGON_SHAPE_CLASSES

        private static final com.google.common.collect.ImmutableList<java.lang.Class<? extends S2Polygon.Shape>> POLYGON_SHAPE_CLASSES
      • POINT_SHAPE_CLASSES

        private static final com.google.common.collect.ImmutableList<java.lang.Class<? extends S2Point.Shape>> POINT_SHAPE_CLASSES
      • LAX_POLYLINE_SHAPE_CLASSES

        private static final com.google.common.collect.ImmutableList<java.lang.Class<? extends S2LaxPolylineShape>> LAX_POLYLINE_SHAPE_CLASSES
      • LAX_POLYGON_SHAPE_CLASSES

        private static final com.google.common.collect.ImmutableList<java.lang.Class<? extends S2LaxPolygonShape>> LAX_POLYGON_SHAPE_CLASSES
      • FAST

        public static final S2TaggedShapeCoder FAST
        An instance of a S2TaggedShapeCoder which encodes/decodes S2Shapes in the FAST encoding format. The FAST format is optimized for fast encoding/decoding.
      • COMPACT

        public static final S2TaggedShapeCoder COMPACT
        An instance of a S2TaggedShapeCoder which encodes/decodes S2Shapes in the COMPACT encoding format. The COMPACT format is optimized for disk usage and memory footprint.
      • classToTypeTag

        private final java.util.IdentityHashMap<java.lang.Class<? extends S2Shape>,​java.lang.Integer> classToTypeTag
      • typeTagToCoder

        private final java.util.Map<java.lang.Integer,​S2Coder<? extends S2Shape>> typeTagToCoder
    • Constructor Detail

      • S2TaggedShapeCoder

        private S2TaggedShapeCoder​(java.util.IdentityHashMap<java.lang.Class<? extends S2Shape>,​java.lang.Integer> classToTypeTag,
                                   java.util.Map<java.lang.Integer,​S2Coder<? extends S2Shape>> typeTagToCoder)