Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4EF10200C02 for ; Fri, 20 Jan 2017 20:19:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4D96B160B34; Fri, 20 Jan 2017 19:19:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3477F160B58 for ; Fri, 20 Jan 2017 20:19:50 +0100 (CET) Received: (qmail 92383 invoked by uid 500); 20 Jan 2017 19:19:49 -0000 Mailing-List: contact commits-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kudu.apache.org Delivered-To: mailing list commits@kudu.apache.org Received: (qmail 91254 invoked by uid 99); 20 Jan 2017 19:19:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2017 19:19:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 46099DFA43; Fri, 20 Jan 2017 19:19:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: todd@apache.org To: commits@kudu.apache.org Date: Fri, 20 Jan 2017 19:20:08 -0000 Message-Id: <4ba1a248d89845ac87cf93857d0a6793@git.apache.org> In-Reply-To: <052d6699b98b41e3b7d79eab08559df7@git.apache.org> References: <052d6699b98b41e3b7d79eab08559df7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [22/51] [partial] kudu-site git commit: Publish commit(s) from site source repo: 95b9a7a Update site for 1.2.0 release 5095504 KUDU-1818. Add link to Cloudera training in FAQ archived-at: Fri, 20 Jan 2017 19:19:53 -0000 http://git-wip-us.apache.org/repos/asf/kudu-site/blob/9b792926/cpp-client-api/kudu__export_8h_source.html ---------------------------------------------------------------------- diff --git a/cpp-client-api/kudu__export_8h_source.html b/cpp-client-api/kudu__export_8h_source.html index 4b9461d..f4b933c 100644 --- a/cpp-client-api/kudu__export_8h_source.html +++ b/cpp-client-api/kudu__export_8h_source.html @@ -3,15 +3,16 @@ - + Kudu C++ client API: include/kudu/util/kudu_export.h Source File + @@ -21,7 +22,7 @@ - @@ -30,7 +31,7 @@
+
Kudu C++ client API
- + @@ -69,7 +70,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> - All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages +
@@ -80,7 +81,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -88,55 +89,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
kudu_export.h
-
1 
-
2 #ifndef KUDU_EXPORT_H
-
3 #define KUDU_EXPORT_H
-
4 
-
5 #ifdef KUDU_STATIC_DEFINE
-
6 # define KUDU_EXPORT
-
7 # define KUDU_NO_EXPORT
-
8 #else
-
9 # ifndef KUDU_EXPORT
-
10 # ifdef kudu_client_exported_EXPORTS
-
11  /* We are building this library */
-
12 # define KUDU_EXPORT __attribute__((visibility("default")))
-
13 # else
-
14  /* We are using this library */
-
15 # define KUDU_EXPORT __attribute__((visibility("default")))
-
16 # endif
-
17 # endif
-
18 
-
19 # ifndef KUDU_NO_EXPORT
-
20 # define KUDU_NO_EXPORT __attribute__((visibility("hidden")))
-
21 # endif
-
22 #endif
-
23 
-
24 #ifndef KUDU_DEPRECATED
-
25 # define KUDU_DEPRECATED __attribute__ ((__deprecated__))
-
26 #endif
-
27 
-
28 #ifndef KUDU_DEPRECATED_EXPORT
-
29 # define KUDU_DEPRECATED_EXPORT KUDU_EXPORT KUDU_DEPRECATED
-
30 #endif
-
31 
-
32 #ifndef KUDU_DEPRECATED_NO_EXPORT
-
33 # define KUDU_DEPRECATED_NO_EXPORT KUDU_NO_EXPORT KUDU_DEPRECATED
-
34 #endif
-
35 
-
36 #if 0 /* DEFINE_NO_DEPRECATED */
-
37 # ifndef KUDU_NO_DEPRECATED
-
38 # define KUDU_NO_DEPRECATED
-
39 # endif
-
40 #endif
-
41 
-
42 #endif
-
+
1 
2 #ifndef KUDU_EXPORT_H
3 #define KUDU_EXPORT_H
4 
5 #ifdef KUDU_STATIC_DEFINE
6 # define KUDU_EXPORT
7 # define KUDU_NO_EXPORT
8  #else
9 # ifndef KUDU_EXPORT
10 # ifdef kudu_client_exported_EXPORTS
11  /* We are building this library */
12 # define KUDU_EXPORT __attribute__((visibility("default")))
13 # else
14  /* We are using this library */
15 # define KUDU_EXPORT __attribute__((visibility("default")))
16 # endif
17 # endif
18 
19 # ifndef KUDU_NO_EXPORT
20 # define KUDU_NO_EXPORT __attribute__((visibility("hidden")))
21 # endif
2 2 #endif
23 
24 #ifndef KUDU_DEPRECATED
25 # define KUDU_DEPRECATED __attribute__ ((__deprecated__))
26 #endif
27 
28 #ifndef KUDU_DEPRECATED_EXPORT
29 # define KUDU_DEPRECATED_EXPORT KUDU_EXPORT KUDU_DEPRECATED
30 #endif
31 
32 #ifndef KUDU_DEPRECATED_NO_EXPORT
33 # define KUDU_DEPRECATED_NO_EXPORT KUDU_NO_EXPORT KUDU_DEPRECATED
34 #endif
35 
36 #if 0 /* DEFINE_NO_DEPRECATED */
37 # ifndef KUDU_NO_DEPRECATED
38 # define KUDU_NO_DEPRECATED
39 # endif
40 #endif
41 
42 #endif
http://git-wip-us.apache.org/repos/asf/kudu-site/blob/9b792926/cpp-client-api/monotime_8h_source.html ---------------------------------------------------------------------- diff --git a/cpp-client-api/monotime_8h_source.html b/cpp-client-api/monotime_8h_source.html index c46cb36..17fca99 100644 --- a/cpp-client-api/monotime_8h_source.html +++ b/cpp-client-api/monotime_8h_source.html @@ -3,15 +3,16 @@ - + Kudu C++ client API: include/kudu/util/monotime.h Source File + @@ -21,7 +22,7 @@ - @@ -30,7 +31,7 @@
+
Kudu C++ client API
- + @@ -69,7 +70,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> - All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages +
@@ -80,7 +81,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
@@ -88,173 +89,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
monotime.h
-
1 // Licensed to the Apache Software Foundation (ASF) under one
-
2 // or more contributor license agreements. See the NOTICE file
-
3 // distributed with this work for additional information
-
4 // regarding copyright ownership. The ASF licenses this file
-
5 // to you under the Apache License, Version 2.0 (the
-
6 // "License"); you may not use this file except in compliance
-
7 // with the License. You may obtain a copy of the License at
-
8 //
-
9 // http://www.apache.org/licenses/LICENSE-2.0
-
10 //
-
11 // Unless required by applicable law or agreed to in writing,
-
12 // software distributed under the License is distributed on an
-
13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-
14 // KIND, either express or implied. See the License for the
-
15 // specific language governing permissions and limitations
-
16 // under the License.
-
17 #ifndef KUDU_UTIL_MONOTIME_H
-
18 #define KUDU_UTIL_MONOTIME_H
-
19 
-
20 #include <stdint.h>
-
21 #include <string>
-
22 
-
23 #ifdef KUDU_HEADERS_NO_STUBS
-
24 #include <gtest/gtest_prod.h>
-
25 #else
-
26 // This is a poor module interdependency, but the stubs are header-only and
-
27 // it's only for exported header builds, so we'll make an exception.
-
28 #include "kudu/client/stubs.h"
-
29 #endif
-
30 
-
31 #include "kudu/util/kudu_export.h"
-
32 
-
33 struct timeval;
-
34 struct timespec;
-
35 
-
36 namespace kudu {
-
37 class MonoTime;
-
38 
-
43 class KUDU_EXPORT MonoDelta {
-
44  public:
-
53  static MonoDelta FromSeconds(double seconds);
-
54  static MonoDelta FromMilliseconds(int64_t ms);
-
55  static MonoDelta FromMicroseconds(int64_t us);
-
56  static MonoDelta FromNanoseconds(int64_t ns);
-
58 
-
63  MonoDelta();
-
64 
-
66  bool Initialized() const;
-
67 
-
74  bool LessThan(const MonoDelta &rhs) const;
-
75 
-
82  bool MoreThan(const MonoDelta &rhs) const;
-
83 
-
91  bool Equals(const MonoDelta &rhs) const;
-
92 
-
94  std::string ToString() const;
-
95 
-
101  double ToSeconds() const;
-
102  int64_t ToMilliseconds() const;
-
103  int64_t ToMicroseconds() const;
-
104  int64_t ToNanoseconds() const;
-
106 
-
112  void ToTimeVal(struct timeval *tv) const;
-
113 
-
119  void ToTimeSpec(struct timespec *ts) const;
-
120 
-
127  static void NanosToTimeSpec(int64_t nanos, struct timespec* ts);
-
128 
-
129  private:
-
130  static const int64_t kUninitialized;
-
131 
-
132  friend class MonoTime;
-
133  FRIEND_TEST(TestMonoTime, TestDeltaConversions);
-
134 
-
135  explicit MonoDelta(int64_t delta);
-
136  int64_t nano_delta_;
-
137 };
-
138 
-
146 class KUDU_EXPORT MonoTime {
-
147  public:
-
151  static const int64_t kNanosecondsPerSecond = 1000000000L;
-
152  static const int64_t kNanosecondsPerMillisecond = 1000000L;
-
153  static const int64_t kNanosecondsPerMicrosecond = 1000L;
-
154 
-
155  static const int64_t kMicrosecondsPerSecond = 1000000L;
-
157 
-
161  static MonoTime Now();
-
162 
-
164  static MonoTime Max();
-
165 
-
167  static MonoTime Min();
-
168 
-
176  static const MonoTime& Earliest(const MonoTime& a, const MonoTime& b);
-
177 
-
180  MonoTime();
-
181 
-
183  bool Initialized() const;
-
184 
-
192  MonoDelta GetDeltaSince(const MonoTime &rhs) const;
-
193 
-
198  void AddDelta(const MonoDelta &delta);
-
199 
-
207  bool ComesBefore(const MonoTime &rhs) const;
-
208 
-
210  std::string ToString() const;
-
211 
-
218  bool Equals(const MonoTime& other) const;
-
219 
-
228  MonoTime& operator+=(const MonoDelta& delta);
-
229 
-
235  MonoTime& operator-=(const MonoDelta& delta);
-
237 
-
238  private:
-
239  friend class MonoDelta;
-
240  FRIEND_TEST(TestMonoTime, TestTimeSpec);
-
241  FRIEND_TEST(TestMonoTime, TestDeltaConversions);
-
242 
-
243  explicit MonoTime(const struct timespec &ts);
-
244  explicit MonoTime(int64_t nanos);
-
245  double ToSeconds() const;
-
246  int64_t nanos_;
-
247 };
-
248 
-
259 void KUDU_EXPORT SleepFor(const MonoDelta& delta);
-
260 
-
270 bool KUDU_EXPORT operator==(const MonoDelta &lhs, const MonoDelta &rhs);
-
271 
-
278 bool KUDU_EXPORT operator!=(const MonoDelta &lhs, const MonoDelta &rhs);
-
279 
-
286 bool KUDU_EXPORT operator<(const MonoDelta &lhs, const MonoDelta &rhs);
-
287 
-
294 bool KUDU_EXPORT operator<=(const MonoDelta &lhs, const MonoDelta &rhs);
-
295 
-
302 bool KUDU_EXPORT operator>(const MonoDelta &lhs, const MonoDelta &rhs);
-
303 
-
310 bool KUDU_EXPORT operator>=(const MonoDelta &lhs, const MonoDelta &rhs);
-
312 
-
326 bool KUDU_EXPORT operator==(const MonoTime& lhs, const MonoTime& rhs);
-
327 
-
339 bool KUDU_EXPORT operator!=(const MonoTime& lhs, const MonoTime& rhs);
-
340 
-
347 bool KUDU_EXPORT operator<(const MonoTime& lhs, const MonoTime& rhs);
-
348 
-
355 bool KUDU_EXPORT operator<=(const MonoTime& lhs, const MonoTime& rhs);
-
356 
-
363 bool KUDU_EXPORT operator>(const MonoTime& lhs, const MonoTime& rhs);
-
364 
-
371 bool KUDU_EXPORT operator>=(const MonoTime& lhs, const MonoTime& rhs);
-
373 
-
384 MonoTime KUDU_EXPORT operator+(const MonoTime& t, const MonoDelta& delta);
-
385 
-
393 MonoTime KUDU_EXPORT operator-(const MonoTime& t, const MonoDelta& delta);
-
394 
-
407 MonoDelta KUDU_EXPORT operator-(const MonoTime& t_end, const MonoTime& t_begin);
-
409 
-
410 } // namespace kudu
-
411 
-
412 #endif
+
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License& quot;); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing,
12 // software distributed under the License is distributed on an
13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, either express or implied. See the License for the
15 // specific language governing permissions and limitations
16 // under the License.
17 #ifndef KUDU_UTIL_MONOTIME_H
18 #define KUDU_UTIL_MONOTIME_H
1 9 
20 #include <stdint.h>
21 #include <string>
22 
23 #ifdef KUDU_HEADERS_NO_STUBS
24 #include <gtest/gtest_prod.h>
25 #else
26 // This is a poor module interdependency, but the stubs are header-only and
27 // it's only for exported header builds, so we'll make an exception.
28 #include "kudu/client/stubs.h"
29 #endif
30 
31 #include "kudu/util/kudu_export.h"
32 
33 struct timeval;
34 struct timespec;
35 
36 namespace kudu {
37 class MonoTime;
38 
43 class KUDU_EXPORT MonoDelta {
44  public:
53  static MonoDelta FromSeconds(double seconds);
54  static MonoDelta FromMilliseconds(int64_t ms);
55  static MonoDelta FromMicroseconds(int64_t us);
56  static MonoDelta FromNanoseconds(int64_t ns);
58 
63  MonoDelta();
64 
66  bool Initialized() const;
67 
74  bool LessThan(const MonoDelta &rhs) const;
75 
82  bool MoreThan(const MonoDelta &rhs) const;
83 
91  bool Equals(const MonoDelta &rhs) const;
92 
94  std::string ToString() const;
95 
101  double ToSeconds() const;
102  int64_t ToMilliseconds() const;
103  int64_t ToMicroseconds() const;
104  int64_t ToNanoseconds() const;
106 
112  void ToTimeVal(struct timeval *tv) const;
113 
119  void ToTimeSpec(struct timespec *ts) const;
120 
127  static void NanosToTimeSpec(int64_t nanos, struct timespec* ts);
128 
129  private:
130  static const int64_t kUninitialized;
131 
132  friend class MonoTime;
133  FRIEND_TEST(TestMonoTime, TestDeltaConversions);
134 
135  explicit MonoDelta(int64_t delta);
136  int64_t nano_delta_;
137 };
138 
146 class KUDU_EXPORT MonoTime {
147  public:
151  static const int64_t kNanosecondsPerSecond = 1000000000L;
152  static const int64_t kNanosecondsPerMillisecond = 1000000L;
153  static const int64_t kNanosecondsPerMicrosecond = 1000L;
154 
155  static const int64_t kMicrosecondsPerSecond = 1000000L;
157 
161  static MonoTime Now();
162 
164  static MonoTime Max();
165 
167  static MonoTime Min();
168 
176  static const MonoTime& Earliest(const MonoTime& a, const MonoTime& b);
177 
180  MonoTime();
181 
183  bool Initialized() const;
184 
192  MonoDelta GetDeltaSince(const MonoTime &rhs) const;
193 
198  void AddDelta(const MonoDelta &delta);
199 
207  bool ComesBefore(const MonoTime &rhs) const;
208 
210 60; std::string ToString() const;
211 
218  bool Equals(const MonoTime& other) const;
219 
228  MonoTime& operator+=(const MonoDelta& delta);
229 
235  MonoTime& operator-=(const MonoDelta& delta);
237 
238  private:
239  friend class MonoDelta;
240  FRIEND_TEST(TestMonoTime, TestTimeSpec);
241  FRIEND_TEST(TestMonoTime, TestDeltaConversions);
242 
243  explicit MonoTime(const struct timespec &ts);
244  explicit MonoTime(int64_t nanos);
245  double ToSeconds() const;
246  int64_t nanos_;
247 };
248 
259 void KUDU_EXPORT SleepFor(const MonoDelta& delta);
260 
270 bool KUDU_EXPORT operator==(const MonoDelta &lhs, const MonoDelta &rhs);
271 
278 bool KUDU_EXPORT operator!=(const MonoDelta &lhs, const MonoDelta &r hs);
279 
286 bool KUDU_EXPORT operator<(const MonoDelta &lhs, const MonoDelta &rhs);
287 
294 bool KUDU_EXPORT operator<=(const MonoDelta &lhs, const MonoDelta &rhs);
295 
302 bool KUDU_EXPORT operator>(const MonoDelta &lhs, const MonoDelta &rhs);
303 
310 bool KUDU_EXPORT operator>=(const MonoDelta &lhs, const MonoDelta &rhs);
312 
326 bool KUDU_EXPORT operator==(const MonoTime& lhs, const MonoTime& rhs);
327 
339 bool KUDU_EXPORT operator!=(const MonoTime& lhs, const MonoTime& rhs);
340 
347 bool KUDU_EXPORT operator<(const MonoTime& lhs, const MonoTime& rhs);
348 
355 bool KUDU_EXPORT operator<=(const MonoTime& lhs, const MonoTime& rhs);
356 
363 bool KUDU_EXPORT operator>(const MonoTime& lhs, const MonoTime& rhs);
364 
371 bool KUDU_EXPORT operator>=(const MonoTime& lhs, const MonoTime& rhs);
373 
384 MonoTime KUDU_EXPORT operator+(const MonoTime& t, const MonoDelta& delta);
385 
393 MonoTime KUDU_EXPORT operator-(const MonoTime& t, const MonoDelta& delta);
394 
407 MonoDelta KUDU_EXPORT operator-(const MonoTime& t_end, const MonoTime& t_begin);
409 
410 } // namespace kudu
411 
412 #endif
Definition: callbacks.h:28
Representation of a particular point in time.
Definition: monotime.h:146
A representation of a time interval.
Definition: monotime.h:43
http://git-wip-us.apache.org/repos/asf/kudu-site/blob/9b792926/cpp-client-api/pages.html ---------------------------------------------------------------------- diff --git a/cpp-client-api/pages.html b/cpp-client-api/pages.html index 08a8d86..351355d 100644 --- a/cpp-client-api/pages.html +++ b/cpp-client-api/pages.html @@ -3,15 +3,16 @@ - + Kudu C++ client API: Related Pages + @@ -21,7 +22,7 @@ - @@ -30,7 +31,7 @@
+
Kudu C++ client API
- + @@ -64,7 +65,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> - All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages +
@@ -80,17 +81,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
Here is a list of all related documentation pages: