1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.hadoop.hbase.client;
22
23 import org.apache.hadoop.hbase.HColumnDescriptor;
24 import org.apache.hadoop.hbase.io.hfile.Compression;
25
26
27
28
29 public class UnmodifyableHColumnDescriptor extends HColumnDescriptor {
30
31
32
33
34 public UnmodifyableHColumnDescriptor (final HColumnDescriptor desc) {
35 super(desc);
36 }
37
38
39
40
41 @Override
42 public void setValue(byte[] key, byte[] value) {
43 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
44 }
45
46
47
48
49 @Override
50 public void setValue(String key, String value) {
51 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
52 }
53
54
55
56
57 @Override
58 public void setMaxVersions(int maxVersions) {
59 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
60 }
61
62
63
64
65 @Override
66 public void setInMemory(boolean inMemory) {
67 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
68 }
69
70
71
72
73 @Override
74 public void setBlockCacheEnabled(boolean blockCacheEnabled) {
75 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
76 }
77
78
79
80
81 @Override
82 public void setTimeToLive(int timeToLive) {
83 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
84 }
85
86
87
88
89 @Override
90 public void setCompressionType(Compression.Algorithm type) {
91 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
92 }
93 }