github.com/matrixorigin/matrixone@v1.2.0/pkg/objectio/metav1.go (about) 1 // Copyright 2021 Matrix Origin 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package objectio 16 17 type objectMetaV1 []byte 18 19 func (o objectMetaV1) MustGetMeta(metaType DataMetaType) ObjectDataMeta { 20 return ObjectDataMeta(o) 21 } 22 23 func (o objectMetaV1) HeaderLength() uint32 { 24 //TODO implement me 25 panic("implement me") 26 } 27 28 func (o objectMetaV1) DataMetaCount() uint16 { 29 //TODO implement me 30 panic("implement me") 31 } 32 33 func (o objectMetaV1) TombstoneMetaCount() uint16 { 34 //TODO implement me 35 panic("implement me") 36 } 37 38 func (o objectMetaV1) DataMeta() (ObjectDataMeta, bool) { 39 return ObjectDataMeta(o), true 40 } 41 42 func (o objectMetaV1) MustDataMeta() ObjectDataMeta { 43 return ObjectDataMeta(o) 44 } 45 46 func (o objectMetaV1) TombstoneMeta() (ObjectDataMeta, bool) { 47 return ObjectDataMeta(o), true 48 } 49 50 func (o objectMetaV1) MustTombstoneMeta() ObjectDataMeta { 51 return ObjectDataMeta(o) 52 } 53 54 func (o objectMetaV1) SetDataMetaCount(count uint16) { 55 //TODO implement me 56 panic("implement me") 57 } 58 59 func (o objectMetaV1) SetDataMetaOffset(offset uint32) { 60 //TODO implement me 61 panic("implement me") 62 } 63 64 func (o objectMetaV1) SetTombstoneMetaCount(count uint16) { 65 //TODO implement me 66 panic("implement me") 67 } 68 69 func (o objectMetaV1) SetTombstoneMetaOffset(offset uint32) { 70 //TODO implement me 71 panic("implement me") 72 } 73 74 func (o objectMetaV1) SubMeta(pos uint16) (ObjectDataMeta, bool) { 75 return ObjectDataMeta(o), true 76 } 77 78 func (o objectMetaV1) SubMetaCount() uint16 { 79 //TODO implement me 80 panic("implement me") 81 } 82 83 func (o objectMetaV1) SubMetaIndex() SubMetaIndex { 84 //TODO implement me 85 panic("implement me") 86 } 87 88 func (o objectMetaV1) SubMetaTypes() []uint16 { 89 //TODO implement me 90 panic("implement me") 91 }