accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [01/61] [abbrv] [partial] accumulo git commit: ACCUMULO-722 put trunk in my sandbox
Date Thu, 03 Mar 2016 21:59:26 GMT
Repository: accumulo
Updated Branches:
  refs/heads/ACCUMULO-722 [created] f9f797cbb


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7bdbfccb/1.5/core/src/main/thrift/data.thrift
----------------------------------------------------------------------
diff --git a/1.5/core/src/main/thrift/data.thrift b/1.5/core/src/main/thrift/data.thrift
new file mode 100644
index 0000000..3abfef1
--- /dev/null
+++ b/1.5/core/src/main/thrift/data.thrift
@@ -0,0 +1,115 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+namespace java org.apache.accumulo.core.data.thrift
+
+typedef i64 ScanID
+typedef i64 UpdateID
+
+struct TKey {
+	1:binary row;
+	2:binary colFamily;
+	3:binary colQualifier;
+	4:binary colVisibility;
+	5:i64 timestamp
+}
+
+struct TColumn {
+	1:binary columnFamily,
+	2:binary columnQualifier,
+	3:binary columnVisibility
+}
+
+struct TMutation {
+	1:binary row,
+	2:binary data,
+	3:list<binary> values
+	4:i32 entries
+}
+
+struct TKeyExtent {
+	1:binary table,
+	2:binary endRow,
+	3:binary prevEndRow
+}
+
+struct TKeyValue {
+	1:TKey key,
+	2:binary value
+}
+
+struct ScanResult {
+	1:list<TKeyValue> results,
+	2:bool more
+}
+
+struct TRange {
+	1:TKey start,
+	2:TKey stop,
+	3:bool startKeyInclusive,
+	4:bool stopKeyInclusive,
+	5:bool infiniteStartKey,
+	6:bool infiniteStopKey
+}
+
+typedef map<TKeyExtent, list<TRange>> ScanBatch
+	
+struct MultiScanResult {
+	1:list<TKeyValue> results,
+	2:ScanBatch failures,
+	3:list<TKeyExtent> fullScans,
+	4:TKeyExtent partScan,
+	5:TKey partNextKey,
+	6:bool partNextKeyInclusive,
+	7:bool more
+}
+
+struct InitialScan {
+	1:ScanID scanID,
+	2:ScanResult result
+}
+
+struct InitialMultiScan {
+	1:ScanID scanID,
+	2:MultiScanResult result
+}
+
+struct IterInfo {
+	1:i32 priority,
+	2:string className,
+	3:string iterName
+}
+
+struct TConstraintViolationSummary {
+	1:string constrainClass,
+	2:i16 violationCode,
+	3:string violationDescription,
+	4:i64 numberOfViolatingMutations
+}
+
+struct UpdateErrors {
+	1:map<TKeyExtent, i64> failedExtents,
+	2:list<TConstraintViolationSummary> violationSummaries,
+	3:list<TKeyExtent> authorizationFailures
+}
+
+struct MapFileInfo {
+	1:i64 estimatedSize
+}
+
+typedef map<TKeyExtent,list<TMutation>> UpdateBatch
+
+typedef map<TKeyExtent, map<string, MapFileInfo>> TabletFiles


Mime
View raw message