|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ScanWildcardColumnTracker
public class ScanWildcardColumnTracker
Keeps track of the columns for a scan if they are not explicitly specified
Constructor Summary | |
---|---|
ScanWildcardColumnTracker(int minVersion,
int maxVersion,
long oldestUnexpiredTS)
Return maxVersions of every row. |
Method Summary | |
---|---|
ScanQueryMatcher.MatchCode |
checkColumn(byte[] bytes,
int offset,
int length,
long timestamp,
byte type,
boolean ignoreCount)
Keeps track of the number of versions for the columns asked for |
boolean |
done()
We can never know a-priori if we are done, so always return false. |
ColumnCount |
getColumnHint()
Used by matcher and scan/get to get a hint of the next column to seek to after checkColumn() returns SKIP. |
ScanQueryMatcher.MatchCode |
getNextRowOrNextColumn(byte[] bytes,
int offset,
int qualLength)
Retrieve the MatchCode for the next row or column |
boolean |
isDone(long timestamp)
Give the tracker a chance to declare it's done based on only the timestamp to allow an early out. |
void |
reset()
Resets the Matcher |
void |
update()
Updates internal variables in between files |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScanWildcardColumnTracker(int minVersion, int maxVersion, long oldestUnexpiredTS)
minVersion
- Minimum number of versions to keepmaxVersion
- Maximum number of versions to returnoldestUnexpiredTS
- oldest timestamp that has not expired according
to the TTL.Method Detail |
---|
public ScanQueryMatcher.MatchCode checkColumn(byte[] bytes, int offset, int length, long timestamp, byte type, boolean ignoreCount) throws IOException
checkColumn
in interface ColumnTracker
timestamp
- The timeToLive to enforce.type
- The type of the KeyValueignoreCount
- indicates if the KV needs to be excluded while counting
(used during compactions. We only count KV's that are older than all the
scanners' read points.)
IOException
- in case there is an internal consistency problem
caused by a data corruption.public void update()
ColumnTracker
update
in interface ColumnTracker
public void reset()
ColumnTracker
reset
in interface ColumnTracker
public ColumnCount getColumnHint()
getColumnHint
in interface ColumnTracker
public boolean done()
done
in interface ColumnTracker
public ScanQueryMatcher.MatchCode getNextRowOrNextColumn(byte[] bytes, int offset, int qualLength)
ColumnTracker
getNextRowOrNextColumn
in interface ColumnTracker
public boolean isDone(long timestamp)
ColumnTracker
isDone
in interface ColumnTracker
true
to early out based on timestamp.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |