• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

leonchen83 / redis-replicator / #2171

06 Jun 2025 05:39AM UTC coverage: 71.185% (-0.2%) from 71.406%
#2171

push

chenby
redis 8.0

8 of 33 new or added lines in 7 files covered. (24.24%)

5 existing lines in 2 files now uncovered.

6638 of 9325 relevant lines covered (71.18%)

0.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

2.56
/src/main/java/com/moilioncircle/redis/replicator/rdb/RdbVisitor.java
1
/*
2
 * Copyright 2016-2018 Leon Chen
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.moilioncircle.redis.replicator.rdb;
18

19
import java.io.IOException;
20

21
import com.moilioncircle.redis.replicator.event.Event;
22
import com.moilioncircle.redis.replicator.io.RedisInputStream;
23
import com.moilioncircle.redis.replicator.rdb.datatype.ContextKeyValuePair;
24
import com.moilioncircle.redis.replicator.rdb.datatype.DB;
25
import com.moilioncircle.redis.replicator.rdb.datatype.Slot;
26

27
/**
28
 * @author Leon Chen
29
 * @since 2.1.0
30
 */
31
public abstract class RdbVisitor {
1✔
32

33
    /*
34
     * rdb prefix
35
     */
36
    public String applyMagic(RedisInputStream in) throws IOException {
37
        throw new UnsupportedOperationException("must implement this method.");
×
38
    }
39

40
    public int applyVersion(RedisInputStream in) throws IOException {
41
        throw new UnsupportedOperationException("must implement this method.");
×
42
    }
43

44
    public int applyType(RedisInputStream in) throws IOException {
45
        throw new UnsupportedOperationException("must implement this method.");
×
46
    }
47

48
    /*
49
     * Function
50
     */
51
    public Event applyFunction(RedisInputStream in, int version) throws IOException {
52
        throw new UnsupportedOperationException("must implement this method.");
×
53
    }
54
    
55
    public Event applyFunction2(RedisInputStream in, int version) throws IOException {
56
        throw new UnsupportedOperationException("must implement this method.");
×
57
    }
58

59
    /*
60
     * DB
61
     */
62
    public DB applySelectDB(RedisInputStream in, int version) throws IOException {
63
        throw new UnsupportedOperationException("must implement this method.");
×
64
    }
65

66
    public DB applyResizeDB(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
67
        throw new UnsupportedOperationException("must implement this method.");
×
68
    }
69
    
70
    /*
71
     * slot
72
     */
73
    public Slot applySlotInfo(RedisInputStream in, int version) throws IOException {
NEW
74
        throw new UnsupportedOperationException("must implement this method.");
×
75
    }
76

77
    /*
78
     * checksum
79
     */
80
    public long applyEof(RedisInputStream in, int version) throws IOException {
81
        throw new UnsupportedOperationException("must implement this method.");
×
82
    }
83

84
    /*
85
     * aux
86
     */
87
    public Event applyAux(RedisInputStream in, int version) throws IOException {
88
        throw new UnsupportedOperationException("must implement this method.");
×
89
    }
90

91
    public Event applyModuleAux(RedisInputStream in, int version) throws IOException {
92
        throw new UnsupportedOperationException("must implement this method.");
×
93
    }
94

95
    /*
96
     * entity
97
     */
98
    public Event applyExpireTime(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
99
        throw new UnsupportedOperationException("must implement this method.");
×
100
    }
101

102
    public Event applyExpireTimeMs(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
103
        throw new UnsupportedOperationException("must implement this method.");
×
104
    }
105

106
    public Event applyFreq(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
107
        throw new UnsupportedOperationException("must implement this method.");
×
108
    }
109

110
    public Event applyIdle(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
111
        throw new UnsupportedOperationException("must implement this method.");
×
112
    }
113

114
    public Event applyString(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
115
        throw new UnsupportedOperationException("must implement this method.");
×
116
    }
117

118
    public Event applyList(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
119
        throw new UnsupportedOperationException("must implement this method.");
×
120
    }
121

122
    public Event applySet(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
123
        throw new UnsupportedOperationException("must implement this method.");
×
124
    }
125
    
126
    public Event applySetListPack(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
127
        throw new UnsupportedOperationException("must implement this method.");
×
128
    }
129

130
    public Event applyZSet(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
131
        throw new UnsupportedOperationException("must implement this method.");
×
132
    }
133

134
    public Event applyZSet2(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
135
        throw new UnsupportedOperationException("must implement this method.");
×
136
    }
137

138
    public Event applyHash(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
139
        throw new UnsupportedOperationException("must implement this method.");
×
140
    }
141

142
    public Event applyHashZipMap(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
143
        throw new UnsupportedOperationException("must implement this method.");
×
144
    }
145

146
    public Event applyListZipList(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
147
        throw new UnsupportedOperationException("must implement this method.");
×
148
    }
149

150
    public Event applySetIntSet(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
151
        throw new UnsupportedOperationException("must implement this method.");
×
152
    }
153

154
    public Event applyZSetZipList(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
155
        throw new UnsupportedOperationException("must implement this method.");
×
156
    }
157
    
158
    public Event applyZSetListPack(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
159
        throw new UnsupportedOperationException("must implement this method.");
×
160
    }
161

162
    public Event applyHashZipList(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
163
        throw new UnsupportedOperationException("must implement this method.");
×
164
    }
165
    
166
    public Event applyHashListPack(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
167
        throw new UnsupportedOperationException("must implement this method.");
×
168
    }
169

170
    public Event applyListQuickList(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
171
        throw new UnsupportedOperationException("must implement this method.");
×
172
    }
173
    
174
    public Event applyListQuickList2(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
175
        throw new UnsupportedOperationException("must implement this method.");
×
176
    }
177

178
    public Event applyModule(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
179
        throw new UnsupportedOperationException("must implement this method.");
×
180
    }
181

182
    public Event applyModule2(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
183
        throw new UnsupportedOperationException("must implement this method.");
×
184
    }
185

186
    public Event applyStreamListPacks(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
187
        throw new UnsupportedOperationException("must implement this method.");
×
188
    }
189
    
190
    public Event applyStreamListPacks2(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
191
        throw new UnsupportedOperationException("must implement this method.");
×
192
    }
193
    
194
    public Event applyStreamListPacks3(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
195
        throw new UnsupportedOperationException("must implement this method.");
×
196
    }
197
    
198
    public Event applyHashMetadata(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException{
199
        throw new UnsupportedOperationException("must implement this method.");
×
200
    }
201
    
202
    public Event applyHashListPackEx(RedisInputStream in, int version, ContextKeyValuePair context) throws IOException {
203
        throw new UnsupportedOperationException("must implement this method.");
×
204
    }
205
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc