http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/HConstants.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/HConstants.html b/devapidocs/src-html/org/apache/hadoop/hbase/HConstants.html index 26a1e57..1632201 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/HConstants.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/HConstants.html @@ -1121,260 +1121,261 @@ <span class="sourceLineNo">1113</span> * handled by high priority handlers.<a name="line.1113"></a> <span class="sourceLineNo">1114</span> */<a name="line.1114"></a> <span class="sourceLineNo">1115</span> // normal_QOS < replication_QOS < replay_QOS < QOS_threshold < admin_QOS < high_QOS<a name="line.1115"></a> -<span class="sourceLineNo">1116</span> public static final int NORMAL_QOS = 0;<a name="line.1116"></a> -<span class="sourceLineNo">1117</span> public static final int REPLICATION_QOS = 5;<a name="line.1117"></a> -<span class="sourceLineNo">1118</span> public static final int REPLAY_QOS = 6;<a name="line.1118"></a> -<span class="sourceLineNo">1119</span> public static final int QOS_THRESHOLD = 10;<a name="line.1119"></a> -<span class="sourceLineNo">1120</span> public static final int ADMIN_QOS = 100;<a name="line.1120"></a> -<span class="sourceLineNo">1121</span> public static final int HIGH_QOS = 200;<a name="line.1121"></a> -<span class="sourceLineNo">1122</span> public static final int SYSTEMTABLE_QOS = HIGH_QOS;<a name="line.1122"></a> -<span class="sourceLineNo">1123</span><a name="line.1123"></a> -<span class="sourceLineNo">1124</span> /** Directory under /hbase where archived hfiles are stored */<a name="line.1124"></a> -<span class="sourceLineNo">1125</span> public static final String HFILE_ARCHIVE_DIRECTORY = "archive";<a name="line.1125"></a> -<span class="sourceLineNo">1126</span><a name="line.1126"></a> -<span class="sourceLineNo">1127</span> /**<a name="line.1127"></a> -<span class="sourceLineNo">1128</span> * Name of the directory to store all snapshots. See SnapshotDescriptionUtils for<a name="line.1128"></a> -<span class="sourceLineNo">1129</span> * remaining snapshot constants; this is here to keep HConstants dependencies at a minimum and<a name="line.1129"></a> -<span class="sourceLineNo">1130</span> * uni-directional.<a name="line.1130"></a> -<span class="sourceLineNo">1131</span> */<a name="line.1131"></a> -<span class="sourceLineNo">1132</span> public static final String SNAPSHOT_DIR_NAME = ".hbase-snapshot";<a name="line.1132"></a> -<span class="sourceLineNo">1133</span><a name="line.1133"></a> -<span class="sourceLineNo">1134</span> /* Name of old snapshot directory. See HBASE-8352 for details on why it needs to be renamed */<a name="line.1134"></a> -<span class="sourceLineNo">1135</span> public static final String OLD_SNAPSHOT_DIR_NAME = ".snapshot";<a name="line.1135"></a> -<span class="sourceLineNo">1136</span><a name="line.1136"></a> -<span class="sourceLineNo">1137</span> /** Temporary directory used for table creation and deletion */<a name="line.1137"></a> -<span class="sourceLineNo">1138</span> public static final String HBASE_TEMP_DIRECTORY = ".tmp";<a name="line.1138"></a> -<span class="sourceLineNo">1139</span> /**<a name="line.1139"></a> -<span class="sourceLineNo">1140</span> * The period (in milliseconds) between computing region server point in time metrics<a name="line.1140"></a> -<span class="sourceLineNo">1141</span> */<a name="line.1141"></a> -<span class="sourceLineNo">1142</span> public static final String REGIONSERVER_METRICS_PERIOD = "hbase.regionserver.metrics.period";<a name="line.1142"></a> -<span class="sourceLineNo">1143</span> public static final long DEFAULT_REGIONSERVER_METRICS_PERIOD = 5000;<a name="line.1143"></a> -<span class="sourceLineNo">1144</span> /** Directories that are not HBase table directories */<a name="line.1144"></a> -<span class="sourceLineNo">1145</span> public static final List<String> HBASE_NON_TABLE_DIRS =<a name="line.1145"></a> -<span class="sourceLineNo">1146</span> Collections.unmodifiableList(Arrays.asList(new String[] {<a name="line.1146"></a> -<span class="sourceLineNo">1147</span> HBCK_SIDELINEDIR_NAME, HBASE_TEMP_DIRECTORY, MIGRATION_NAME<a name="line.1147"></a> -<span class="sourceLineNo">1148</span> }));<a name="line.1148"></a> -<span class="sourceLineNo">1149</span><a name="line.1149"></a> -<span class="sourceLineNo">1150</span> /** Directories that are not HBase user table directories */<a name="line.1150"></a> -<span class="sourceLineNo">1151</span> public static final List<String> HBASE_NON_USER_TABLE_DIRS =<a name="line.1151"></a> -<span class="sourceLineNo">1152</span> Collections.unmodifiableList(Arrays.asList((String[])ArrayUtils.addAll(<a name="line.1152"></a> -<span class="sourceLineNo">1153</span> new String[] { TableName.META_TABLE_NAME.getNameAsString() },<a name="line.1153"></a> -<span class="sourceLineNo">1154</span> HBASE_NON_TABLE_DIRS.toArray())));<a name="line.1154"></a> -<span class="sourceLineNo">1155</span><a name="line.1155"></a> -<span class="sourceLineNo">1156</span> /** Health script related settings. */<a name="line.1156"></a> -<span class="sourceLineNo">1157</span> public static final String HEALTH_SCRIPT_LOC = "hbase.node.health.script.location";<a name="line.1157"></a> -<span class="sourceLineNo">1158</span> public static final String HEALTH_SCRIPT_TIMEOUT = "hbase.node.health.script.timeout";<a name="line.1158"></a> -<span class="sourceLineNo">1159</span> public static final String HEALTH_CHORE_WAKE_FREQ =<a name="line.1159"></a> -<span class="sourceLineNo">1160</span> "hbase.node.health.script.frequency";<a name="line.1160"></a> -<span class="sourceLineNo">1161</span> public static final long DEFAULT_HEALTH_SCRIPT_TIMEOUT = 60000;<a name="line.1161"></a> -<span class="sourceLineNo">1162</span> /**<a name="line.1162"></a> -<span class="sourceLineNo">1163</span> * The maximum number of health check failures a server can encounter consecutively.<a name="line.1163"></a> -<span class="sourceLineNo">1164</span> */<a name="line.1164"></a> -<span class="sourceLineNo">1165</span> public static final String HEALTH_FAILURE_THRESHOLD =<a name="line.1165"></a> -<span class="sourceLineNo">1166</span> "hbase.node.health.failure.threshold";<a name="line.1166"></a> -<span class="sourceLineNo">1167</span> public static final int DEFAULT_HEALTH_FAILURE_THRESHOLD = 3;<a name="line.1167"></a> -<span class="sourceLineNo">1168</span><a name="line.1168"></a> +<span class="sourceLineNo">1116</span> public static final int PRIORITY_UNSET = -1;<a name="line.1116"></a> +<span class="sourceLineNo">1117</span> public static final int NORMAL_QOS = 0;<a name="line.1117"></a> +<span class="sourceLineNo">1118</span> public static final int REPLICATION_QOS = 5;<a name="line.1118"></a> +<span class="sourceLineNo">1119</span> public static final int REPLAY_QOS = 6;<a name="line.1119"></a> +<span class="sourceLineNo">1120</span> public static final int QOS_THRESHOLD = 10;<a name="line.1120"></a> +<span class="sourceLineNo">1121</span> public static final int ADMIN_QOS = 100;<a name="line.1121"></a> +<span class="sourceLineNo">1122</span> public static final int HIGH_QOS = 200;<a name="line.1122"></a> +<span class="sourceLineNo">1123</span> public static final int SYSTEMTABLE_QOS = HIGH_QOS;<a name="line.1123"></a> +<span class="sourceLineNo">1124</span><a name="line.1124"></a> +<span class="sourceLineNo">1125</span> /** Directory under /hbase where archived hfiles are stored */<a name="line.1125"></a> +<span class="sourceLineNo">1126</span> public static final String HFILE_ARCHIVE_DIRECTORY = "archive";<a name="line.1126"></a> +<span class="sourceLineNo">1127</span><a name="line.1127"></a> +<span class="sourceLineNo">1128</span> /**<a name="line.1128"></a> +<span class="sourceLineNo">1129</span> * Name of the directory to store all snapshots. See SnapshotDescriptionUtils for<a name="line.1129"></a> +<span class="sourceLineNo">1130</span> * remaining snapshot constants; this is here to keep HConstants dependencies at a minimum and<a name="line.1130"></a> +<span class="sourceLineNo">1131</span> * uni-directional.<a name="line.1131"></a> +<span class="sourceLineNo">1132</span> */<a name="line.1132"></a> +<span class="sourceLineNo">1133</span> public static final String SNAPSHOT_DIR_NAME = ".hbase-snapshot";<a name="line.1133"></a> +<span class="sourceLineNo">1134</span><a name="line.1134"></a> +<span class="sourceLineNo">1135</span> /* Name of old snapshot directory. See HBASE-8352 for details on why it needs to be renamed */<a name="line.1135"></a> +<span class="sourceLineNo">1136</span> public static final String OLD_SNAPSHOT_DIR_NAME = ".snapshot";<a name="line.1136"></a> +<span class="sourceLineNo">1137</span><a name="line.1137"></a> +<span class="sourceLineNo">1138</span> /** Temporary directory used for table creation and deletion */<a name="line.1138"></a> +<span class="sourceLineNo">1139</span> public static final String HBASE_TEMP_DIRECTORY = ".tmp";<a name="line.1139"></a> +<span class="sourceLineNo">1140</span> /**<a name="line.1140"></a> +<span class="sourceLineNo">1141</span> * The period (in milliseconds) between computing region server point in time metrics<a name="line.1141"></a> +<span class="sourceLineNo">1142</span> */<a name="line.1142"></a> +<span class="sourceLineNo">1143</span> public static final String REGIONSERVER_METRICS_PERIOD = "hbase.regionserver.metrics.period";<a name="line.1143"></a> +<span class="sourceLineNo">1144</span> public static final long DEFAULT_REGIONSERVER_METRICS_PERIOD = 5000;<a name="line.1144"></a> +<span class="sourceLineNo">1145</span> /** Directories that are not HBase table directories */<a name="line.1145"></a> +<span class="sourceLineNo">1146</span> public static final List<String> HBASE_NON_TABLE_DIRS =<a name="line.1146"></a> +<span class="sourceLineNo">1147</span> Collections.unmodifiableList(Arrays.asList(new String[] {<a name="line.1147"></a> +<span class="sourceLineNo">1148</span> HBCK_SIDELINEDIR_NAME, HBASE_TEMP_DIRECTORY, MIGRATION_NAME<a name="line.1148"></a> +<span class="sourceLineNo">1149</span> }));<a name="line.1149"></a> +<span class="sourceLineNo">1150</span><a name="line.1150"></a> +<span class="sourceLineNo">1151</span> /** Directories that are not HBase user table directories */<a name="line.1151"></a> +<span class="sourceLineNo">1152</span> public static final List<String> HBASE_NON_USER_TABLE_DIRS =<a name="line.1152"></a> +<span class="sourceLineNo">1153</span> Collections.unmodifiableList(Arrays.asList((String[])ArrayUtils.addAll(<a name="line.1153"></a> +<span class="sourceLineNo">1154</span> new String[] { TableName.META_TABLE_NAME.getNameAsString() },<a name="line.1154"></a> +<span class="sourceLineNo">1155</span> HBASE_NON_TABLE_DIRS.toArray())));<a name="line.1155"></a> +<span class="sourceLineNo">1156</span><a name="line.1156"></a> +<span class="sourceLineNo">1157</span> /** Health script related settings. */<a name="line.1157"></a> +<span class="sourceLineNo">1158</span> public static final String HEALTH_SCRIPT_LOC = "hbase.node.health.script.location";<a name="line.1158"></a> +<span class="sourceLineNo">1159</span> public static final String HEALTH_SCRIPT_TIMEOUT = "hbase.node.health.script.timeout";<a name="line.1159"></a> +<span class="sourceLineNo">1160</span> public static final String HEALTH_CHORE_WAKE_FREQ =<a name="line.1160"></a> +<span class="sourceLineNo">1161</span> "hbase.node.health.script.frequency";<a name="line.1161"></a> +<span class="sourceLineNo">1162</span> public static final long DEFAULT_HEALTH_SCRIPT_TIMEOUT = 60000;<a name="line.1162"></a> +<span class="sourceLineNo">1163</span> /**<a name="line.1163"></a> +<span class="sourceLineNo">1164</span> * The maximum number of health check failures a server can encounter consecutively.<a name="line.1164"></a> +<span class="sourceLineNo">1165</span> */<a name="line.1165"></a> +<span class="sourceLineNo">1166</span> public static final String HEALTH_FAILURE_THRESHOLD =<a name="line.1166"></a> +<span class="sourceLineNo">1167</span> "hbase.node.health.failure.threshold";<a name="line.1167"></a> +<span class="sourceLineNo">1168</span> public static final int DEFAULT_HEALTH_FAILURE_THRESHOLD = 3;<a name="line.1168"></a> <span class="sourceLineNo">1169</span><a name="line.1169"></a> -<span class="sourceLineNo">1170</span> /**<a name="line.1170"></a> -<span class="sourceLineNo">1171</span> * Setting to activate, or not, the publication of the status by the master. Default<a name="line.1171"></a> -<span class="sourceLineNo">1172</span> * notification is by a multicast message.<a name="line.1172"></a> -<span class="sourceLineNo">1173</span> */<a name="line.1173"></a> -<span class="sourceLineNo">1174</span> public static final String STATUS_PUBLISHED = "hbase.status.published";<a name="line.1174"></a> -<span class="sourceLineNo">1175</span> public static final boolean STATUS_PUBLISHED_DEFAULT = false;<a name="line.1175"></a> -<span class="sourceLineNo">1176</span><a name="line.1176"></a> -<span class="sourceLineNo">1177</span> /**<a name="line.1177"></a> -<span class="sourceLineNo">1178</span> * IP to use for the multicast status messages between the master and the clients.<a name="line.1178"></a> -<span class="sourceLineNo">1179</span> * The default address is chosen as one among others within the ones suitable for multicast<a name="line.1179"></a> -<span class="sourceLineNo">1180</span> * messages.<a name="line.1180"></a> -<span class="sourceLineNo">1181</span> */<a name="line.1181"></a> -<span class="sourceLineNo">1182</span> public static final String STATUS_MULTICAST_ADDRESS = "hbase.status.multicast.address.ip";<a name="line.1182"></a> -<span class="sourceLineNo">1183</span> public static final String DEFAULT_STATUS_MULTICAST_ADDRESS = "226.1.1.3";<a name="line.1183"></a> -<span class="sourceLineNo">1184</span><a name="line.1184"></a> -<span class="sourceLineNo">1185</span> /**<a name="line.1185"></a> -<span class="sourceLineNo">1186</span> * The address to use for binding the local socket for receiving multicast. Defaults to<a name="line.1186"></a> -<span class="sourceLineNo">1187</span> * 0.0.0.0.<a name="line.1187"></a> -<span class="sourceLineNo">1188</span> * @see <a href="https://issues.apache.org/jira/browse/HBASE-9961">HBASE-9961</a><a name="line.1188"></a> -<span class="sourceLineNo">1189</span> */<a name="line.1189"></a> -<span class="sourceLineNo">1190</span> public static final String STATUS_MULTICAST_BIND_ADDRESS =<a name="line.1190"></a> -<span class="sourceLineNo">1191</span> "hbase.status.multicast.bind.address.ip";<a name="line.1191"></a> -<span class="sourceLineNo">1192</span> public static final String DEFAULT_STATUS_MULTICAST_BIND_ADDRESS = "0.0.0.0";<a name="line.1192"></a> -<span class="sourceLineNo">1193</span><a name="line.1193"></a> -<span class="sourceLineNo">1194</span> /**<a name="line.1194"></a> -<span class="sourceLineNo">1195</span> * The port to use for the multicast messages.<a name="line.1195"></a> -<span class="sourceLineNo">1196</span> */<a name="line.1196"></a> -<span class="sourceLineNo">1197</span> public static final String STATUS_MULTICAST_PORT = "hbase.status.multicast.address.port";<a name="line.1197"></a> -<span class="sourceLineNo">1198</span> public static final int DEFAULT_STATUS_MULTICAST_PORT = 16100;<a name="line.1198"></a> -<span class="sourceLineNo">1199</span><a name="line.1199"></a> -<span class="sourceLineNo">1200</span> public static final long NO_NONCE = 0;<a name="line.1200"></a> -<span class="sourceLineNo">1201</span><a name="line.1201"></a> -<span class="sourceLineNo">1202</span> /** Default cipher for encryption */<a name="line.1202"></a> -<span class="sourceLineNo">1203</span> public static final String CIPHER_AES = "AES";<a name="line.1203"></a> -<span class="sourceLineNo">1204</span><a name="line.1204"></a> -<span class="sourceLineNo">1205</span> /** Configuration key for the crypto algorithm provider, a class name */<a name="line.1205"></a> -<span class="sourceLineNo">1206</span> public static final String CRYPTO_CIPHERPROVIDER_CONF_KEY = "hbase.crypto.cipherprovider";<a name="line.1206"></a> -<span class="sourceLineNo">1207</span><a name="line.1207"></a> -<span class="sourceLineNo">1208</span> /** Configuration key for the crypto key provider, a class name */<a name="line.1208"></a> -<span class="sourceLineNo">1209</span> public static final String CRYPTO_KEYPROVIDER_CONF_KEY = "hbase.crypto.keyprovider";<a name="line.1209"></a> -<span class="sourceLineNo">1210</span><a name="line.1210"></a> -<span class="sourceLineNo">1211</span> /** Configuration key for the crypto key provider parameters */<a name="line.1211"></a> -<span class="sourceLineNo">1212</span> public static final String CRYPTO_KEYPROVIDER_PARAMETERS_KEY =<a name="line.1212"></a> -<span class="sourceLineNo">1213</span> "hbase.crypto.keyprovider.parameters";<a name="line.1213"></a> -<span class="sourceLineNo">1214</span><a name="line.1214"></a> -<span class="sourceLineNo">1215</span> /** Configuration key for the name of the master key for the cluster, a string */<a name="line.1215"></a> -<span class="sourceLineNo">1216</span> public static final String CRYPTO_MASTERKEY_NAME_CONF_KEY = "hbase.crypto.master.key.name";<a name="line.1216"></a> -<span class="sourceLineNo">1217</span><a name="line.1217"></a> -<span class="sourceLineNo">1218</span> /** Configuration key for the name of the alternate master key for the cluster, a string */<a name="line.1218"></a> -<span class="sourceLineNo">1219</span> public static final String CRYPTO_MASTERKEY_ALTERNATE_NAME_CONF_KEY =<a name="line.1219"></a> -<span class="sourceLineNo">1220</span> "hbase.crypto.master.alternate.key.name";<a name="line.1220"></a> -<span class="sourceLineNo">1221</span><a name="line.1221"></a> -<span class="sourceLineNo">1222</span> /** Configuration key for the algorithm to use when encrypting the WAL, a string */<a name="line.1222"></a> -<span class="sourceLineNo">1223</span> public static final String CRYPTO_WAL_ALGORITHM_CONF_KEY = "hbase.crypto.wal.algorithm";<a name="line.1223"></a> -<span class="sourceLineNo">1224</span><a name="line.1224"></a> -<span class="sourceLineNo">1225</span> /** Configuration key for the name of the master WAL encryption key for the cluster, a string */<a name="line.1225"></a> -<span class="sourceLineNo">1226</span> public static final String CRYPTO_WAL_KEY_NAME_CONF_KEY = "hbase.crypto.wal.key.name";<a name="line.1226"></a> -<span class="sourceLineNo">1227</span><a name="line.1227"></a> -<span class="sourceLineNo">1228</span> /** Configuration key for the algorithm used for creating jks key, a string */<a name="line.1228"></a> -<span class="sourceLineNo">1229</span> public static final String CRYPTO_KEY_ALGORITHM_CONF_KEY = "hbase.crypto.key.algorithm";<a name="line.1229"></a> -<span class="sourceLineNo">1230</span><a name="line.1230"></a> -<span class="sourceLineNo">1231</span> /** Configuration key for the name of the alternate cipher algorithm for the cluster, a string */<a name="line.1231"></a> -<span class="sourceLineNo">1232</span> public static final String CRYPTO_ALTERNATE_KEY_ALGORITHM_CONF_KEY =<a name="line.1232"></a> -<span class="sourceLineNo">1233</span> "hbase.crypto.alternate.key.algorithm";<a name="line.1233"></a> -<span class="sourceLineNo">1234</span><a name="line.1234"></a> -<span class="sourceLineNo">1235</span> /** Configuration key for enabling WAL encryption, a boolean */<a name="line.1235"></a> -<span class="sourceLineNo">1236</span> public static final String ENABLE_WAL_ENCRYPTION = "hbase.regionserver.wal.encryption";<a name="line.1236"></a> -<span class="sourceLineNo">1237</span><a name="line.1237"></a> -<span class="sourceLineNo">1238</span> /** Configuration key for setting RPC codec class name */<a name="line.1238"></a> -<span class="sourceLineNo">1239</span> public static final String RPC_CODEC_CONF_KEY = "hbase.client.rpc.codec";<a name="line.1239"></a> -<span class="sourceLineNo">1240</span><a name="line.1240"></a> -<span class="sourceLineNo">1241</span> /** Configuration key for setting replication codec class name */<a name="line.1241"></a> -<span class="sourceLineNo">1242</span> public static final String REPLICATION_CODEC_CONF_KEY = "hbase.replication.rpc.codec";<a name="line.1242"></a> -<span class="sourceLineNo">1243</span><a name="line.1243"></a> -<span class="sourceLineNo">1244</span> /** Maximum number of threads used by the replication source for shipping edits to the sinks */<a name="line.1244"></a> -<span class="sourceLineNo">1245</span> public static final String REPLICATION_SOURCE_MAXTHREADS_KEY =<a name="line.1245"></a> -<span class="sourceLineNo">1246</span> "hbase.replication.source.maxthreads";<a name="line.1246"></a> -<span class="sourceLineNo">1247</span><a name="line.1247"></a> -<span class="sourceLineNo">1248</span> public static final int REPLICATION_SOURCE_MAXTHREADS_DEFAULT = 10;<a name="line.1248"></a> -<span class="sourceLineNo">1249</span><a name="line.1249"></a> -<span class="sourceLineNo">1250</span> /** Config for pluggable consensus provider */<a name="line.1250"></a> -<span class="sourceLineNo">1251</span> public static final String HBASE_COORDINATED_STATE_MANAGER_CLASS =<a name="line.1251"></a> -<span class="sourceLineNo">1252</span> "hbase.coordinated.state.manager.class";<a name="line.1252"></a> -<span class="sourceLineNo">1253</span><a name="line.1253"></a> -<span class="sourceLineNo">1254</span> /** Configuration key for SplitLog manager timeout */<a name="line.1254"></a> -<span class="sourceLineNo">1255</span> public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout";<a name="line.1255"></a> -<span class="sourceLineNo">1256</span><a name="line.1256"></a> -<span class="sourceLineNo">1257</span> /**<a name="line.1257"></a> -<span class="sourceLineNo">1258</span> * Configuration keys for Bucket cache<a name="line.1258"></a> -<span class="sourceLineNo">1259</span> */<a name="line.1259"></a> -<span class="sourceLineNo">1260</span> // TODO moving these bucket cache implementation specific configs to this level is violation of<a name="line.1260"></a> -<span class="sourceLineNo">1261</span> // encapsulation. But as these has to be referred from hbase-common and bucket cache<a name="line.1261"></a> -<span class="sourceLineNo">1262</span> // sits in hbase-server, there were no other go! Can we move the cache implementation to<a name="line.1262"></a> -<span class="sourceLineNo">1263</span> // hbase-common?<a name="line.1263"></a> -<span class="sourceLineNo">1264</span><a name="line.1264"></a> -<span class="sourceLineNo">1265</span> /**<a name="line.1265"></a> -<span class="sourceLineNo">1266</span> * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path<a name="line.1266"></a> -<span class="sourceLineNo">1267</span> * to the file that will host the file-based cache. See BucketCache#getIOEngineFromName() for<a name="line.1267"></a> -<span class="sourceLineNo">1268</span> * list of supported ioengine options.<a name="line.1268"></a> -<span class="sourceLineNo">1269</span> * <p>Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache.<a name="line.1269"></a> -<span class="sourceLineNo">1270</span> */<a name="line.1270"></a> -<span class="sourceLineNo">1271</span> public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine";<a name="line.1271"></a> -<span class="sourceLineNo">1272</span><a name="line.1272"></a> -<span class="sourceLineNo">1273</span> /**<a name="line.1273"></a> -<span class="sourceLineNo">1274</span> * When using bucket cache, this is a float that EITHER represents a percentage of total heap<a name="line.1274"></a> -<span class="sourceLineNo">1275</span> * memory size to give to the cache (if &lt; 1.0) OR, it is the capacity in<a name="line.1275"></a> -<span class="sourceLineNo">1276</span> * megabytes of the cache.<a name="line.1276"></a> -<span class="sourceLineNo">1277</span> */<a name="line.1277"></a> -<span class="sourceLineNo">1278</span> public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size";<a name="line.1278"></a> -<span class="sourceLineNo">1279</span><a name="line.1279"></a> -<span class="sourceLineNo">1280</span> /**<a name="line.1280"></a> -<span class="sourceLineNo">1281</span> * HConstants for fast fail on the client side follow<a name="line.1281"></a> -<span class="sourceLineNo">1282</span> */<a name="line.1282"></a> -<span class="sourceLineNo">1283</span> /**<a name="line.1283"></a> -<span class="sourceLineNo">1284</span> * Config for enabling/disabling the fast fail mode.<a name="line.1284"></a> -<span class="sourceLineNo">1285</span> */<a name="line.1285"></a> -<span class="sourceLineNo">1286</span> public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED =<a name="line.1286"></a> -<span class="sourceLineNo">1287</span> "hbase.client.fast.fail.mode.enabled";<a name="line.1287"></a> -<span class="sourceLineNo">1288</span><a name="line.1288"></a> -<span class="sourceLineNo">1289</span> public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT =<a name="line.1289"></a> -<span class="sourceLineNo">1290</span> false;<a name="line.1290"></a> -<span class="sourceLineNo">1291</span><a name="line.1291"></a> -<span class="sourceLineNo">1292</span> public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS =<a name="line.1292"></a> -<span class="sourceLineNo">1293</span> "hbase.client.fastfail.threshold";<a name="line.1293"></a> -<span class="sourceLineNo">1294</span><a name="line.1294"></a> -<span class="sourceLineNo">1295</span> public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT =<a name="line.1295"></a> -<span class="sourceLineNo">1296</span> 60000;<a name="line.1296"></a> -<span class="sourceLineNo">1297</span><a name="line.1297"></a> -<span class="sourceLineNo">1298</span> public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS =<a name="line.1298"></a> -<span class="sourceLineNo">1299</span> "hbase.client.fast.fail.cleanup.duration";<a name="line.1299"></a> -<span class="sourceLineNo">1300</span><a name="line.1300"></a> -<span class="sourceLineNo">1301</span> public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT =<a name="line.1301"></a> -<span class="sourceLineNo">1302</span> 600000;<a name="line.1302"></a> -<span class="sourceLineNo">1303</span><a name="line.1303"></a> -<span class="sourceLineNo">1304</span> public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL =<a name="line.1304"></a> -<span class="sourceLineNo">1305</span> "hbase.client.fast.fail.interceptor.impl";<a name="line.1305"></a> -<span class="sourceLineNo">1306</span><a name="line.1306"></a> -<span class="sourceLineNo">1307</span> /** Config key for if the server should send backpressure and if the client should listen to<a name="line.1307"></a> -<span class="sourceLineNo">1308</span> * that backpressure from the server */<a name="line.1308"></a> -<span class="sourceLineNo">1309</span> public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled";<a name="line.1309"></a> -<span class="sourceLineNo">1310</span> public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false;<a name="line.1310"></a> -<span class="sourceLineNo">1311</span><a name="line.1311"></a> -<span class="sourceLineNo">1312</span> public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY =<a name="line.1312"></a> -<span class="sourceLineNo">1313</span> "hbase.heap.occupancy.low_water_mark";<a name="line.1313"></a> -<span class="sourceLineNo">1314</span> public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f;<a name="line.1314"></a> -<span class="sourceLineNo">1315</span> public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY =<a name="line.1315"></a> -<span class="sourceLineNo">1316</span> "hbase.heap.occupancy.high_water_mark";<a name="line.1316"></a> -<span class="sourceLineNo">1317</span> public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f;<a name="line.1317"></a> -<span class="sourceLineNo">1318</span><a name="line.1318"></a> -<span class="sourceLineNo">1319</span> /**<a name="line.1319"></a> -<span class="sourceLineNo">1320</span> * The max number of threads used for splitting storefiles in parallel during<a name="line.1320"></a> -<span class="sourceLineNo">1321</span> * the region split process.<a name="line.1321"></a> -<span class="sourceLineNo">1322</span> */<a name="line.1322"></a> -<span class="sourceLineNo">1323</span> public static final String REGION_SPLIT_THREADS_MAX =<a name="line.1323"></a> -<span class="sourceLineNo">1324</span> "hbase.regionserver.region.split.threads.max";<a name="line.1324"></a> -<span class="sourceLineNo">1325</span><a name="line.1325"></a> -<span class="sourceLineNo">1326</span> /** Canary config keys */<a name="line.1326"></a> -<span class="sourceLineNo">1327</span> public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl";<a name="line.1327"></a> -<span class="sourceLineNo">1328</span><a name="line.1328"></a> -<span class="sourceLineNo">1329</span> public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY =<a name="line.1329"></a> -<span class="sourceLineNo">1330</span> "hbase.canary.write.perserver.regions.lowerLimit";<a name="line.1330"></a> -<span class="sourceLineNo">1331</span><a name="line.1331"></a> -<span class="sourceLineNo">1332</span> public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_UPPERLIMIT_KEY =<a name="line.1332"></a> -<span class="sourceLineNo">1333</span> "hbase.canary.write.perserver.regions.upperLimit";<a name="line.1333"></a> -<span class="sourceLineNo">1334</span><a name="line.1334"></a> -<span class="sourceLineNo">1335</span> public static final String HBASE_CANARY_WRITE_VALUE_SIZE_KEY = "hbase.canary.write.value.size";<a name="line.1335"></a> -<span class="sourceLineNo">1336</span><a name="line.1336"></a> -<span class="sourceLineNo">1337</span> public static final String HBASE_CANARY_WRITE_TABLE_CHECK_PERIOD_KEY =<a name="line.1337"></a> -<span class="sourceLineNo">1338</span> "hbase.canary.write.table.check.period";<a name="line.1338"></a> -<span class="sourceLineNo">1339</span> <a name="line.1339"></a> -<span class="sourceLineNo">1340</span> public static final String HBASE_CANARY_READ_RAW_SCAN_KEY = "hbase.canary.read.raw.enabled";<a name="line.1340"></a> -<span class="sourceLineNo">1341</span><a name="line.1341"></a> -<span class="sourceLineNo">1342</span> /**<a name="line.1342"></a> -<span class="sourceLineNo">1343</span> * Configuration keys for programmatic JAAS configuration for secured ZK interaction<a name="line.1343"></a> -<span class="sourceLineNo">1344</span> */<a name="line.1344"></a> -<span class="sourceLineNo">1345</span> public static final String ZK_CLIENT_KEYTAB_FILE = "hbase.zookeeper.client.keytab.file";<a name="line.1345"></a> -<span class="sourceLineNo">1346</span> public static final String ZK_CLIENT_KERBEROS_PRINCIPAL =<a name="line.1346"></a> -<span class="sourceLineNo">1347</span> "hbase.zookeeper.client.kerberos.principal";<a name="line.1347"></a> -<span class="sourceLineNo">1348</span> public static final String ZK_SERVER_KEYTAB_FILE = "hbase.zookeeper.server.keytab.file";<a name="line.1348"></a> -<span class="sourceLineNo">1349</span> public static final String ZK_SERVER_KERBEROS_PRINCIPAL =<a name="line.1349"></a> -<span class="sourceLineNo">1350</span> "hbase.zookeeper.server.kerberos.principal";<a name="line.1350"></a> -<span class="sourceLineNo">1351</span><a name="line.1351"></a> -<span class="sourceLineNo">1352</span> /** Config key for hbase temporary directory in hdfs */<a name="line.1352"></a> -<span class="sourceLineNo">1353</span> public static final String TEMPORARY_FS_DIRECTORY_KEY = "hbase.fs.tmp.dir";<a name="line.1353"></a> -<span class="sourceLineNo">1354</span> public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/"<a name="line.1354"></a> -<span class="sourceLineNo">1355</span> + System.getProperty("user.name") + "/hbase-staging";<a name="line.1355"></a> -<span class="sourceLineNo">1356</span><a name="line.1356"></a> -<span class="sourceLineNo">1357</span> public static final String SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT =<a name="line.1357"></a> -<span class="sourceLineNo">1358</span> "hbase.snapshot.restore.take.failsafe.snapshot";<a name="line.1358"></a> -<span class="sourceLineNo">1359</span> public static final boolean DEFAULT_SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT = false;<a name="line.1359"></a> -<span class="sourceLineNo">1360</span><a name="line.1360"></a> -<span class="sourceLineNo">1361</span> public static final String SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1361"></a> -<span class="sourceLineNo">1362</span> "hbase.snapshot.restore.failsafe.name";<a name="line.1362"></a> -<span class="sourceLineNo">1363</span> public static final String DEFAULT_SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1363"></a> -<span class="sourceLineNo">1364</span> "hbase-failsafe-{snapshot.name}-{restore.timestamp}";<a name="line.1364"></a> -<span class="sourceLineNo">1365</span><a name="line.1365"></a> -<span class="sourceLineNo">1366</span> private HConstants() {<a name="line.1366"></a> -<span class="sourceLineNo">1367</span> // Can't be instantiated with this ctor.<a name="line.1367"></a> -<span class="sourceLineNo">1368</span> }<a name="line.1368"></a> -<span class="sourceLineNo">1369</span>}<a name="line.1369"></a> +<span class="sourceLineNo">1170</span><a name="line.1170"></a> +<span class="sourceLineNo">1171</span> /**<a name="line.1171"></a> +<span class="sourceLineNo">1172</span> * Setting to activate, or not, the publication of the status by the master. Default<a name="line.1172"></a> +<span class="sourceLineNo">1173</span> * notification is by a multicast message.<a name="line.1173"></a> +<span class="sourceLineNo">1174</span> */<a name="line.1174"></a> +<span class="sourceLineNo">1175</span> public static final String STATUS_PUBLISHED = "hbase.status.published";<a name="line.1175"></a> +<span class="sourceLineNo">1176</span> public static final boolean STATUS_PUBLISHED_DEFAULT = false;<a name="line.1176"></a> +<span class="sourceLineNo">1177</span><a name="line.1177"></a> +<span class="sourceLineNo">1178</span> /**<a name="line.1178"></a> +<span class="sourceLineNo">1179</span> * IP to use for the multicast status messages between the master and the clients.<a name="line.1179"></a> +<span class="sourceLineNo">1180</span> * The default address is chosen as one among others within the ones suitable for multicast<a name="line.1180"></a> +<span class="sourceLineNo">1181</span> * messages.<a name="line.1181"></a> +<span class="sourceLineNo">1182</span> */<a name="line.1182"></a> +<span class="sourceLineNo">1183</span> public static final String STATUS_MULTICAST_ADDRESS = "hbase.status.multicast.address.ip";<a name="line.1183"></a> +<span class="sourceLineNo">1184</span> public static final String DEFAULT_STATUS_MULTICAST_ADDRESS = "226.1.1.3";<a name="line.1184"></a> +<span class="sourceLineNo">1185</span><a name="line.1185"></a> +<span class="sourceLineNo">1186</span> /**<a name="line.1186"></a> +<span class="sourceLineNo">1187</span> * The address to use for binding the local socket for receiving multicast. Defaults to<a name="line.1187"></a> +<span class="sourceLineNo">1188</span> * 0.0.0.0.<a name="line.1188"></a> +<span class="sourceLineNo">1189</span> * @see <a href="https://issues.apache.org/jira/browse/HBASE-9961">HBASE-9961</a><a name="line.1189"></a> +<span class="sourceLineNo">1190</span> */<a name="line.1190"></a> +<span class="sourceLineNo">1191</span> public static final String STATUS_MULTICAST_BIND_ADDRESS =<a name="line.1191"></a> +<span class="sourceLineNo">1192</span> "hbase.status.multicast.bind.address.ip";<a name="line.1192"></a> +<span class="sourceLineNo">1193</span> public static final String DEFAULT_STATUS_MULTICAST_BIND_ADDRESS = "0.0.0.0";<a name="line.1193"></a> +<span class="sourceLineNo">1194</span><a name="line.1194"></a> +<span class="sourceLineNo">1195</span> /**<a name="line.1195"></a> +<span class="sourceLineNo">1196</span> * The port to use for the multicast messages.<a name="line.1196"></a> +<span class="sourceLineNo">1197</span> */<a name="line.1197"></a> +<span class="sourceLineNo">1198</span> public static final String STATUS_MULTICAST_PORT = "hbase.status.multicast.address.port";<a name="line.1198"></a> +<span class="sourceLineNo">1199</span> public static final int DEFAULT_STATUS_MULTICAST_PORT = 16100;<a name="line.1199"></a> +<span class="sourceLineNo">1200</span><a name="line.1200"></a> +<span class="sourceLineNo">1201</span> public static final long NO_NONCE = 0;<a name="line.1201"></a> +<span class="sourceLineNo">1202</span><a name="line.1202"></a> +<span class="sourceLineNo">1203</span> /** Default cipher for encryption */<a name="line.1203"></a> +<span class="sourceLineNo">1204</span> public static final String CIPHER_AES = "AES";<a name="line.1204"></a> +<span class="sourceLineNo">1205</span><a name="line.1205"></a> +<span class="sourceLineNo">1206</span> /** Configuration key for the crypto algorithm provider, a class name */<a name="line.1206"></a> +<span class="sourceLineNo">1207</span> public static final String CRYPTO_CIPHERPROVIDER_CONF_KEY = "hbase.crypto.cipherprovider";<a name="line.1207"></a> +<span class="sourceLineNo">1208</span><a name="line.1208"></a> +<span class="sourceLineNo">1209</span> /** Configuration key for the crypto key provider, a class name */<a name="line.1209"></a> +<span class="sourceLineNo">1210</span> public static final String CRYPTO_KEYPROVIDER_CONF_KEY = "hbase.crypto.keyprovider";<a name="line.1210"></a> +<span class="sourceLineNo">1211</span><a name="line.1211"></a> +<span class="sourceLineNo">1212</span> /** Configuration key for the crypto key provider parameters */<a name="line.1212"></a> +<span class="sourceLineNo">1213</span> public static final String CRYPTO_KEYPROVIDER_PARAMETERS_KEY =<a name="line.1213"></a> +<span class="sourceLineNo">1214</span> "hbase.crypto.keyprovider.parameters";<a name="line.1214"></a> +<span class="sourceLineNo">1215</span><a name="line.1215"></a> +<span class="sourceLineNo">1216</span> /** Configuration key for the name of the master key for the cluster, a string */<a name="line.1216"></a> +<span class="sourceLineNo">1217</span> public static final String CRYPTO_MASTERKEY_NAME_CONF_KEY = "hbase.crypto.master.key.name";<a name="line.1217"></a> +<span class="sourceLineNo">1218</span><a name="line.1218"></a> +<span class="sourceLineNo">1219</span> /** Configuration key for the name of the alternate master key for the cluster, a string */<a name="line.1219"></a> +<span class="sourceLineNo">1220</span> public static final String CRYPTO_MASTERKEY_ALTERNATE_NAME_CONF_KEY =<a name="line.1220"></a> +<span class="sourceLineNo">1221</span> "hbase.crypto.master.alternate.key.name";<a name="line.1221"></a> +<span class="sourceLineNo">1222</span><a name="line.1222"></a> +<span class="sourceLineNo">1223</span> /** Configuration key for the algorithm to use when encrypting the WAL, a string */<a name="line.1223"></a> +<span class="sourceLineNo">1224</span> public static final String CRYPTO_WAL_ALGORITHM_CONF_KEY = "hbase.crypto.wal.algorithm";<a name="line.1224"></a> +<span class="sourceLineNo">1225</span><a name="line.1225"></a> +<span class="sourceLineNo">1226</span> /** Configuration key for the name of the master WAL encryption key for the cluster, a string */<a name="line.1226"></a> +<span class="sourceLineNo">1227</span> public static final String CRYPTO_WAL_KEY_NAME_CONF_KEY = "hbase.crypto.wal.key.name";<a name="line.1227"></a> +<span class="sourceLineNo">1228</span><a name="line.1228"></a> +<span class="sourceLineNo">1229</span> /** Configuration key for the algorithm used for creating jks key, a string */<a name="line.1229"></a> +<span class="sourceLineNo">1230</span> public static final String CRYPTO_KEY_ALGORITHM_CONF_KEY = "hbase.crypto.key.algorithm";<a name="line.1230"></a> +<span class="sourceLineNo">1231</span><a name="line.1231"></a> +<span class="sourceLineNo">1232</span> /** Configuration key for the name of the alternate cipher algorithm for the cluster, a string */<a name="line.1232"></a> +<span class="sourceLineNo">1233</span> public static final String CRYPTO_ALTERNATE_KEY_ALGORITHM_CONF_KEY =<a name="line.1233"></a> +<span class="sourceLineNo">1234</span> "hbase.crypto.alternate.key.algorithm";<a name="line.1234"></a> +<span class="sourceLineNo">1235</span><a name="line.1235"></a> +<span class="sourceLineNo">1236</span> /** Configuration key for enabling WAL encryption, a boolean */<a name="line.1236"></a> +<span class="sourceLineNo">1237</span> public static final String ENABLE_WAL_ENCRYPTION = "hbase.regionserver.wal.encryption";<a name="line.1237"></a> +<span class="sourceLineNo">1238</span><a name="line.1238"></a> +<span class="sourceLineNo">1239</span> /** Configuration key for setting RPC codec class name */<a name="line.1239"></a> +<span class="sourceLineNo">1240</span> public static final String RPC_CODEC_CONF_KEY = "hbase.client.rpc.codec";<a name="line.1240"></a> +<span class="sourceLineNo">1241</span><a name="line.1241"></a> +<span class="sourceLineNo">1242</span> /** Configuration key for setting replication codec class name */<a name="line.1242"></a> +<span class="sourceLineNo">1243</span> public static final String REPLICATION_CODEC_CONF_KEY = "hbase.replication.rpc.codec";<a name="line.1243"></a> +<span class="sourceLineNo">1244</span><a name="line.1244"></a> +<span class="sourceLineNo">1245</span> /** Maximum number of threads used by the replication source for shipping edits to the sinks */<a name="line.1245"></a> +<span class="sourceLineNo">1246</span> public static final String REPLICATION_SOURCE_MAXTHREADS_KEY =<a name="line.1246"></a> +<span class="sourceLineNo">1247</span> "hbase.replication.source.maxthreads";<a name="line.1247"></a> +<span class="sourceLineNo">1248</span><a name="line.1248"></a> +<span class="sourceLineNo">1249</span> public static final int REPLICATION_SOURCE_MAXTHREADS_DEFAULT = 10;<a name="line.1249"></a> +<span class="sourceLineNo">1250</span><a name="line.1250"></a> +<span class="sourceLineNo">1251</span> /** Config for pluggable consensus provider */<a name="line.1251"></a> +<span class="sourceLineNo">1252</span> public static final String HBASE_COORDINATED_STATE_MANAGER_CLASS =<a name="line.1252"></a> +<span class="sourceLineNo">1253</span> "hbase.coordinated.state.manager.class";<a name="line.1253"></a> +<span class="sourceLineNo">1254</span><a name="line.1254"></a> +<span class="sourceLineNo">1255</span> /** Configuration key for SplitLog manager timeout */<a name="line.1255"></a> +<span class="sourceLineNo">1256</span> public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout";<a name="line.1256"></a> +<span class="sourceLineNo">1257</span><a name="line.1257"></a> +<span class="sourceLineNo">1258</span> /**<a name="line.1258"></a> +<span class="sourceLineNo">1259</span> * Configuration keys for Bucket cache<a name="line.1259"></a> +<span class="sourceLineNo">1260</span> */<a name="line.1260"></a> +<span class="sourceLineNo">1261</span> // TODO moving these bucket cache implementation specific configs to this level is violation of<a name="line.1261"></a> +<span class="sourceLineNo">1262</span> // encapsulation. But as these has to be referred from hbase-common and bucket cache<a name="line.1262"></a> +<span class="sourceLineNo">1263</span> // sits in hbase-server, there were no other go! Can we move the cache implementation to<a name="line.1263"></a> +<span class="sourceLineNo">1264</span> // hbase-common?<a name="line.1264"></a> +<span class="sourceLineNo">1265</span><a name="line.1265"></a> +<span class="sourceLineNo">1266</span> /**<a name="line.1266"></a> +<span class="sourceLineNo">1267</span> * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path<a name="line.1267"></a> +<span class="sourceLineNo">1268</span> * to the file that will host the file-based cache. See BucketCache#getIOEngineFromName() for<a name="line.1268"></a> +<span class="sourceLineNo">1269</span> * list of supported ioengine options.<a name="line.1269"></a> +<span class="sourceLineNo">1270</span> * <p>Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache.<a name="line.1270"></a> +<span class="sourceLineNo">1271</span> */<a name="line.1271"></a> +<span class="sourceLineNo">1272</span> public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine";<a name="line.1272"></a> +<span class="sourceLineNo">1273</span><a name="line.1273"></a> +<span class="sourceLineNo">1274</span> /**<a name="line.1274"></a> +<span class="sourceLineNo">1275</span> * When using bucket cache, this is a float that EITHER represents a percentage of total heap<a name="line.1275"></a> +<span class="sourceLineNo">1276</span> * memory size to give to the cache (if &lt; 1.0) OR, it is the capacity in<a name="line.1276"></a> +<span class="sourceLineNo">1277</span> * megabytes of the cache.<a name="line.1277"></a> +<span class="sourceLineNo">1278</span> */<a name="line.1278"></a> +<span class="sourceLineNo">1279</span> public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size";<a name="line.1279"></a> +<span class="sourceLineNo">1280</span><a name="line.1280"></a> +<span class="sourceLineNo">1281</span> /**<a name="line.1281"></a> +<span class="sourceLineNo">1282</span> * HConstants for fast fail on the client side follow<a name="line.1282"></a> +<span class="sourceLineNo">1283</span> */<a name="line.1283"></a> +<span class="sourceLineNo">1284</span> /**<a name="line.1284"></a> +<span class="sourceLineNo">1285</span> * Config for enabling/disabling the fast fail mode.<a name="line.1285"></a> +<span class="sourceLineNo">1286</span> */<a name="line.1286"></a> +<span class="sourceLineNo">1287</span> public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED =<a name="line.1287"></a> +<span class="sourceLineNo">1288</span> "hbase.client.fast.fail.mode.enabled";<a name="line.1288"></a> +<span class="sourceLineNo">1289</span><a name="line.1289"></a> +<span class="sourceLineNo">1290</span> public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT =<a name="line.1290"></a> +<span class="sourceLineNo">1291</span> false;<a name="line.1291"></a> +<span class="sourceLineNo">1292</span><a name="line.1292"></a> +<span class="sourceLineNo">1293</span> public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS =<a name="line.1293"></a> +<span class="sourceLineNo">1294</span> "hbase.client.fastfail.threshold";<a name="line.1294"></a> +<span class="sourceLineNo">1295</span><a name="line.1295"></a> +<span class="sourceLineNo">1296</span> public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT =<a name="line.1296"></a> +<span class="sourceLineNo">1297</span> 60000;<a name="line.1297"></a> +<span class="sourceLineNo">1298</span><a name="line.1298"></a> +<span class="sourceLineNo">1299</span> public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS =<a name="line.1299"></a> +<span class="sourceLineNo">1300</span> "hbase.client.fast.fail.cleanup.duration";<a name="line.1300"></a> +<span class="sourceLineNo">1301</span><a name="line.1301"></a> +<span class="sourceLineNo">1302</span> public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT =<a name="line.1302"></a> +<span class="sourceLineNo">1303</span> 600000;<a name="line.1303"></a> +<span class="sourceLineNo">1304</span><a name="line.1304"></a> +<span class="sourceLineNo">1305</span> public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL =<a name="line.1305"></a> +<span class="sourceLineNo">1306</span> "hbase.client.fast.fail.interceptor.impl";<a name="line.1306"></a> +<span class="sourceLineNo">1307</span><a name="line.1307"></a> +<span class="sourceLineNo">1308</span> /** Config key for if the server should send backpressure and if the client should listen to<a name="line.1308"></a> +<span class="sourceLineNo">1309</span> * that backpressure from the server */<a name="line.1309"></a> +<span class="sourceLineNo">1310</span> public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled";<a name="line.1310"></a> +<span class="sourceLineNo">1311</span> public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false;<a name="line.1311"></a> +<span class="sourceLineNo">1312</span><a name="line.1312"></a> +<span class="sourceLineNo">1313</span> public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY =<a name="line.1313"></a> +<span class="sourceLineNo">1314</span> "hbase.heap.occupancy.low_water_mark";<a name="line.1314"></a> +<span class="sourceLineNo">1315</span> public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f;<a name="line.1315"></a> +<span class="sourceLineNo">1316</span> public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY =<a name="line.1316"></a> +<span class="sourceLineNo">1317</span> "hbase.heap.occupancy.high_water_mark";<a name="line.1317"></a> +<span class="sourceLineNo">1318</span> public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f;<a name="line.1318"></a> +<span class="sourceLineNo">1319</span><a name="line.1319"></a> +<span class="sourceLineNo">1320</span> /**<a name="line.1320"></a> +<span class="sourceLineNo">1321</span> * The max number of threads used for splitting storefiles in parallel during<a name="line.1321"></a> +<span class="sourceLineNo">1322</span> * the region split process.<a name="line.1322"></a> +<span class="sourceLineNo">1323</span> */<a name="line.1323"></a> +<span class="sourceLineNo">1324</span> public static final String REGION_SPLIT_THREADS_MAX =<a name="line.1324"></a> +<span class="sourceLineNo">1325</span> "hbase.regionserver.region.split.threads.max";<a name="line.1325"></a> +<span class="sourceLineNo">1326</span><a name="line.1326"></a> +<span class="sourceLineNo">1327</span> /** Canary config keys */<a name="line.1327"></a> +<span class="sourceLineNo">1328</span> public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl";<a name="line.1328"></a> +<span class="sourceLineNo">1329</span><a name="line.1329"></a> +<span class="sourceLineNo">1330</span> public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY =<a name="line.1330"></a> +<span class="sourceLineNo">1331</span> "hbase.canary.write.perserver.regions.lowerLimit";<a name="line.1331"></a> +<span class="sourceLineNo">1332</span><a name="line.1332"></a> +<span class="sourceLineNo">1333</span> public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_UPPERLIMIT_KEY =<a name="line.1333"></a> +<span class="sourceLineNo">1334</span> "hbase.canary.write.perserver.regions.upperLimit";<a name="line.1334"></a> +<span class="sourceLineNo">1335</span><a name="line.1335"></a> +<span class="sourceLineNo">1336</span> public static final String HBASE_CANARY_WRITE_VALUE_SIZE_KEY = "hbase.canary.write.value.size";<a name="line.1336"></a> +<span class="sourceLineNo">1337</span><a name="line.1337"></a> +<span class="sourceLineNo">1338</span> public static final String HBASE_CANARY_WRITE_TABLE_CHECK_PERIOD_KEY =<a name="line.1338"></a> +<span class="sourceLineNo">1339</span> "hbase.canary.write.table.check.period";<a name="line.1339"></a> +<span class="sourceLineNo">1340</span> <a name="line.1340"></a> +<span class="sourceLineNo">1341</span> public static final String HBASE_CANARY_READ_RAW_SCAN_KEY = "hbase.canary.read.raw.enabled";<a name="line.1341"></a> +<span class="sourceLineNo">1342</span><a name="line.1342"></a> +<span class="sourceLineNo">1343</span> /**<a name="line.1343"></a> +<span class="sourceLineNo">1344</span> * Configuration keys for programmatic JAAS configuration for secured ZK interaction<a name="line.1344"></a> +<span class="sourceLineNo">1345</span> */<a name="line.1345"></a> +<span class="sourceLineNo">1346</span> public static final String ZK_CLIENT_KEYTAB_FILE = "hbase.zookeeper.client.keytab.file";<a name="line.1346"></a> +<span class="sourceLineNo">1347</span> public static final String ZK_CLIENT_KERBEROS_PRINCIPAL =<a name="line.1347"></a> +<span class="sourceLineNo">1348</span> "hbase.zookeeper.client.kerberos.principal";<a name="line.1348"></a> +<span class="sourceLineNo">1349</span> public static final String ZK_SERVER_KEYTAB_FILE = "hbase.zookeeper.server.keytab.file";<a name="line.1349"></a> +<span class="sourceLineNo">1350</span> public static final String ZK_SERVER_KERBEROS_PRINCIPAL =<a name="line.1350"></a> +<span class="sourceLineNo">1351</span> "hbase.zookeeper.server.kerberos.principal";<a name="line.1351"></a> +<span class="sourceLineNo">1352</span><a name="line.1352"></a> +<span class="sourceLineNo">1353</span> /** Config key for hbase temporary directory in hdfs */<a name="line.1353"></a> +<span class="sourceLineNo">1354</span> public static final String TEMPORARY_FS_DIRECTORY_KEY = "hbase.fs.tmp.dir";<a name="line.1354"></a> +<span class="sourceLineNo">1355</span> public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/"<a name="line.1355"></a> +<span class="sourceLineNo">1356</span> + System.getProperty("user.name") + "/hbase-staging";<a name="line.1356"></a> +<span class="sourceLineNo">1357</span><a name="line.1357"></a> +<span class="sourceLineNo">1358</span> public static final String SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT =<a name="line.1358"></a> +<span class="sourceLineNo">1359</span> "hbase.snapshot.restore.take.failsafe.snapshot";<a name="line.1359"></a> +<span class="sourceLineNo">1360</span> public static final boolean DEFAULT_SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT = false;<a name="line.1360"></a> +<span class="sourceLineNo">1361</span><a name="line.1361"></a> +<span class="sourceLineNo">1362</span> public static final String SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1362"></a> +<span class="sourceLineNo">1363</span> "hbase.snapshot.restore.failsafe.name";<a name="line.1363"></a> +<span class="sourceLineNo">1364</span> public static final String DEFAULT_SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1364"></a> +<span class="sourceLineNo">1365</span> "hbase-failsafe-{snapshot.name}-{restore.timestamp}";<a name="line.1365"></a> +<span class="sourceLineNo">1366</span><a name="line.1366"></a> +<span class="sourceLineNo">1367</span> private HConstants() {<a name="line.1367"></a> +<span class="sourceLineNo">1368</span> // Can't be instantiated with this ctor.<a name="line.1368"></a> +<span class="sourceLineNo">1369</span> }<a name="line.1369"></a> +<span class="sourceLineNo">1370</span>}<a name="line.1370"></a>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/Version.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html index d126d1a..05f6106 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html @@ -16,11 +16,11 @@ <span class="sourceLineNo">008</span>@InterfaceAudience.Private<a name="line.8"></a> <span class="sourceLineNo">009</span>public class Version {<a name="line.9"></a> <span class="sourceLineNo">010</span> public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a> -<span class="sourceLineNo">011</span> public static final String revision = "70a357dc5cc74ae6a354c907959f644f563aeee4";<a name="line.11"></a> +<span class="sourceLineNo">011</span> public static final String revision = "317ce739631495c056a8f82f580c46ccdab3f937";<a name="line.11"></a> <span class="sourceLineNo">012</span> public static final String user = "jenkins";<a name="line.12"></a> -<span class="sourceLineNo">013</span> public static final String date = "Fri Jul 21 21:39:42 UTC 2017";<a name="line.13"></a> +<span class="sourceLineNo">013</span> public static final String date = "Sat Jul 22 21:39:39 UTC 2017";<a name="line.13"></a> <span class="sourceLineNo">014</span> public static final String url = "git://asf920.gq1.ygridcore.net/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a> -<span class="sourceLineNo">015</span> public static final String srcChecksum = "aca0eaae9a7b8aa4c8d1fbba0bd4235f";<a name="line.15"></a> +<span class="sourceLineNo">015</span> public static final String srcChecksum = "484716b6e7cb270f34d55842425ea5b2";<a name="line.15"></a> <span class="sourceLineNo">016</span>}<a name="line.16"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/Action.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Action.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Action.html index 9d35a0e..1846104 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Action.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Action.html @@ -40,67 +40,75 @@ <span class="sourceLineNo">032</span> private final int originalIndex;<a name="line.32"></a> <span class="sourceLineNo">033</span> private long nonce = HConstants.NO_NONCE;<a name="line.33"></a> <span class="sourceLineNo">034</span> private int replicaId = RegionReplicaUtil.DEFAULT_REPLICA_ID;<a name="line.34"></a> -<span class="sourceLineNo">035</span><a name="line.35"></a> -<span class="sourceLineNo">036</span> public Action(Row action, int originalIndex) {<a name="line.36"></a> -<span class="sourceLineNo">037</span> this.action = action;<a name="line.37"></a> -<span class="sourceLineNo">038</span> this.originalIndex = originalIndex;<a name="line.38"></a> +<span class="sourceLineNo">035</span> private int priority;<a name="line.35"></a> +<span class="sourceLineNo">036</span><a name="line.36"></a> +<span class="sourceLineNo">037</span> public Action(Row action, int originalIndex) {<a name="line.37"></a> +<span class="sourceLineNo">038</span> this(action, originalIndex, HConstants.PRIORITY_UNSET);<a name="line.38"></a> <span class="sourceLineNo">039</span> }<a name="line.39"></a> <span class="sourceLineNo">040</span><a name="line.40"></a> -<span class="sourceLineNo">041</span> /**<a name="line.41"></a> -<span class="sourceLineNo">042</span> * Creates an action for a particular replica from original action.<a name="line.42"></a> -<span class="sourceLineNo">043</span> * @param action Original action.<a name="line.43"></a> -<span class="sourceLineNo">044</span> * @param replicaId Replica id for the new action.<a name="line.44"></a> -<span class="sourceLineNo">045</span> */<a name="line.45"></a> -<span class="sourceLineNo">046</span> public Action(Action action, int replicaId) {<a name="line.46"></a> -<span class="sourceLineNo">047</span> this.action = action.action;<a name="line.47"></a> -<span class="sourceLineNo">048</span> this.nonce = action.nonce;<a name="line.48"></a> -<span class="sourceLineNo">049</span> this.originalIndex = action.originalIndex;<a name="line.49"></a> -<span class="sourceLineNo">050</span> this.replicaId = replicaId;<a name="line.50"></a> -<span class="sourceLineNo">051</span> }<a name="line.51"></a> -<span class="sourceLineNo">052</span><a name="line.52"></a> -<span class="sourceLineNo">053</span> public void setNonce(long nonce) {<a name="line.53"></a> -<span class="sourceLineNo">054</span> this.nonce = nonce;<a name="line.54"></a> -<span class="sourceLineNo">055</span> }<a name="line.55"></a> -<span class="sourceLineNo">056</span><a name="line.56"></a> -<span class="sourceLineNo">057</span> public boolean hasNonce() {<a name="line.57"></a> -<span class="sourceLineNo">058</span> return nonce != HConstants.NO_NONCE;<a name="line.58"></a> -<span class="sourceLineNo">059</span> }<a name="line.59"></a> -<span class="sourceLineNo">060</span><a name="line.60"></a> -<span class="sourceLineNo">061</span> public Row getAction() {<a name="line.61"></a> -<span class="sourceLineNo">062</span> return action;<a name="line.62"></a> -<span class="sourceLineNo">063</span> }<a name="line.63"></a> -<span class="sourceLineNo">064</span><a name="line.64"></a> -<span class="sourceLineNo">065</span> public int getOriginalIndex() {<a name="line.65"></a> -<span class="sourceLineNo">066</span> return originalIndex;<a name="line.66"></a> -<span class="sourceLineNo">067</span> }<a name="line.67"></a> -<span class="sourceLineNo">068</span><a name="line.68"></a> -<span class="sourceLineNo">069</span> public int getReplicaId() {<a name="line.69"></a> -<span class="sourceLineNo">070</span> return replicaId;<a name="line.70"></a> -<span class="sourceLineNo">071</span> }<a name="line.71"></a> -<span class="sourceLineNo">072</span><a name="line.72"></a> -<span class="sourceLineNo">073</span> @Override<a name="line.73"></a> -<span class="sourceLineNo">074</span> public int compareTo(Action other) {<a name="line.74"></a> -<span class="sourceLineNo">075</span> return action.compareTo(other.getAction());<a name="line.75"></a> -<span class="sourceLineNo">076</span> }<a name="line.76"></a> -<span class="sourceLineNo">077</span><a name="line.77"></a> -<span class="sourceLineNo">078</span> @Override<a name="line.78"></a> -<span class="sourceLineNo">079</span> public int hashCode() {<a name="line.79"></a> -<span class="sourceLineNo">080</span> return this.action.hashCode();<a name="line.80"></a> -<span class="sourceLineNo">081</span> }<a name="line.81"></a> -<span class="sourceLineNo">082</span><a name="line.82"></a> -<span class="sourceLineNo">083</span> @Override<a name="line.83"></a> -<span class="sourceLineNo">084</span> public boolean equals(Object obj) {<a name="line.84"></a> -<span class="sourceLineNo">085</span> if (this == obj) return true;<a name="line.85"></a> -<span class="sourceLineNo">086</span> if (obj instanceof Action) {<a name="line.86"></a> -<span class="sourceLineNo">087</span> return compareTo((Action) obj) == 0;<a name="line.87"></a> -<span class="sourceLineNo">088</span> }<a name="line.88"></a> -<span class="sourceLineNo">089</span> return false;<a name="line.89"></a> -<span class="sourceLineNo">090</span> }<a name="line.90"></a> -<span class="sourceLineNo">091</span><a name="line.91"></a> -<span class="sourceLineNo">092</span> public long getNonce() {<a name="line.92"></a> -<span class="sourceLineNo">093</span> return nonce;<a name="line.93"></a> -<span class="sourceLineNo">094</span> }<a name="line.94"></a> -<span class="sourceLineNo">095</span>}<a name="line.95"></a> +<span class="sourceLineNo">041</span> public Action(Row action, int originalIndex, int priority) {<a name="line.41"></a> +<span class="sourceLineNo">042</span> this.action = action;<a name="line.42"></a> +<span class="sourceLineNo">043</span> this.originalIndex = originalIndex;<a name="line.43"></a> +<span class="sourceLineNo">044</span> this.priority = priority;<a name="line.44"></a> +<span class="sourceLineNo">045</span> }<a name="line.45"></a> +<span class="sourceLineNo">046</span><a name="line.46"></a> +<span class="sourceLineNo">047</span> /**<a name="line.47"></a> +<span class="sourceLineNo">048</span> * Creates an action for a particular replica from original action.<a name="line.48"></a> +<span class="sourceLineNo">049</span> * @param action Original action.<a name="line.49"></a> +<span class="sourceLineNo">050</span> * @param replicaId Replica id for the new action.<a name="line.50"></a> +<span class="sourceLineNo">051</span> */<a name="line.51"></a> +<span class="sourceLineNo">052</span> public Action(Action action, int replicaId) {<a name="line.52"></a> +<span class="sourceLineNo">053</span> this.action = action.action;<a name="line.53"></a> +<span class="sourceLineNo">054</span> this.nonce = action.nonce;<a name="line.54"></a> +<span class="sourceLineNo">055</span> this.originalIndex = action.originalIndex;<a name="line.55"></a> +<span class="sourceLineNo">056</span> this.replicaId = replicaId;<a name="line.56"></a> +<span class="sourceLineNo">057</span> }<a name="line.57"></a> +<span class="sourceLineNo">058</span><a name="line.58"></a> +<span class="sourceLineNo">059</span> public void setNonce(long nonce) {<a name="line.59"></a> +<span class="sourceLineNo">060</span> this.nonce = nonce;<a name="line.60"></a> +<span class="sourceLineNo">061</span> }<a name="line.61"></a> +<span class="sourceLineNo">062</span><a name="line.62"></a> +<span class="sourceLineNo">063</span> public boolean hasNonce() {<a name="line.63"></a> +<span class="sourceLineNo">064</span> return nonce != HConstants.NO_NONCE;<a name="line.64"></a> +<span class="sourceLineNo">065</span> }<a name="line.65"></a> +<span class="sourceLineNo">066</span><a name="line.66"></a> +<span class="sourceLineNo">067</span> public Row getAction() {<a name="line.67"></a> +<span class="sourceLineNo">068</span> return action;<a name="line.68"></a> +<span class="sourceLineNo">069</span> }<a name="line.69"></a> +<span class="sourceLineNo">070</span><a name="line.70"></a> +<span class="sourceLineNo">071</span> public int getOriginalIndex() {<a name="line.71"></a> +<span class="sourceLineNo">072</span> return originalIndex;<a name="line.72"></a> +<span class="sourceLineNo">073</span> }<a name="line.73"></a> +<span class="sourceLineNo">074</span><a name="line.74"></a> +<span class="sourceLineNo">075</span> public int getReplicaId() {<a name="line.75"></a> +<span class="sourceLineNo">076</span> return replicaId;<a name="line.76"></a> +<span class="sourceLineNo">077</span> }<a name="line.77"></a> +<span class="sourceLineNo">078</span><a name="line.78"></a> +<span class="sourceLineNo">079</span> public int getPriority() { return priority; }<a name="line.79"></a> +<span class="sourceLineNo">080</span><a name="line.80"></a> +<span class="sourceLineNo">081</span> @Override<a name="line.81"></a> +<span class="sourceLineNo">082</span> public int compareTo(Action other) {<a name="line.82"></a> +<span class="sourceLineNo">083</span> return action.compareTo(other.getAction());<a name="line.83"></a> +<span class="sourceLineNo">084</span> }<a name="line.84"></a> +<span class="sourceLineNo">085</span><a name="line.85"></a> +<span class="sourceLineNo">086</span> @Override<a name="line.86"></a> +<span class="sourceLineNo">087</span> public int hashCode() {<a name="line.87"></a> +<span class="sourceLineNo">088</span> return this.action.hashCode();<a name="line.88"></a> +<span class="sourceLineNo">089</span> }<a name="line.89"></a> +<span class="sourceLineNo">090</span><a name="line.90"></a> +<span class="sourceLineNo">091</span> @Override<a name="line.91"></a> +<span class="sourceLineNo">092</span> public boolean equals(Object obj) {<a name="line.92"></a> +<span class="sourceLineNo">093</span> if (this == obj) return true;<a name="line.93"></a> +<span class="sourceLineNo">094</span> if (obj instanceof Action) {<a name="line.94"></a> +<span class="sourceLineNo">095</span> return compareTo((Action) obj) == 0;<a name="line.95"></a> +<span class="sourceLineNo">096</span> }<a name="line.96"></a> +<span class="sourceLineNo">097</span> return false;<a name="line.97"></a> +<span class="sourceLineNo">098</span> }<a name="line.98"></a> +<span class="sourceLineNo">099</span><a name="line.99"></a> +<span class="sourceLineNo">100</span> public long getNonce() {<a name="line.100"></a> +<span class="sourceLineNo">101</span> return nonce;<a name="line.101"></a> +<span class="sourceLineNo">102</span> }<a name="line.102"></a> +<span class="sourceLineNo">103</span>}<a name="line.103"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/Append.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Append.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Append.html index eca8d11..ed040f4 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Append.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Append.html @@ -92,110 +92,116 @@ <span class="sourceLineNo">084</span> for (Map.Entry<String, byte[]> entry : a.getAttributesMap().entrySet()) {<a name="line.84"></a> <span class="sourceLineNo">085</span> this.setAttribute(entry.getKey(), entry.getValue());<a name="line.85"></a> <span class="sourceLineNo">086</span> }<a name="line.86"></a> -<span class="sourceLineNo">087</span> }<a name="line.87"></a> -<span class="sourceLineNo">088</span><a name="line.88"></a> -<span class="sourceLineNo">089</span> /** Create a Append operation for the specified row.<a name="line.89"></a> -<span class="sourceLineNo">090</span> * <p><a name="line.90"></a> -<span class="sourceLineNo">091</span> * At least one column must be appended to.<a name="line.91"></a> -<span class="sourceLineNo">092</span> * @param rowArray Makes a copy out of this buffer.<a name="line.92"></a> -<span class="sourceLineNo">093</span> * @param rowOffset<a name="line.93"></a> -<span class="sourceLineNo">094</span> * @param rowLength<a name="line.94"></a> -<span class="sourceLineNo">095</span> */<a name="line.95"></a> -<span class="sourceLineNo">096</span> public Append(final byte [] rowArray, final int rowOffset, final int rowLength) {<a name="line.96"></a> -<span class="sourceLineNo">097</span> checkRow(rowArray, rowOffset, rowLength);<a name="line.97"></a> -<span class="sourceLineNo">098</span> this.row = Bytes.copy(rowArray, rowOffset, rowLength);<a name="line.98"></a> -<span class="sourceLineNo">099</span> }<a name="line.99"></a> -<span class="sourceLineNo">100</span><a name="line.100"></a> -<span class="sourceLineNo">101</span> /**<a name="line.101"></a> -<span class="sourceLineNo">102</span> * Add the specified column and value to this Append operation.<a name="line.102"></a> -<span class="sourceLineNo">103</span> * @param family family name<a name="line.103"></a> -<span class="sourceLineNo">104</span> * @param qualifier column qualifier<a name="line.104"></a> -<span class="sourceLineNo">105</span> * @param value value to append to specified column<a name="line.105"></a> -<span class="sourceLineNo">106</span> * @return this<a name="line.106"></a> -<span class="sourceLineNo">107</span> * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.107"></a> -<span class="sourceLineNo">108</span> * Use {@link #addColumn(byte[], byte[], byte[])} instead<a name="line.108"></a> -<span class="sourceLineNo">109</span> */<a name="line.109"></a> -<span class="sourceLineNo">110</span> @Deprecated<a name="line.110"></a> -<span class="sourceLineNo">111</span> public Append add(byte [] family, byte [] qualifier, byte [] value) {<a name="line.111"></a> -<span class="sourceLineNo">112</span> return this.addColumn(family, qualifier, value);<a name="line.112"></a> -<span class="sourceLineNo">113</span> }<a name="line.113"></a> -<span class="sourceLineNo">114</span><a name="line.114"></a> -<span class="sourceLineNo">115</span> /**<a name="line.115"></a> -<span class="sourceLineNo">116</span> * Add the specified column and value to this Append operation.<a name="line.116"></a> -<span class="sourceLineNo">117</span> * @param family family name<a name="line.117"></a> -<span class="sourceLineNo">118</span> * @param qualifier column qualifier<a name="line.118"></a> -<span class="sourceLineNo">119</span> * @param value value to append to specified column<a name="line.119"></a> -<span class="sourceLineNo">120</span> * @return this<a name="line.120"></a> -<span class="sourceLineNo">121</span> */<a name="line.121"></a> -<span class="sourceLineNo">122</span> public Append addColumn(byte[] family, byte[] qualifier, byte[] value) {<a name="line.122"></a> -<span class="sourceLineNo">123</span> KeyValue kv = new KeyValue(this.row, family, qualifier, this.ts, KeyValue.Type.Put, value);<a name="line.123"></a> -<span class="sourceLineNo">124</span> return add(kv);<a name="line.124"></a> -<span class="sourceLineNo">125</span> }<a name="line.125"></a> -<span class="sourceLineNo">126</span><a name="line.126"></a> -<span class="sourceLineNo">127</span> /**<a name="line.127"></a> -<span class="sourceLineNo">128</span> * Add column and value to this Append operation.<a name="line.128"></a> -<span class="sourceLineNo">129</span> * @param cell<a name="line.129"></a> -<span class="sourceLineNo">130</span> * @return This instance<a name="line.130"></a> -<span class="sourceLineNo">131</span> */<a name="line.131"></a> -<span class="sourceLineNo">132</span> @SuppressWarnings("unchecked")<a name="line.132"></a> -<span class="sourceLineNo">133</span> public Append add(final Cell cell) {<a name="line.133"></a> -<span class="sourceLineNo">134</span> // Presume it is KeyValue for now.<a name="line.134"></a> -<span class="sourceLineNo">135</span> byte [] family = CellUtil.cloneFamily(cell);<a name="line.135"></a> -<span class="sourceLineNo">136</span> List<Cell> list = this.familyMap.get(family);<a name="line.136"></a> -<span class="sourceLineNo">137</span> if (list == null) {<a name="line.137"></a> -<span class="sourceLineNo">138</span> list = new ArrayList<>(1);<a name="line.138"></a> -<span class="sourceLineNo">139</span> }<a name="line.139"></a> -<span class="sourceLineNo">140</span> // find where the new entry should be placed in the List<a name="line.140"></a> -<span class="sourceLineNo">141</span> list.add(cell);<a name="line.141"></a> -<span class="sourceLineNo">142</span> this.familyMap.put(family, list);<a name="line.142"></a> -<span class="sourceLineNo">143</span> return this;<a name="line.143"></a> -<span class="sourceLineNo">144</span> }<a name="line.144"></a> -<span class="sourceLineNo">145</span><a name="line.145"></a> -<span class="sourceLineNo">146</span> @Override<a name="line.146"></a> -<span class="sourceLineNo">147</span> public Append setAttribute(String name, byte[] value) {<a name="line.147"></a> -<span class="sourceLineNo">148</span> return (Append) super.setAttribute(name, value);<a name="line.148"></a> -<span class="sourceLineNo">149</span> }<a name="line.149"></a> -<span class="sourceLineNo">150</span><a name="line.150"></a> -<span class="sourceLineNo">151</span> @Override<a name="line.151"></a> -<span class="sourceLineNo">152</span> public Append setId(String id) {<a name="line.152"></a> -<span class="sourceLineNo">153</span> return (Append) super.setId(id);<a name="line.153"></a> -<span class="sourceLineNo">154</span> }<a name="line.154"></a> -<span class="sourceLineNo">155</span><a name="line.155"></a> -<span class="sourceLineNo">156</span> @Override<a name="line.156"></a> -<span class="sourceLineNo">157</span> public Append setDurability(Durability d) {<a name="line.157"></a> -<span class="sourceLineNo">158</span> return (Append) super.setDurability(d);<a name="line.158"></a> -<span class="sourceLineNo">159</span> }<a name="line.159"></a> -<span class="sourceLineNo">160</span><a name="line.160"></a> -<span class="sourceLineNo">161</span> @Override<a name="line.161"></a> -<span class="sourceLineNo">162</span> public Append setFamilyCellMap(NavigableMap<byte[], List<Cell>> map) {<a name="line.162"></a> -<span class="sourceLineNo">163</span> return (Append) super.setFamilyCellMap(map);<a name="line.163"></a> -<span class="sourceLineNo">164</span> }<a name="line.164"></a> -<span class="sourceLineNo">165</span><a name="line.165"></a> -<span class="sourceLineNo">166</span> @Override<a name="line.166"></a> -<span class="sourceLineNo">167</span> public Append setClusterIds(List<UUID> clusterIds) {<a name="line.167"></a> -<span class="sourceLineNo">168</span> return (Append) super.setClusterIds(clusterIds);<a name="line.168"></a> -<span class="sourceLineNo">169</span> }<a name="line.169"></a> -<span class="sourceLineNo">170</span><a name="line.170"></a> -<span class="sourceLineNo">171</span> @Override<a name="line.171"></a> -<span class="sourceLineNo">172</span> public Append setCellVisibility(CellVisibility expression) {<a name="line.172"></a> -<span class="sourceLineNo">173</span> return (Append) super.setCellVisibility(expression);<a name="line.173"></a> -<span class="sourceLineNo">174</span> }<a name="line.174"></a> -<span class="sourceLineNo">175</span><a name="line.175"></a> -<span class="sourceLineNo">176</span> @Override<a name="line.176"></a> -<span class="sourceLineNo">177</span> public Append setACL(String user, Permission perms) {<a name="line.177"></a> -<span class="sourceLineNo">178</span> return (Append) super.setACL(user, perms);<a name="line.178"></a> -<span class="sourceLineNo">179</span> }<a name="line.179"></a> -<span class="sourceLineNo">180</span><a name="line.180"></a> -<span class="sourceLineNo">181</span> @Override<a name="line.181"></a> -<span class="sourceLineNo">182</span> public Append setACL(Map<String, Permission> perms) {<a name="line.182"></a> -<span class="sourceLineNo">183</span> return (Append) super.setACL(perms);<a name="line.183"></a> -<span class="sourceLineNo">184</span> }<a name="line.184"></a> -<span class="sourceLineNo">185</span><a name="line.185"></a> -<span class="sourceLineNo">186</span> @Override<a name="line.186"></a> -<span class="sourceLineNo">187</span> public Append setTTL(long ttl) {<a name="line.187"></a> -<span class="sourceLineNo">188</span> return (Append) super.setTTL(ttl);<a name="line.188"></a> -<span class="sourceLineNo">189</span> }<a name="line.189"></a> -<span class="sourceLineNo">190</span>}<a name="line.190"></a> +<span class="sourceLineNo">087</span> this.setPriority(a.getPriority());<a name="line.87"></a> +<span class="sourceLineNo">088</span> }<a name="line.88"></a> +<span class="sourceLineNo">089</span><a name="line.89"></a> +<span class="sourceLineNo">090</span> /** Create a Append operation for the specified row.<a name="line.90"></a> +<span class="sourceLineNo">091</span> * <p><a name="line.91"></a> +<span class="sourceLineNo">092</span> * At least one column must be appended to.<a name="line.92"></a> +<span class="sourceLineNo">093</span> * @param rowArray Makes a copy out of this buffer.<a name="line.93"></a> +<span class="sourceLineNo">094</span> * @param rowOffset<a name="line.94"></a> +<span class="sourceLineNo">095</span> * @param rowLength<a name="line.95"></a> +<span class="sourceLineNo">096</span> */<a name="line.96"></a> +<span class="sourceLineNo">097</span> public Append(final byte [] rowArray, final int rowOffset, final int rowLength) {<a name="line.97"></a> +<span class="sourceLineNo">098</span> checkRow(rowArray, rowOffset, rowLength);<a name="line.98"></a> +<span class="sourceLineNo">099</span> this.row = Bytes.copy(rowArray, rowOffset, rowLength);<a name="line.99"></a> +<span class="sourceLineNo">100</span> }<a name="line.100"></a> +<span class="sourceLineNo">101</span><a name="line.101"></a> +<span class="sourceLineNo">102</span> /**<a name="line.102"></a> +<span class="sourceLineNo">103</span> * Add the specified column and value to this Append operation.<a name="line.103"></a> +<span class="sourceLineNo">104</span> * @param family family name<a name="line.104"></a> +<span class="sourceLineNo">105</span> * @param qualifier column qualifier<a name="line.105"></a> +<span class="sourceLineNo">106</span> * @param value value to append to specified column<a name="line.106"></a> +<span class="sourceLineNo">107</span> * @return this<a name="line.107"></a> +<span class="sourceLineNo">108</span> * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.108"></a> +<span class="sourceLineNo">109</span> * Use {@link #addColumn(byte[], byte[], byte[])} instead<a name="line.109"></a> +<span class="sourceLineNo">110</span> */<a name="line.110"></a> +<span class="sourceLineNo">111</span> @Deprecated<a name="line.111"></a> +<span class="sourceLineNo">112</span> public Append add(byte [] family, byte [] qualifier, byte [] value) {<a name="line.112"></a> +<span class="sourceLineNo">113</span> return this.addColumn(family, qualifier, value);<a name="line.113"></a> +<span class="sourceLineNo">114</span> }<a name="line.114"></a> +<span class="sourceLineNo">115</span><a name="line.115"></a> +<span class="sourceLineNo">116</span> /**<a name="line.116"></a> +<span class="sourceLineNo">117</span> * Add the specified column and value to this Append operation.<a name="line.117"></a> +<span class="sourceLineNo">118</span> * @param family family name<a name="line.118"></a> +<span class="sourceLineNo">119</span> * @param qualifier column qualifier<a name="line.119"></a> +<span class="sourceLineNo">120</span> * @param value value to append to specified column<a name="line.120"></a> +<span class="sourceLineNo">121</span> * @return this<a name="line.121"></a> +<span class="sourceLineNo">122</span> */<a name="line.122"></a> +<span class="sourceLineNo">123</span> public Append addColumn(byte[] family, byte[] qualifier, byte[] value) {<a name="line.123"></a> +<span class="sourceLineNo">124</span> KeyValue kv = new KeyValue(this.row, family, qualifier, this.ts, KeyValue.Type.Put, value);<a name="line.124"></a> +<span class="sourceLineNo">125</span> return add(kv);<a name="line.125"></a> +<span class="sourceLineNo">126</span> }<a name="line.126"></a> +<span class="sourceLineNo">127</span><a name="line.127"></a> +<span class="sourceLineNo">128</span> /**<a name="line.128"></a> +<span class="sourceLineNo">129</span> * Add column and value to this Append operation.<a name="line.129"></a> +<span class="sourceLineNo">130</span> * @param cell<a name="line.130"></a> +<span class="sourceLineNo">131</span> * @return This instance<a name="line.131"></a> +<span class="sourceLineNo">132</span> */<a name="line.132"></a> +<span class="sourceLineNo">133</span> @SuppressWarnings("unchecked")<a name="line.133"></a> +<span class="sourceLineNo">134</span> public Append add(final Cell cell) {<a name="line.134"></a> +<span class="sourceLineNo">135</span> // Presume it is KeyValue for now.<a name="line.135"></a> +<span class="sourceLineNo">136</span> byte [] family = CellUtil.cloneFamily(cell);<a name="line.136"></a> +<span class="sourceLineNo">137</span> List<Cell> list = this.familyMap.get(family);<a name="line.137"></a> +<span class="sourceLineNo">138</span> if (list == null) {<a name="line.138"></a> +<span class="sourceLineNo">139</span> list = new ArrayList<>(1);<a name="line.139"></a> +<span class="sourceLineNo">140</span> }<a name="line.140"></a> +<span class="sourceLineNo">141</span> // find where the new entry should be placed in the List<a name="line.141"></a> +<span class="sourceLineNo">142</span> list.add(cell);<a name="line.142"></a> +<span class="sourceLineNo">143</span> this.familyMap.put(family, list);<a name="line.143"></a> +<span class="sourceLineNo">144</span> return this;<a name="line.144"></a> +<span class="sourceLineNo">145</span> }<a name="line.145"></a> +<span class="sourceLineNo">146</span><a name="line.146"></a> +<span class="sourceLineNo">147</span> @Override<a name="line.147"></a> +<span class="sourceLineNo">148</span> public Append setAttribute(String name, byte[] value) {<a name="line.148"></a> +<span class="sourceLineNo">149</span> return (Append) super.setAttribute(name, value);<a name="line.149"></a> +<span class="sourceLineNo">150</span> }<a name="line.150"></a> +<span class="sourceLineNo">151</span><a name="line.151"></a> +<span class="sourceLineNo">152</span> @Override<a name="line.152"></a> +<span class="sourceLineNo">153</span> public Append setId(String id) {<a name="line.153"></a> +<span class="sourceLineNo">154</span> return (Append) super.setId(id);<a name="line.154"></a> +<span class="sourceLineNo">155</span> }<a name="line.155"></a> +<span class="sourceLineNo">156</span><a name="line.156"></a> +<span class="sourceLineNo">157</span> @Override<a name="line.157"></a> +<span class="sourceLineNo">158</span> public Append setDurability(Durability d) {<a name="line.158"></a> +<span class="sourceLineNo">159</span> return (Append) super.setDurability(d);<a name="line.159"></a> +<span class="sourceLineNo">160</span> }<a name="line.160"></a> +<span class="sourceLineNo">161</span><a name="line.161"></a> +<span class="sourceLineNo">162</span> @Override<a name="line.162"></a> +<span class="sourceLineNo">163</span> public Append setFamilyCellMap(NavigableMap<byte[], List<Cell>> map) {<a name="line.163"></a> +<span class="sourceLineNo">164</span> return (Append) super.setFamilyCellMap(map);<a name="line.164"></a> +<span class="sourceLineNo">165</span> }<a name="line.165"></a> +<span class="sourceLineNo">166</span><a name="line.166"></a> +<span class="sourceLineNo">167</span> @Override<a name="line.167"></a> +<span class="sourceLineNo">168</span> public Append setClusterIds(List<UUID> clusterIds) {<a name="line.168"></a> +<span class="sourceLineNo">169</span> return (Append) super.setClusterIds(clusterIds);<a name="line.169"></a> +<span class="sourceLineNo">170</span> }<a name="line.170"></a> +<span class="sourceLineNo">171</span><a name="line.171"></a> +<span class="sourceLineNo">172</span> @Override<a name="line.172"></a> +<span class="sourceLineNo">173</span> public Append setCellVisibility(CellVisibility expression) {<a name="line.173"></a> +<span class="sourceLineNo">174</span> return (Append) super.setCellVisibility(expression);<a name="line.174"></a> +<span class="sourceLineNo">175</span> }<a name="line.175"></a> +<span class="sourceLineNo">176</span><a name="line.176"></a> +<span class="sourceLineNo">177</span> @Override<a name="line.177"></a> +<span class="sourceLineNo">178</span> public Append setACL(String user, Permission perms) {<a name="line.178"></a> +<span class="sourceLineNo">179</span> return (Append) super.setACL(user, perms);<a name="line.179"></a> +<span class="sourceLineNo">180</span> }<a name="line.180"></a> +<span class="sourceLineNo">181</span><a name="line.181"></a> +<span class="sourceLineNo">182</span> @Override<a name="line.182"></a> +<span class="sourceLineNo">183</span> public Append setACL(Map<String, Permission> perms) {<a name="line.183"></a> +<span class="sourceLineNo">184</span> return (Append) super.setACL(perms);<a name="line.184"></a> +<span class="sourceLineNo">185</span> }<a name="line.185"></a> +<span class="sourceLineNo">186</span><a name="line.186"></a> +<span class="sourceLineNo">187</span> @Override<a name="line.187"></a> +<span class="sourceLineNo">188</span> public Append setPriority(int priority) {<a name="line.188"></a> +<span class="sourceLineNo">189</span> return (Append) super.setPriority(priority);<a name="line.189"></a> +<span class="sourceLineNo">190</span> }<a name="line.190"></a> +<span class="sourceLineNo">191</span><a name="line.191"></a> +<span class="sourceLineNo">192</span> @Override<a name="line.192"></a> +<span class="sourceLineNo">193</span> public Append setTTL(long ttl) {<a name="line.193"></a> +<span class="sourceLineNo">194</span> return (Append) super.setTTL(ttl);<a name="line.194"></a> +<span class="sourceLineNo">195</span> }<a name="line.195"></a> +<span class="sourceLineNo">196</span>}<a name="line.196"></a>