Documentation ¶
Index ¶
- Constants
- Variables
- func CompareInt64s(a, b int64) algorithms.SearchResult
- func IsTagCollectionKey1BytesLargerThanKey2(t1, t2 []byte) bool
- func VisualiseDBHandleFunc(db *MapmakerDBConn) http.HandlerFunc
- type BlockData
- type BlockMetadata
- func (*BlockMetadata) Descriptor() ([]byte, []int)
- func (this *BlockMetadata) Equal(that interface{}) bool
- func (m *BlockMetadata) GetBlockSize() int64
- func (m *BlockMetadata) GetLastItemInBlockValue() []byte
- func (m *BlockMetadata) GetStartOffsetFromStartOfSectionData() int64
- func (this *BlockMetadata) GoString() string
- func (m *BlockMetadata) Marshal() (dAtA []byte, err error)
- func (m *BlockMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockMetadata) ProtoMessage()
- func (m *BlockMetadata) Reset()
- func (m *BlockMetadata) Size() (n int)
- func (this *BlockMetadata) String() string
- func (m *BlockMetadata) Unmarshal(dAtA []byte) error
- func (m *BlockMetadata) XXX_DiscardUnknown()
- func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockMetadata) XXX_Merge(src proto.Message)
- func (m *BlockMetadata) XXX_Size() int
- func (m *BlockMetadata) XXX_Unmarshal(b []byte) error
- type Collections
- type ComparisonResult
- type FileHandlerPool
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (this *Header) Equal(that interface{}) bool
- func (m *Header) GetDatasetInfo() *ownmap.DatasetInfo
- func (m *Header) GetNodesSectionMetadata() *SectionMetadata
- func (m *Header) GetRelationsSectionMetadata() *SectionMetadata
- func (m *Header) GetTagIndexSectionMetadata() *SectionMetadata
- func (m *Header) GetVersion() uint64
- func (m *Header) GetWaysSectionMetadata() *SectionMetadata
- func (this *Header) GoString() string
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (this *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type ImportOptions
- type Importer
- func (importer *Importer) Commit() (ownmapdal.DataSourceConn, errorsx.Error)
- func (importer *Importer) GetNodeByID(id int64) (*ownmap.OSMNode, error)
- func (importer *Importer) GetRelationByID(id int64) (*ownmap.OSMRelation, error)
- func (importer *Importer) GetWayByID(id int64) (*ownmap.OSMWay, error)
- func (importer *Importer) ImportNode(node *ownmap.OSMNode) errorsx.Error
- func (importer *Importer) ImportRelation(relation *ownmap.OSMRelation) errorsx.Error
- func (importer *Importer) ImportWay(ownmapWay *ownmap.OSMWay) errorsx.Error
- func (importer *Importer) Rollback() errorsx.Error
- type KeyType
- type MapmakerDBConn
- func (db *MapmakerDBConn) DatasetInfo() (*ownmap.DatasetInfo, errorsx.Error)
- func (db *MapmakerDBConn) GetInBounds(ctx context.Context, bounds osm.Bounds, filter *ownmapdal.GetInBoundsFilter) (ownmapdal.TagNodeMap, ownmapdal.TagWayMap, ownmapdal.TagRelationMap, ...)
- func (db *MapmakerDBConn) Name() string
- type NodesBlockData
- func (*NodesBlockData) Descriptor() ([]byte, []int)
- func (this *NodesBlockData) Equal(that interface{}) bool
- func (m *NodesBlockData) GetNodes() []*ownmap.OSMNode
- func (this *NodesBlockData) GoString() string
- func (m *NodesBlockData) Marshal() (dAtA []byte, err error)
- func (m *NodesBlockData) MarshalTo(dAtA []byte) (int, error)
- func (m *NodesBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodesBlockData) ProtoMessage()
- func (m *NodesBlockData) Reset()
- func (m *NodesBlockData) Size() (n int)
- func (this *NodesBlockData) String() string
- func (m *NodesBlockData) Unmarshal(dAtA []byte) error
- func (m *NodesBlockData) XXX_DiscardUnknown()
- func (m *NodesBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodesBlockData) XXX_Merge(src proto.Message)
- func (m *NodesBlockData) XXX_Size() int
- func (m *NodesBlockData) XXX_Unmarshal(b []byte) error
- type NodesFromDiskBlockData
- type OpenFileFunc
- type RelationsBlockData
- func (*RelationsBlockData) Descriptor() ([]byte, []int)
- func (this *RelationsBlockData) Equal(that interface{}) bool
- func (m *RelationsBlockData) GetRelations() []*ownmap.OSMRelation
- func (this *RelationsBlockData) GoString() string
- func (m *RelationsBlockData) Marshal() (dAtA []byte, err error)
- func (m *RelationsBlockData) MarshalTo(dAtA []byte) (int, error)
- func (m *RelationsBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelationsBlockData) ProtoMessage()
- func (m *RelationsBlockData) Reset()
- func (m *RelationsBlockData) Size() (n int)
- func (this *RelationsBlockData) String() string
- func (m *RelationsBlockData) Unmarshal(dAtA []byte) error
- func (m *RelationsBlockData) XXX_DiscardUnknown()
- func (m *RelationsBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelationsBlockData) XXX_Merge(src proto.Message)
- func (m *RelationsBlockData) XXX_Size() int
- func (m *RelationsBlockData) XXX_Unmarshal(b []byte) error
- type RelationsFromDiskBlockData
- type SectionMetadata
- func (*SectionMetadata) Descriptor() ([]byte, []int)
- func (this *SectionMetadata) Equal(that interface{}) bool
- func (m *SectionMetadata) GetBlockMetadatas() []*BlockMetadata
- func (m *SectionMetadata) GetTotalSize() uint64
- func (this *SectionMetadata) GoString() string
- func (m *SectionMetadata) Marshal() (dAtA []byte, err error)
- func (m *SectionMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *SectionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SectionMetadata) ProtoMessage()
- func (m *SectionMetadata) Reset()
- func (m *SectionMetadata) Size() (n int)
- func (this *SectionMetadata) String() string
- func (m *SectionMetadata) Unmarshal(dAtA []byte) error
- func (m *SectionMetadata) XXX_DiscardUnknown()
- func (m *SectionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SectionMetadata) XXX_Merge(src proto.Message)
- func (m *SectionMetadata) XXX_Size() int
- func (m *SectionMetadata) XXX_Unmarshal(b []byte) error
- type SectionType
- type TagIndexBlockData
- func (*TagIndexBlockData) Descriptor() ([]byte, []int)
- func (this *TagIndexBlockData) Equal(that interface{}) bool
- func (m *TagIndexBlockData) GetTagIndexRecords() []*TagIndexRecord
- func (this *TagIndexBlockData) GoString() string
- func (m *TagIndexBlockData) Marshal() (dAtA []byte, err error)
- func (m *TagIndexBlockData) MarshalTo(dAtA []byte) (int, error)
- func (m *TagIndexBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TagIndexBlockData) ProtoMessage()
- func (m *TagIndexBlockData) Reset()
- func (m *TagIndexBlockData) Size() (n int)
- func (this *TagIndexBlockData) String() string
- func (m *TagIndexBlockData) Unmarshal(dAtA []byte) error
- func (m *TagIndexBlockData) XXX_DiscardUnknown()
- func (m *TagIndexBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagIndexBlockData) XXX_Merge(src proto.Message)
- func (m *TagIndexBlockData) XXX_Size() int
- func (m *TagIndexBlockData) XXX_Unmarshal(b []byte) error
- type TagIndexMap
- type TagIndexRecord
- func (*TagIndexRecord) Descriptor() ([]byte, []int)
- func (this *TagIndexRecord) Equal(that interface{}) bool
- func (m *TagIndexRecord) GetIndexKey() []byte
- func (m *TagIndexRecord) GetItemIDs() []int64
- func (this *TagIndexRecord) GoString() string
- func (m *TagIndexRecord) Marshal() (dAtA []byte, err error)
- func (m *TagIndexRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *TagIndexRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TagIndexRecord) ProtoMessage()
- func (m *TagIndexRecord) Reset()
- func (m *TagIndexRecord) Size() (n int)
- func (this *TagIndexRecord) String() string
- func (m *TagIndexRecord) Unmarshal(dAtA []byte) error
- func (m *TagIndexRecord) XXX_DiscardUnknown()
- func (m *TagIndexRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagIndexRecord) XXX_Merge(src proto.Message)
- func (m *TagIndexRecord) XXX_Size() int
- func (m *TagIndexRecord) XXX_Unmarshal(b []byte) error
- type TagsFromDiskBlockData
- type WaysBlockData
- func (*WaysBlockData) Descriptor() ([]byte, []int)
- func (this *WaysBlockData) Equal(that interface{}) bool
- func (m *WaysBlockData) GetWays() []*ownmap.OSMWay
- func (this *WaysBlockData) GoString() string
- func (m *WaysBlockData) Marshal() (dAtA []byte, err error)
- func (m *WaysBlockData) MarshalTo(dAtA []byte) (int, error)
- func (m *WaysBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WaysBlockData) ProtoMessage()
- func (m *WaysBlockData) Reset()
- func (m *WaysBlockData) Size() (n int)
- func (this *WaysBlockData) String() string
- func (m *WaysBlockData) Unmarshal(dAtA []byte) error
- func (m *WaysBlockData) XXX_DiscardUnknown()
- func (m *WaysBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WaysBlockData) XXX_Merge(src proto.Message)
- func (m *WaysBlockData) XXX_Size() int
- func (m *WaysBlockData) XXX_Unmarshal(b []byte) error
- type WaysFromDiskBlockData
Constants ¶
View Source
const (
// HeaderSizeContainerSize is the size of the container that holds the amount of bytes that must be read to read the header
HeaderSizeContainerSize = 4
)
Variables ¶
Functions ¶
func CompareInt64s ¶
func CompareInt64s(a, b int64) algorithms.SearchResult
FIXME: move to algorithms package
func IsTagCollectionKey1BytesLargerThanKey2 ¶
IsTagCollectionKey1BytesLargerThanKey2 is a more efficient sorting method for tagCollectionKeyTypes. It lazily-evaluates key bytes.
func VisualiseDBHandleFunc ¶
func VisualiseDBHandleFunc(db *MapmakerDBConn) http.HandlerFunc
Types ¶
type BlockMetadata ¶
type BlockMetadata struct { StartOffsetFromStartOfSectionData int64 `` /* 155-byte string literal not displayed */ LastItemInBlockValue []byte `protobuf:"bytes,2,opt,name=last_item_in_block_value,json=lastItemInBlockValue,proto3" json:"lastItemInBlockValue"` BlockSize int64 `protobuf:"varint,3,opt,name=block_size,json=blockSize,proto3" json:"blockSize"` }
func (*BlockMetadata) Descriptor ¶
func (*BlockMetadata) Descriptor() ([]byte, []int)
func (*BlockMetadata) Equal ¶
func (this *BlockMetadata) Equal(that interface{}) bool
func (*BlockMetadata) GetBlockSize ¶
func (m *BlockMetadata) GetBlockSize() int64
func (*BlockMetadata) GetLastItemInBlockValue ¶
func (m *BlockMetadata) GetLastItemInBlockValue() []byte
func (*BlockMetadata) GetStartOffsetFromStartOfSectionData ¶
func (m *BlockMetadata) GetStartOffsetFromStartOfSectionData() int64
func (*BlockMetadata) GoString ¶
func (this *BlockMetadata) GoString() string
func (*BlockMetadata) Marshal ¶
func (m *BlockMetadata) Marshal() (dAtA []byte, err error)
func (*BlockMetadata) MarshalToSizedBuffer ¶
func (m *BlockMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockMetadata) ProtoMessage ¶
func (*BlockMetadata) ProtoMessage()
func (*BlockMetadata) Reset ¶
func (m *BlockMetadata) Reset()
func (*BlockMetadata) Size ¶
func (m *BlockMetadata) Size() (n int)
func (*BlockMetadata) String ¶
func (this *BlockMetadata) String() string
func (*BlockMetadata) Unmarshal ¶
func (m *BlockMetadata) Unmarshal(dAtA []byte) error
func (*BlockMetadata) XXX_DiscardUnknown ¶
func (m *BlockMetadata) XXX_DiscardUnknown()
func (*BlockMetadata) XXX_Marshal ¶
func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockMetadata) XXX_Merge ¶
func (m *BlockMetadata) XXX_Merge(src proto.Message)
func (*BlockMetadata) XXX_Size ¶
func (m *BlockMetadata) XXX_Size() int
func (*BlockMetadata) XXX_Unmarshal ¶
func (m *BlockMetadata) XXX_Unmarshal(b []byte) error
type Collections ¶
type Collections struct {
NodeCollection, WayCollection, RelationCollection, TagCollection diskfilemap.OnDiskCollection
}
type ComparisonResult ¶
type ComparisonResult int
const ( ComparisonResultEqual ComparisonResult = 0 ComparisonResultAGreaterThanB ComparisonResult = 1 ComparisonResultALessThanB ComparisonResult = -1 )
type FileHandlerPool ¶
type FileHandlerPool struct {
// contains filtered or unexported fields
}
func NewFileHandlerPool ¶
func NewFileHandlerPool(openFileFunc OpenFileFunc, limit uint) (*FileHandlerPool, errorsx.Error)
func (*FileHandlerPool) Get ¶
func (p *FileHandlerPool) Get() gofs.File
func (*FileHandlerPool) Release ¶
func (p *FileHandlerPool) Release(handler gofs.File)
type Header ¶
type Header struct { Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` DatasetInfo *ownmap.DatasetInfo `protobuf:"bytes,2,opt,name=dataset_info,json=datasetInfo,proto3" json:"datasetInfo"` NodesSectionMetadata *SectionMetadata `protobuf:"bytes,3,opt,name=nodes_section_metadata,json=nodesSectionMetadata,proto3" json:"nodesSectionMetadata"` WaysSectionMetadata *SectionMetadata `protobuf:"bytes,4,opt,name=ways_section_metadata,json=waysSectionMetadata,proto3" json:"waysSectionMetadata"` TagIndexSectionMetadata *SectionMetadata `protobuf:"bytes,5,opt,name=tag_index_section_metadata,json=tagIndexSectionMetadata,proto3" json:"tagIndexSectionMetadata"` RelationsSectionMetadata *SectionMetadata `protobuf:"bytes,6,opt,name=relations_section_metadata,json=relationsSectionMetadata,proto3" json:"relationsSectionMetadata"` }
func (*Header) Descriptor ¶
func (*Header) GetDatasetInfo ¶
func (m *Header) GetDatasetInfo() *ownmap.DatasetInfo
func (*Header) GetNodesSectionMetadata ¶
func (m *Header) GetNodesSectionMetadata() *SectionMetadata
func (*Header) GetRelationsSectionMetadata ¶
func (m *Header) GetRelationsSectionMetadata() *SectionMetadata
func (*Header) GetTagIndexSectionMetadata ¶
func (m *Header) GetTagIndexSectionMetadata() *SectionMetadata
func (*Header) GetVersion ¶
func (*Header) GetWaysSectionMetadata ¶
func (m *Header) GetWaysSectionMetadata() *SectionMetadata
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type ImportOptions ¶
type ImportOptions struct {
KeepWorkDir bool
}
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
func (*Importer) Commit ¶
func (importer *Importer) Commit() (ownmapdal.DataSourceConn, errorsx.Error)
func (*Importer) GetNodeByID ¶
func (*Importer) GetRelationByID ¶
func (importer *Importer) GetRelationByID(id int64) (*ownmap.OSMRelation, error)
func (*Importer) GetWayByID ¶
func (*Importer) ImportNode ¶
func (*Importer) ImportRelation ¶
func (importer *Importer) ImportRelation(relation *ownmap.OSMRelation) errorsx.Error
type MapmakerDBConn ¶
type MapmakerDBConn struct {
// contains filtered or unexported fields
}
func NewMapmakerDBConn ¶
func NewMapmakerDBConn(openFileFunc OpenFileFunc, name string, fileHandlerLimit uint) (*MapmakerDBConn, errorsx.Error)
func (*MapmakerDBConn) DatasetInfo ¶
func (db *MapmakerDBConn) DatasetInfo() (*ownmap.DatasetInfo, errorsx.Error)
func (*MapmakerDBConn) GetInBounds ¶
func (db *MapmakerDBConn) GetInBounds(ctx context.Context, bounds osm.Bounds, filter *ownmapdal.GetInBoundsFilter) (ownmapdal.TagNodeMap, ownmapdal.TagWayMap, ownmapdal.TagRelationMap, errorsx.Error)
func (*MapmakerDBConn) Name ¶
func (db *MapmakerDBConn) Name() string
type NodesBlockData ¶
type NodesBlockData struct {
Nodes []*ownmap.OSMNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
}
func (*NodesBlockData) Descriptor ¶
func (*NodesBlockData) Descriptor() ([]byte, []int)
func (*NodesBlockData) Equal ¶
func (this *NodesBlockData) Equal(that interface{}) bool
func (*NodesBlockData) GetNodes ¶
func (m *NodesBlockData) GetNodes() []*ownmap.OSMNode
func (*NodesBlockData) GoString ¶
func (this *NodesBlockData) GoString() string
func (*NodesBlockData) Marshal ¶
func (m *NodesBlockData) Marshal() (dAtA []byte, err error)
func (*NodesBlockData) MarshalToSizedBuffer ¶
func (m *NodesBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NodesBlockData) ProtoMessage ¶
func (*NodesBlockData) ProtoMessage()
func (*NodesBlockData) Reset ¶
func (m *NodesBlockData) Reset()
func (*NodesBlockData) Size ¶
func (m *NodesBlockData) Size() (n int)
func (*NodesBlockData) String ¶
func (this *NodesBlockData) String() string
func (*NodesBlockData) Unmarshal ¶
func (m *NodesBlockData) Unmarshal(dAtA []byte) error
func (*NodesBlockData) XXX_DiscardUnknown ¶
func (m *NodesBlockData) XXX_DiscardUnknown()
func (*NodesBlockData) XXX_Marshal ¶
func (m *NodesBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodesBlockData) XXX_Merge ¶
func (m *NodesBlockData) XXX_Merge(src proto.Message)
func (*NodesBlockData) XXX_Size ¶
func (m *NodesBlockData) XXX_Size() int
func (*NodesBlockData) XXX_Unmarshal ¶
func (m *NodesBlockData) XXX_Unmarshal(b []byte) error
type NodesFromDiskBlockData ¶
type NodesFromDiskBlockData struct {
// contains filtered or unexported fields
}
func NewNodesFromDiskBlockData ¶
func NewNodesFromDiskBlockData() *NodesFromDiskBlockData
func (*NodesFromDiskBlockData) Append ¶
func (n *NodesFromDiskBlockData) Append(data *bytes.Buffer) errorsx.Error
func (*NodesFromDiskBlockData) Reset ¶
func (n *NodesFromDiskBlockData) Reset()
func (*NodesFromDiskBlockData) ToProtoMessage ¶
func (n *NodesFromDiskBlockData) ToProtoMessage() proto.Message
type RelationsBlockData ¶
type RelationsBlockData struct {
Relations []*ownmap.OSMRelation `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty"`
}
func (*RelationsBlockData) Descriptor ¶
func (*RelationsBlockData) Descriptor() ([]byte, []int)
func (*RelationsBlockData) Equal ¶
func (this *RelationsBlockData) Equal(that interface{}) bool
func (*RelationsBlockData) GetRelations ¶
func (m *RelationsBlockData) GetRelations() []*ownmap.OSMRelation
func (*RelationsBlockData) GoString ¶
func (this *RelationsBlockData) GoString() string
func (*RelationsBlockData) Marshal ¶
func (m *RelationsBlockData) Marshal() (dAtA []byte, err error)
func (*RelationsBlockData) MarshalTo ¶
func (m *RelationsBlockData) MarshalTo(dAtA []byte) (int, error)
func (*RelationsBlockData) MarshalToSizedBuffer ¶
func (m *RelationsBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationsBlockData) ProtoMessage ¶
func (*RelationsBlockData) ProtoMessage()
func (*RelationsBlockData) Reset ¶
func (m *RelationsBlockData) Reset()
func (*RelationsBlockData) Size ¶
func (m *RelationsBlockData) Size() (n int)
func (*RelationsBlockData) String ¶
func (this *RelationsBlockData) String() string
func (*RelationsBlockData) Unmarshal ¶
func (m *RelationsBlockData) Unmarshal(dAtA []byte) error
func (*RelationsBlockData) XXX_DiscardUnknown ¶
func (m *RelationsBlockData) XXX_DiscardUnknown()
func (*RelationsBlockData) XXX_Marshal ¶
func (m *RelationsBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelationsBlockData) XXX_Merge ¶
func (m *RelationsBlockData) XXX_Merge(src proto.Message)
func (*RelationsBlockData) XXX_Size ¶
func (m *RelationsBlockData) XXX_Size() int
func (*RelationsBlockData) XXX_Unmarshal ¶
func (m *RelationsBlockData) XXX_Unmarshal(b []byte) error
type RelationsFromDiskBlockData ¶
type RelationsFromDiskBlockData struct {
// contains filtered or unexported fields
}
func NewRelationsFromDiskBlockData ¶
func NewRelationsFromDiskBlockData() *RelationsFromDiskBlockData
func (*RelationsFromDiskBlockData) Append ¶
func (n *RelationsFromDiskBlockData) Append(data *bytes.Buffer) errorsx.Error
func (*RelationsFromDiskBlockData) Reset ¶
func (n *RelationsFromDiskBlockData) Reset()
func (*RelationsFromDiskBlockData) ToProtoMessage ¶
func (n *RelationsFromDiskBlockData) ToProtoMessage() proto.Message
type SectionMetadata ¶
type SectionMetadata struct { TotalSize uint64 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"totalSize"` BlockMetadatas []*BlockMetadata `protobuf:"bytes,2,rep,name=block_metadatas,json=blockMetadatas,proto3" json:"blockMetadatas"` }
func (*SectionMetadata) Descriptor ¶
func (*SectionMetadata) Descriptor() ([]byte, []int)
func (*SectionMetadata) Equal ¶
func (this *SectionMetadata) Equal(that interface{}) bool
func (*SectionMetadata) GetBlockMetadatas ¶
func (m *SectionMetadata) GetBlockMetadatas() []*BlockMetadata
func (*SectionMetadata) GetTotalSize ¶
func (m *SectionMetadata) GetTotalSize() uint64
func (*SectionMetadata) GoString ¶
func (this *SectionMetadata) GoString() string
func (*SectionMetadata) Marshal ¶
func (m *SectionMetadata) Marshal() (dAtA []byte, err error)
func (*SectionMetadata) MarshalToSizedBuffer ¶
func (m *SectionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SectionMetadata) ProtoMessage ¶
func (*SectionMetadata) ProtoMessage()
func (*SectionMetadata) Reset ¶
func (m *SectionMetadata) Reset()
func (*SectionMetadata) Size ¶
func (m *SectionMetadata) Size() (n int)
func (*SectionMetadata) String ¶
func (this *SectionMetadata) String() string
func (*SectionMetadata) Unmarshal ¶
func (m *SectionMetadata) Unmarshal(dAtA []byte) error
func (*SectionMetadata) XXX_DiscardUnknown ¶
func (m *SectionMetadata) XXX_DiscardUnknown()
func (*SectionMetadata) XXX_Marshal ¶
func (m *SectionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SectionMetadata) XXX_Merge ¶
func (m *SectionMetadata) XXX_Merge(src proto.Message)
func (*SectionMetadata) XXX_Size ¶
func (m *SectionMetadata) XXX_Size() int
func (*SectionMetadata) XXX_Unmarshal ¶
func (m *SectionMetadata) XXX_Unmarshal(b []byte) error
type SectionType ¶
type SectionType interface {
// contains filtered or unexported methods
}
type TagIndexBlockData ¶
type TagIndexBlockData struct {
TagIndexRecords []*TagIndexRecord `protobuf:"bytes,1,rep,name=tag_index_records,json=tagIndexRecords,proto3" json:"tagIndexRecords"`
}
func (*TagIndexBlockData) Descriptor ¶
func (*TagIndexBlockData) Descriptor() ([]byte, []int)
func (*TagIndexBlockData) Equal ¶
func (this *TagIndexBlockData) Equal(that interface{}) bool
func (*TagIndexBlockData) GetTagIndexRecords ¶
func (m *TagIndexBlockData) GetTagIndexRecords() []*TagIndexRecord
func (*TagIndexBlockData) GoString ¶
func (this *TagIndexBlockData) GoString() string
func (*TagIndexBlockData) Marshal ¶
func (m *TagIndexBlockData) Marshal() (dAtA []byte, err error)
func (*TagIndexBlockData) MarshalTo ¶
func (m *TagIndexBlockData) MarshalTo(dAtA []byte) (int, error)
func (*TagIndexBlockData) MarshalToSizedBuffer ¶
func (m *TagIndexBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TagIndexBlockData) ProtoMessage ¶
func (*TagIndexBlockData) ProtoMessage()
func (*TagIndexBlockData) Reset ¶
func (m *TagIndexBlockData) Reset()
func (*TagIndexBlockData) Size ¶
func (m *TagIndexBlockData) Size() (n int)
func (*TagIndexBlockData) String ¶
func (this *TagIndexBlockData) String() string
func (*TagIndexBlockData) Unmarshal ¶
func (m *TagIndexBlockData) Unmarshal(dAtA []byte) error
func (*TagIndexBlockData) XXX_DiscardUnknown ¶
func (m *TagIndexBlockData) XXX_DiscardUnknown()
func (*TagIndexBlockData) XXX_Marshal ¶
func (m *TagIndexBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagIndexBlockData) XXX_Merge ¶
func (m *TagIndexBlockData) XXX_Merge(src proto.Message)
func (*TagIndexBlockData) XXX_Size ¶
func (m *TagIndexBlockData) XXX_Size() int
func (*TagIndexBlockData) XXX_Unmarshal ¶
func (m *TagIndexBlockData) XXX_Unmarshal(b []byte) error
type TagIndexMap ¶
type TagIndexMap map[tagCollectionKeyType][]int64
func (TagIndexMap) ToTagIndexRecords ¶
func (m TagIndexMap) ToTagIndexRecords() []*TagIndexRecord
type TagIndexRecord ¶
type TagIndexRecord struct { IndexKey []byte `protobuf:"bytes,1,opt,name=index_key,json=indexKey,proto3" json:"indexKey"` ItemIDs []int64 `protobuf:"varint,2,rep,packed,name=item_ids,json=itemIds,proto3" json:"itemIds"` }
func (*TagIndexRecord) Descriptor ¶
func (*TagIndexRecord) Descriptor() ([]byte, []int)
func (*TagIndexRecord) Equal ¶
func (this *TagIndexRecord) Equal(that interface{}) bool
func (*TagIndexRecord) GetIndexKey ¶
func (m *TagIndexRecord) GetIndexKey() []byte
func (*TagIndexRecord) GetItemIDs ¶
func (m *TagIndexRecord) GetItemIDs() []int64
func (*TagIndexRecord) GoString ¶
func (this *TagIndexRecord) GoString() string
func (*TagIndexRecord) Marshal ¶
func (m *TagIndexRecord) Marshal() (dAtA []byte, err error)
func (*TagIndexRecord) MarshalToSizedBuffer ¶
func (m *TagIndexRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TagIndexRecord) ProtoMessage ¶
func (*TagIndexRecord) ProtoMessage()
func (*TagIndexRecord) Reset ¶
func (m *TagIndexRecord) Reset()
func (*TagIndexRecord) Size ¶
func (m *TagIndexRecord) Size() (n int)
func (*TagIndexRecord) String ¶
func (this *TagIndexRecord) String() string
func (*TagIndexRecord) Unmarshal ¶
func (m *TagIndexRecord) Unmarshal(dAtA []byte) error
func (*TagIndexRecord) XXX_DiscardUnknown ¶
func (m *TagIndexRecord) XXX_DiscardUnknown()
func (*TagIndexRecord) XXX_Marshal ¶
func (m *TagIndexRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagIndexRecord) XXX_Merge ¶
func (m *TagIndexRecord) XXX_Merge(src proto.Message)
func (*TagIndexRecord) XXX_Size ¶
func (m *TagIndexRecord) XXX_Size() int
func (*TagIndexRecord) XXX_Unmarshal ¶
func (m *TagIndexRecord) XXX_Unmarshal(b []byte) error
type TagsFromDiskBlockData ¶
type TagsFromDiskBlockData struct {
// contains filtered or unexported fields
}
func NewTagsFromDiskBlockData ¶
func NewTagsFromDiskBlockData() *TagsFromDiskBlockData
func (*TagsFromDiskBlockData) Append ¶
func (n *TagsFromDiskBlockData) Append(data *bytes.Buffer) errorsx.Error
func (*TagsFromDiskBlockData) Reset ¶
func (n *TagsFromDiskBlockData) Reset()
func (*TagsFromDiskBlockData) ToProtoMessage ¶
func (n *TagsFromDiskBlockData) ToProtoMessage() proto.Message
type WaysBlockData ¶
type WaysBlockData struct {
Ways []*ownmap.OSMWay `protobuf:"bytes,1,rep,name=ways,proto3" json:"ways,omitempty"`
}
func (*WaysBlockData) Descriptor ¶
func (*WaysBlockData) Descriptor() ([]byte, []int)
func (*WaysBlockData) Equal ¶
func (this *WaysBlockData) Equal(that interface{}) bool
func (*WaysBlockData) GetWays ¶
func (m *WaysBlockData) GetWays() []*ownmap.OSMWay
func (*WaysBlockData) GoString ¶
func (this *WaysBlockData) GoString() string
func (*WaysBlockData) Marshal ¶
func (m *WaysBlockData) Marshal() (dAtA []byte, err error)
func (*WaysBlockData) MarshalToSizedBuffer ¶
func (m *WaysBlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WaysBlockData) ProtoMessage ¶
func (*WaysBlockData) ProtoMessage()
func (*WaysBlockData) Reset ¶
func (m *WaysBlockData) Reset()
func (*WaysBlockData) Size ¶
func (m *WaysBlockData) Size() (n int)
func (*WaysBlockData) String ¶
func (this *WaysBlockData) String() string
func (*WaysBlockData) Unmarshal ¶
func (m *WaysBlockData) Unmarshal(dAtA []byte) error
func (*WaysBlockData) XXX_DiscardUnknown ¶
func (m *WaysBlockData) XXX_DiscardUnknown()
func (*WaysBlockData) XXX_Marshal ¶
func (m *WaysBlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WaysBlockData) XXX_Merge ¶
func (m *WaysBlockData) XXX_Merge(src proto.Message)
func (*WaysBlockData) XXX_Size ¶
func (m *WaysBlockData) XXX_Size() int
func (*WaysBlockData) XXX_Unmarshal ¶
func (m *WaysBlockData) XXX_Unmarshal(b []byte) error
type WaysFromDiskBlockData ¶
type WaysFromDiskBlockData struct {
// contains filtered or unexported fields
}
func NewWaysFromDiskBlockData ¶
func NewWaysFromDiskBlockData() *WaysFromDiskBlockData
func (*WaysFromDiskBlockData) Append ¶
func (n *WaysFromDiskBlockData) Append(data *bytes.Buffer) errorsx.Error
func (*WaysFromDiskBlockData) Reset ¶
func (n *WaysFromDiskBlockData) Reset()
func (*WaysFromDiskBlockData) ToProtoMessage ¶
func (n *WaysFromDiskBlockData) ToProtoMessage() proto.Message
Source Files ¶
Click to show internal directories.
Click to hide internal directories.