blob: 5973fa2f88fd21c2646010b5d493d0d991f57bc0 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Snapshot</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Snapshot";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":18,"i9":6,"i10":6,"i11":6,"i12":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/apache/iceberg/SetLocation.html" title="class in org.apache.iceberg"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/iceberg/SnapshotManager.html" title="class in org.apache.iceberg"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/iceberg/Snapshot.html" target="_top">Frames</a></li>
<li><a href="Snapshot.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.iceberg</div>
<h2 title="Interface Snapshot" class="title">Interface Snapshot</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd>java.io.Serializable</dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">Snapshot</span>
extends java.io.Serializable</pre>
<div class="block">A snapshot of the data in a table at a point in time.
<p>
A snapshot consist of one or more file manifests, and the complete table contents is the union
of all the data files in those manifests.
<p>
Snapshots are created by table operations, like <a href="../../../org/apache/iceberg/AppendFiles.html" title="interface in org.apache.iceberg"><code>AppendFiles</code></a> and <a href="../../../org/apache/iceberg/RewriteFiles.html" title="interface in org.apache.iceberg"><code>RewriteFiles</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.Iterable&lt;<a href="../../../org/apache/iceberg/DataFile.html" title="interface in org.apache.iceberg">DataFile</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#addedFiles--">addedFiles</a></span>()</code>
<div class="block">Return all files added to the table in this snapshot.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#allManifests--">allManifests</a></span>()</code>
<div class="block">Return all <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> instances for either data or delete manifests in this snapshot.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#dataManifests--">dataManifests</a></span>()</code>
<div class="block">Return a <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> for each data manifest in this snapshot.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.lang.Iterable&lt;<a href="../../../org/apache/iceberg/DataFile.html" title="interface in org.apache.iceberg">DataFile</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#deletedFiles--">deletedFiles</a></span>()</code>
<div class="block">Return all files deleted from the table in this snapshot.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#deleteManifests--">deleteManifests</a></span>()</code>
<div class="block">Return a <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> for each delete manifest in this snapshot.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#manifestListLocation--">manifestListLocation</a></span>()</code>
<div class="block">Return the location of this snapshot's manifest list, or null if it is not separate.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#operation--">operation</a></span>()</code>
<div class="block">Return the name of the <a href="../../../org/apache/iceberg/DataOperations.html" title="class in org.apache.iceberg"><code>data operation</code></a> that produced this snapshot.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>java.lang.Long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#parentId--">parentId</a></span>()</code>
<div class="block">Return this snapshot's parent ID or null.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>default java.lang.Integer</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#schemaId--">schemaId</a></span>()</code>
<div class="block">Return the id of the schema used when this snapshot was created, or null if this information is not available.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#sequenceNumber--">sequenceNumber</a></span>()</code>
<div class="block">Return this snapshot's sequence number.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#snapshotId--">snapshotId</a></span>()</code>
<div class="block">Return this snapshot's ID.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.lang.String&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#summary--">summary</a></span>()</code>
<div class="block">Return a string map of summary data for the operation that produced this snapshot.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/iceberg/Snapshot.html#timestampMillis--">timestampMillis</a></span>()</code>
<div class="block">Return this snapshot's timestamp.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="sequenceNumber--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sequenceNumber</h4>
<pre>long&nbsp;sequenceNumber()</pre>
<div class="block">Return this snapshot's sequence number.
<p>
Sequence numbers are assigned when a snapshot is committed.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long sequence number</dd>
</dl>
</li>
</ul>
<a name="snapshotId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>snapshotId</h4>
<pre>long&nbsp;snapshotId()</pre>
<div class="block">Return this snapshot's ID.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long ID</dd>
</dl>
</li>
</ul>
<a name="parentId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentId</h4>
<pre>java.lang.Long&nbsp;parentId()</pre>
<div class="block">Return this snapshot's parent ID or null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long ID for this snapshot's parent, or null if it has no parent</dd>
</dl>
</li>
</ul>
<a name="timestampMillis--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timestampMillis</h4>
<pre>long&nbsp;timestampMillis()</pre>
<div class="block">Return this snapshot's timestamp.
<p>
This timestamp is the same as those produced by <code>System.currentTimeMillis()</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long timestamp in milliseconds</dd>
</dl>
</li>
</ul>
<a name="allManifests--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allManifests</h4>
<pre>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;&nbsp;allManifests()</pre>
<div class="block">Return all <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> instances for either data or delete manifests in this snapshot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of ManifestFile</dd>
</dl>
</li>
</ul>
<a name="dataManifests--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dataManifests</h4>
<pre>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;&nbsp;dataManifests()</pre>
<div class="block">Return a <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> for each data manifest in this snapshot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of ManifestFile</dd>
</dl>
</li>
</ul>
<a name="deleteManifests--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deleteManifests</h4>
<pre>java.util.List&lt;<a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg">ManifestFile</a>&gt;&nbsp;deleteManifests()</pre>
<div class="block">Return a <a href="../../../org/apache/iceberg/ManifestFile.html" title="interface in org.apache.iceberg"><code>ManifestFile</code></a> for each delete manifest in this snapshot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of ManifestFile</dd>
</dl>
</li>
</ul>
<a name="operation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>operation</h4>
<pre>java.lang.String&nbsp;operation()</pre>
<div class="block">Return the name of the <a href="../../../org/apache/iceberg/DataOperations.html" title="class in org.apache.iceberg"><code>data operation</code></a> that produced this snapshot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the operation that produced this snapshot, or null if the operation is unknown</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../org/apache/iceberg/DataOperations.html" title="class in org.apache.iceberg"><code>DataOperations</code></a></dd>
</dl>
</li>
</ul>
<a name="summary--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>summary</h4>
<pre>java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;summary()</pre>
<div class="block">Return a string map of summary data for the operation that produced this snapshot.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a string map of summary data.</dd>
</dl>
</li>
</ul>
<a name="addedFiles--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addedFiles</h4>
<pre>java.lang.Iterable&lt;<a href="../../../org/apache/iceberg/DataFile.html" title="interface in org.apache.iceberg">DataFile</a>&gt;&nbsp;addedFiles()</pre>
<div class="block">Return all files added to the table in this snapshot.
<p>
The files returned include the following columns: file_path, file_format, partition,
record_count, and file_size_in_bytes. Other columns will be null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>all files added to the table in this snapshot.</dd>
</dl>
</li>
</ul>
<a name="deletedFiles--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deletedFiles</h4>
<pre>java.lang.Iterable&lt;<a href="../../../org/apache/iceberg/DataFile.html" title="interface in org.apache.iceberg">DataFile</a>&gt;&nbsp;deletedFiles()</pre>
<div class="block">Return all files deleted from the table in this snapshot.
<p>
The files returned include the following columns: file_path, file_format, partition,
record_count, and file_size_in_bytes. Other columns will be null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>all files deleted from the table in this snapshot.</dd>
</dl>
</li>
</ul>
<a name="manifestListLocation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>manifestListLocation</h4>
<pre>java.lang.String&nbsp;manifestListLocation()</pre>
<div class="block">Return the location of this snapshot's manifest list, or null if it is not separate.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the location of the manifest list for this Snapshot</dd>
</dl>
</li>
</ul>
<a name="schemaId--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>schemaId</h4>
<pre>default&nbsp;java.lang.Integer&nbsp;schemaId()</pre>
<div class="block">Return the id of the schema used when this snapshot was created, or null if this information is not available.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>schema id associated with this snapshot</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/apache/iceberg/SetLocation.html" title="class in org.apache.iceberg"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/iceberg/SnapshotManager.html" title="class in org.apache.iceberg"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/iceberg/Snapshot.html" target="_top">Frames</a></li>
<li><a href="Snapshot.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>